/* =========================================
   1. RESET Y CONFIGURACIÓN GLOBAL
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto Condensed', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   2. HEADER / NAVBAR (Dinámico)
   ========================================= */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* Estado inicial (Encima del Hero): Fondo oscuro */
#navbar {
    background-color: rgba(11, 30, 61, 0.95); 
    color: white;
}

/* Estado scrolleado: Fondo blanco sólido */
#navbar.scrolled {
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    color: #0b1e3d;
    padding: 10px 0; /* Se hace más compacto al bajar */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    height: 50px;
    width: auto;
    filter: none; 
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff !important; 
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

/* Cuando el menú está scrolleado (blanco), el texto es azul oscuro */
#navbar.scrolled .nav-links a {
    color: #0b1e3d !important; 
}

.nav-links a:hover, .nav-links a.active {
    color: #ffcc00 !important; 
    border-bottom: 2px solid #ffcc00;
}

.hamburger {
    display: none; /* Oculto por defecto en PC */
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

#navbar.scrolled .hamburger span {
    background-color: #0b1e3d;
}

/* =========================================
   3. HERO SECTION (Pantalla Principal)
   ========================================= */
.hero {
    position: relative;
    height: 100vh; 
    width: 100%;
    /* Ruta corregida */
    background-image: url('/img/u.ss.jpeg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    animation: fadeIn 1.5s ease-in-out;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* --- Botones Redondos del Hero (Azul Bonito) --- */
.btn-rounded-blue {
    display: inline-block;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    text-decoration: none;
    
    /* Degradado Azul Moderno */
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); 
    color: white;
    border: none;
    
    /* Sombra y Transición */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.btn-rounded-blue:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.6);
    background: linear-gradient(135deg, #00c6fb 0%, #005bea 100%);
}

.btn-outline-blue {
    display: inline-block;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    text-decoration: none;
    background-color: #0b1e3d; /* Azul oscuro sólido para estado normal */
    color: white;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-outline-blue:hover {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.5);
}

/* =========================================
   4. SECCIONES DE CONTENIDO
   ========================================= */
.content-section {
    padding: 80px 0;
}

.bg-light { background-color: #f4f6f9; }
.bg-blue { background-color: #d0dbe8; }

.content-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #0b1e3d;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

/* Línea decorativa bajo el título */
.content-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #ffcc00; /* Color dorado para contraste */
    margin: 15px auto 0;
    border-radius: 2px;
}

.requirements-list ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.note {
    font-style: italic;
    color: #666;
    text-align: center;
    margin-top: 20px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.step-number {
    display: block;
    width: 50px;
    height: 50px;
    background-color: #0056b3;
    color: white;
    border-radius: 50%;
    line-height: 50px;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

/* --- Servicios (Diseño Profesional) --- */
.services-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    border-color: #0056b3;
}

.card-img {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img img {
    transform: scale(1.05);
}

.card-title {
    background-color: #f8f9fa;
    padding: 20px 15px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #0b1e3d;
    letter-spacing: 0.5px;
    border-top: 1px solid #eee;
    text-transform: uppercase;
}

/* --- Testimonios --- */
.testimonial-slider {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    min-height: 250px;
}

.testimonial-card {
    display: none;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
}

.testimonial-card.active { display: block; }

.stars { color: #ffc107; font-size: 1.5rem; margin-bottom: 15px; }
.author { margin-top: 20px; font-weight: 700; color: #333; }

.slider-controls {
    text-align: center;
    margin-top: 20px;
}

.slider-controls button {
    background: #000;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 10px;
    font-size: 1.2rem;
}

/* --- FAQ --- */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 15px; }
.faq-question {
    background: #d0dbe8;
    padding: 20px;
    cursor: pointer;
    font-weight: 700;
    position: relative;
}
.faq-question::after {
    content: '▼';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}
.faq-answer {
    display: none;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #eee;
}
.faq-item.open .faq-answer { display: block; }

/* --- BG Start --- */
.bg-start { 
    background-color: #0b1e3d; 
    color: white; 
    text-align: center; 
    background-image: url('img/BanderaFonfo.png'); /* Nota: En tu carpeta dice BanderaFonfo.png */
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.bg-start::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 30, 61, 0.75); 
    z-index: 1;
}

.bg-start .container {
    position: relative;
    z-index: 2;
}

.bg-start h2 {
    color: white !important;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.bg-start p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   5. FOOTER
   ========================================= */
footer {
    background-color: #0b1e3d;
    color: white;
    text-align: center;
    padding: 40px 0;
    border-top: 5px solid #b22234;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-left h3 {
    margin-bottom: 10px;
}

.footer-right .footer-nav {
    list-style: none;
    display: flex;
    gap: 20px;
}

.footer-right .footer-nav li a {
    text-decoration: none;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
}

.footer-right .footer-nav li a:hover {
    color: #ffcc00;
}

/* =========================================
  /* =========================================
   6. BURBUJA WHATSAPP (Redonda Perfecta)
   ========================================= */
.whatsapp-bubble {
    position: fixed;
    bottom: 25px; /* Un poco más arriba para mejor acceso */
    right: 25px;
    width: 100px;
    height: 250px;
    border-radius: 50%; /* Esto hace que sea un círculo perfecto */
    display: flex;
    justify-content: center;
    align-items: center;
   
    z-index: 9999;
    
    transition: all 0.3s ease;
    text-decoration: none; /* Por si es un enlace <a> */
}

/* Efecto al pasar el mouse: Crece un poco */
.whatsapp-bubble:hover {
    transform: scale(1.1);
   
}

/* La imagen dentro del círculo */
.whatsapp-bubble img {
    width: 35px; /* Tamaño controlado para que no se salga */
    height: 35px;
    object-fit: contain; /* Asegura que la imagen se adapte sin deformarse */
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2)); /* Sombra sutil al logo blanco */
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .whatsapp-bubble {
        width: 50px;
        height: 100px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-bubble img {
        width: 28px;
        height: 28px;
    }
}

.whatsapp-bubble:hover {
    transform: scale(1.1);
}

.whatsapp-bubble img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* =========================================
   7. RESPONSIVE DESIGN (MÓVIL Y TABLET)
   ========================================= */
@media (max-width: 992px) {
    /* Menú Hamburguesa Activo */
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none; /* Ocultar menú horizontal */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 80px;
        left: 0;
        background-color: #0b1e3d;
        padding: 20px 0;
        text-align: center;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    /* Clase para mostrar menú con JS */
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-right .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    /* Ajustes específicos para tablets y móviles pequeños */
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    
    .btn-rounded-blue {
        width: 100%;
        max-width: 300px;
        display: block;
        margin: 10px 0;
    }

    .content-section h2 {
        font-size: 2rem;
    }

    .logo img {
        height: 40px;
    }
    
    .card-img img {
        height: 200px;
    }
}

/* Animación de entrada */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}