/* =========================
   VARIABLES GLOBALES
========================= */

:root {
    --primary-dark: #1a1a1a;
    --secondary-dark: #2d2d2d;
    --accent-cyan: #17a2b8;
    --accent-blue: #0b5ed7;
    --text-light: #ffffff;
    --text-muted: #999999;
}

/* =========================
   CONFIGURACIÓN GENERAL
========================= */

body {
    padding-top: 70px;
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: #f8f9fa;
    color: #333333;
    overflow-x: hidden;
}

/* =========================
   NAVBAR
========================= */

.navbar {
    background: linear-gradient(90deg, #1f3a93, #0d47a1);
    border-bottom: 2px solid #0b5ed7;
}

.navbar-brand {
    color: #ffffff !important;
    letter-spacing: 1px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25));
    flex-shrink: 0;
}

.navbar-logo:hover {
    transform: scale(1.12) translateY(-2px);
    box-shadow: 0 8px 20px rgba(23, 162, 184, 0.5);
    background: rgba(255, 255, 255, 0.18);
    filter: drop-shadow(0 4px 8px rgba(23, 162, 184, 0.4));
}

.navbar-brand span {
    font-size: 1rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-link {
    color: #ffffff !important;
    position: relative;
    margin-left: 10px;
    transition: 0.3s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffc107;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #ffc107 !important;
}

/* =========================
   HERO (TODAS LAS PÁGINAS)
========================= */

.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #1f3a93 0%, #0d47a1 50%, #1a237e 100%);
    color: #ffffff;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.2rem;
    margin: 10px 0;
    color: #e0e0e0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================
   SECCIONES GENERALES
========================= */

section {
    background-color: #ffffff;
    color: #333333;
}

section.bg-light {
    background-color: #f5f5f5;
}

section.bg-dark {
    background-color: #212529;
    color: #ffffff;
}

section h2 {
    color: #1f3a93;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 30px;
}

section h3 {
    color: #0d47a1;
    font-weight: 600;
}

section p,
section li {
    color: #555555;
    font-size: 1rem;
    line-height: 1.8;
}

/* =========================
   TARJETAS (CARDS)
========================= */

.card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    color: #333333;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #0b5ed7;
}

.card-title {
    color: #1f3a93;
    font-weight: 600;
    margin-top: 15px;
}

.card-text {
    color: #666666;
}

/* =========================
   BOTONES
========================= */

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000000;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

/* =========================
   ANIMACIONES
========================= */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

.delay-4 {
    transition-delay: 0.8s;
}

.delay-5 {
    transition-delay: 1s;
}

/* =========================
   SOCIALES
========================= */

.social-icons a {
    color: #17a2b8;
    font-size: 1.5rem;
    margin: 0 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    color: #ffc107;
    transform: scale(1.2);
}

/* =========================
   FOOTER
========================= */

footer {
    background: #212529;
    border-top: 2px solid #0b5ed7;
    color: #ffffff;
}

footer a {
    color: #17a2b8;
    text-decoration: none;
    transition: 0.3s ease;
}

footer a:hover {
    color: #ffc107;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .card {
        margin-bottom: 15px;
    }
}

/* =========================
   CHAT FLOTANTE WHATSAPP
========================= */

.whatsapp-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.whatsapp-bubble {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulsoWhatsApp 2s infinite;
}

.whatsapp-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.6);
    animation: none;
}

.whatsapp-bubble i {
    color: #ffffff;
    font-size: 28px;
}

.whatsapp-tooltip {
    position: absolute;
    bottom: 75px;
    right: 0;
    background: #25d366;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-tooltip::after {
    content: "";
    position: absolute;
    bottom: -5px;
    right: 15px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #25d366;
}

.whatsapp-container:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: 80px;
}

.whatsapp-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    width: 320px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1001;
}

.whatsapp-popup.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: auto;
}

.whatsapp-header {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #ffffff;
    padding: 16px;
    text-align: center;
}

.whatsapp-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.whatsapp-header p {
    margin: 5px 0 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.whatsapp-body {
    padding: 16px;
}

.whatsapp-message {
    background: #f0f0f0;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.4;
    color: #333333;
}

.whatsapp-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.whatsapp-btn {
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.whatsapp-btn-primary {
    background: #25d366;
    color: #ffffff;
}

.whatsapp-btn-primary:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn-secondary {
    background: #e8e8e8;
    color: #333333;
}

.whatsapp-btn-secondary:hover {
    background: #d0d0d0;
}

.whatsapp-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.whatsapp-close:hover {
    background: rgba(255, 255, 255, 0.4);
}

@keyframes pulsoWhatsApp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 480px) {
    .whatsapp-container {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-popup {
        width: 280px;
        right: -10px;
    }
    
    .whatsapp-bubble {
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-bubble i {
        font-size: 24px;
    }
}

/* =========================
   GOOGLE MAPS
========================= */

.maps-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

.maps-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.maps-info-box {
    background: linear-gradient(135deg, #1f3a93, #0d47a1);
    color: #ffffff;
    padding: 24px;
    border-radius: 12px;
    margin-top: 20px;
}

.maps-info-box h4 {
    color: #ffc107;
    margin-bottom: 15px;
    font-weight: 600;
}

.maps-info-item {
    display: flex;
    align-items: start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.maps-info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.maps-info-item i {
    font-size: 20px;
    margin-right: 15px;
    color: #ffc107;
    min-width: 30px;
}

.maps-info-item strong {
    color: #ffc107;
}

.maps-info-item p {
    margin: 0;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .maps-container {
        height: 350px;
    }
    
    .maps-info-box {
        padding: 18px;
    }
}
