/* CSS Variables according to 60-30-10 Rule */
:root {
    --color-primary: #011C6B; /* 60% */
    --color-light: #F2F2F2;   /* 30% */
    --color-accent: #0071bc;  /* 10% */
    --color-text-dark: #333333;
    --color-text-light: #ffffff;
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    color: var(--color-text-dark);
    background-color: var(--color-light);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4 {
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:focus, button:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.subtitle { font-size: 1.2rem; margin-bottom: 2.5rem; opacity: 0.9; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Buttons */
.btn-primary, .btn-secondary, .btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary { background-color: var(--color-accent); color: var(--color-text-light); }
.btn-primary:hover { background-color: #005a96; }

.btn-secondary { background-color: transparent; border: 2px solid var(--color-light); color: var(--color-text-light); }
.btn-secondary:hover { background-color: var(--color-light); color: var(--color-primary); }

.btn-accent { background-color: #25D366; color: var(--color-text-light); }
.btn-accent:hover { background-color: #1ebe5d; transform: translateY(-2px); }

.full-width { width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }

.bg-primary { background-color: var(--color-primary); color: var(--color-text-light); }
.bg-light { background-color: var(--color-light); color: var(--color-primary); }

/* Navbar */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    color: var(--color-text-light);
}

.glass-nav {
    background-color: rgba(1, 28, 107, 0.4); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { display: flex; align-items: center; }
.logo img { max-height: 28px; width: auto; }

.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a:hover { color: var(--color-accent); }

.nav-buttons { display: flex; gap: 15px; align-items: center; }
.mobile-only { display: none; }
.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.mobile-menu-toggle span { width: 25px; height: 3px; background-color: var(--color-text-light); transition: 0.3s; }

/* Hero Section */
.hero {
    color: var(--color-text-light);
    padding: 12rem 0 8rem;
    position: relative;
    background-image: linear-gradient(to right, rgba(1, 28, 107, 0.9) 0%, rgba(1, 28, 107, 0.4) 100%), url('img/banner-bio-fernando.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-content { max-width: 800px; text-align: left; } /* Slightly wider for the new buttons */
.hero p { font-size: 1rem; margin-bottom: 2rem; opacity: 0.95; font-weight: 300; }

.hero-details { display: flex; justify-content: flex-start; gap: 1rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.hero-badge {
    background-color: rgba(255, 255, 255, 0.15); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2); padding: 0.75rem 1.2rem; border-radius: 8px; font-weight: 600;
    font-size: 1rem; box-shadow: 0 4px 15px rgba(0,0,0,0.1); display: flex; align-items: center; transition: transform 0.3s;
}
.hero-badge:hover { transform: translateY(-3px); background-color: rgba(255, 255, 255, 0.25); }

.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* =========================================================
   1. CORRECCIÓN RESPONSIVA PARA EL H1 DEL HERO
   ========================================================= */
.hero h1 {
    /* Fluid typography: escala suavemente según la pantalla */
    font-size: clamp(1.8rem, 5vw + 1rem, 3.2rem);
    line-height: 1.25;
    word-break: break-word; /* Evita que palabras largas se salgan en móviles pequeños */
    margin-bottom: 1.2rem;
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem; /* Ajuste específico para pantallas muy estrechas */
    }
    .hero h3 {
         font-size: 0.8rem; /* Ajuste específico para pantallas muy estrechas */
         }
    .hero p {    
        font-size: 0.7rem; /* Ajuste específico para pantallas muy estrechas */  
        }
}

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; } /* New Grid 4 */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }

/* Cards */
.card {
    background-color: #ffffff; padding: 2.5rem 2rem; border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.3s; color: var(--color-text-dark);
}
.card:hover { transform: translateY(-5px); }
.card .icon { font-size: 3rem; margin-bottom: 1rem; }

/* Split Section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: stretch; }
.split.align-center { align-items: center; } /* For the new section */

.checklist { list-style: none; margin-top: 1.5rem; }
.checklist li { margin-bottom: 1rem; position: relative; padding-left: 2rem; }
.checklist li::before { content: '✓'; position: absolute; left: 0; color: var(--color-accent); font-weight: bold; }

.split-img-placeholder { display: flex; align-items: center; justify-content: center; }
.split-img-placeholder img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); max-height: 450px; }

/* Tags */
.tag {
    display: inline-block; background-color: var(--color-accent); color: white;
    padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.85rem; font-weight: bold;
    text-transform: uppercase; margin-bottom: 1rem;
}

/* Accordion */
.accordion { max-width: 900px; margin: 0 auto; } /* Wider for new content */
.accordion-item { margin-bottom: 1rem; border: 1px solid #ccc; border-radius: 4px; overflow: hidden; }
.accordion-header {
    width: 100%; padding: 1.25rem; background-color: #ffffff; color: var(--color-primary);
    font-weight: 700; text-align: left; border: none; cursor: pointer; font-size: 1rem;
    display: flex; justify-content: space-between; align-items: center;
}
.accordion-header::after { content: '\002B'; font-size: 1.5rem; color: var(--color-accent); font-weight: normal;}
.accordion-header[aria-expanded="true"]::after { content: '\2212'; }
.accordion-content {
    max-height: 0; overflow: hidden; background-color: #ffffff; color: var(--color-text-dark);
    padding: 0 1.25rem; transition: max-height 0.4s ease, padding 0.4s ease;
}

/* Specific styles for Temario inside Accordion */
.level-desc { font-style: italic; color: #555; margin-bottom: 1rem; }
.module-list { list-style: none; padding-left: 0; }
.module-list li { margin-bottom: 0.5rem; padding-bottom: 0.5rem; border-bottom: 1px dashed #eee; }
.module-list li:last-child { border-bottom: none; }
.module-list strong { color: var(--color-accent); display: inline-block; width: 45px; }

/* =========================================================
   2. CORRECCIÓN RESPONSIVA Y ESTILO DEL BLOQUE DE CARACTERÍSTICAS
   ========================================================= */
.features-block {
    max-width: 900px;
    margin: 3rem auto 0;
    padding: 2.5rem 2rem;
    background-color: var(--color-primary); /* Fondo Azul Primario (#011C6B) */
    color: var(--color-text-light);          /* Textos en Blanco (#ffffff) */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(1, 28, 107, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.features-block h3 {
    color: var(--color-text-light); /* Título del bloque en blanco */
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    margin-bottom: 2rem;
}

/* Grid adaptativo para las tarjetas de características */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-card {
    text-align: center;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.06); /* Fondo sutil para dar estructura */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card h4 {
    color: var(--color-text-light); /* Título de la tarjeta en blanco */
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.9); /* Texto secundario blanco con alta legibilidad */
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Icono en tono azul acento (#0071bc) con círculo contenedor para contraste */
.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: #ffffff;      /* Círculo blanco para destacar el icono */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.feature-icon-wrapper i {
    font-size: 1.6rem;
    color: var(--color-accent);    /* Tono Azul Acento (#0071bc) */
}

/* Ajuste Responsivo Móvil */
@media (max-width: 768px) {
    .features-block {
        padding: 2rem 1.25rem;
    }

    .features-grid {
        grid-template-columns: 1fr; /* Colapsa a 1 sola columna en dispositivos móviles */
        gap: 1.25rem;
    }

    grid-2 {
        grid-template-columns: 1fr; /* Fuerza 1 sola columna */
    }
    
    .profile-card {
        padding: 1.5rem; /* Reduce el padding para ganar espacio en pantalla */
    }
    
    .profile-img {
        width: 120px; /* Ajusta la foto proporcionalmente al celular */
        height: 120px;
        margin-bottom: 1rem;
    }

    .hero {
        /* Cambia 'URL_DE_TU_IMAGEN_MOVIL.jpg' por la ruta de tu imagen adaptada */
        background-image: linear-gradient(to right, rgba(1, 28, 107, 0.9) 0%, rgba(1, 28, 107, 0.4) 100%), url('img/hero-bio-fer-v3.jpg');
        
        /* Asegura que no haga parallax y se adapte bien */
        background-attachment: scroll; 
        background-position: center center;
        background-size: cover;
        padding: 8rem 1rem 5rem; 
    }

    #que-es .split {
        grid-template-columns: 1fr; /* Fuerza 1 sola columna */
        gap: 2rem; /* Reduce el espacio entre texto e imagen */
        text-align: center; /* Centra los textos para mejor lectura móvil */
    }
    
    #que-es .tag {
        /* Centra la etiqueta "Nuevo" */
        margin: 0 auto 1rem auto; 
        display: inline-block;
    }

    #que-es h2 {
        font-size: 2rem; /* Ajusta el tamaño del título */
        margin-bottom: 1.5rem;
    }

    #que-es .split-img-placeholder img {
        width: 100%;
        height: auto;
        max-height: 300px; /* Evita que la imagen sea gigante en móvil */
        object-fit: cover;
        border-radius: 8px;
    }
    
}

.cta-dossier { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid #ddd; }

/* Profile Cards */
.profile-card {
    background-color: rgba(255, 255, 255, 0.1); padding: 2.5rem; border-radius: 8px;
    border-top: 4px solid var(--color-accent); display: flex; flex-direction: column; align-items: center;
}
.profile-img {
    width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin-bottom: 1.5rem;
    border: 4px solid var(--color-light); box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
.profile-card h3 { color: var(--color-light); margin-bottom: 0.2rem; }
.profile-card .role { color: var(--color-accent); font-weight: 600; margin-bottom: 1.5rem; }

/* Testimonials Highlight Banner */
.highlight-banner {
    display: inline-block; background-color: var(--color-accent); color: var(--color-text-light);
    padding: 0.8rem 2rem; border-radius: 50px; font-size: 1.2rem; font-weight: 700;
    margin-bottom: 2.5rem; box-shadow: 0 6px 20px rgba(0, 113, 188, 0.3);
}

/* Testimonials Carousel */
.carousel-container {
    position: relative; max-width: 900px; margin: 0 auto; background: #ffffff;
    border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); padding: 4rem 3rem; overflow: hidden;
}
.carousel-track { display: flex; transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); }
.carousel-slide { min-width: 100%; box-sizing: border-box; padding: 0 2rem; color: var(--color-text-dark); }
.carousel-slide p { font-size: 1.3rem; font-style: italic; font-weight: 300; line-height: 1.8; margin-bottom: 1.5rem; color: #444; }
.carousel-slide h4 { font-size: 1.1rem; color: var(--color-primary); margin-bottom: 0.5rem; }
.carousel-slide .stars { color: #f5b301; font-size: 1.2rem; margin-bottom: 1rem; }

.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%); background: var(--color-accent);
    color: white; border: none; width: 45px; height: 45px; border-radius: 50%; cursor: pointer;
    font-size: 1.2rem; display: flex; align-items: center; justify-content: center; z-index: 10; transition: background 0.3s;
}
.carousel-btn:hover { background: #005a96; }
.carousel-btn.prev { left: 15px; }
.carousel-btn.next { right: 15px; }

/* Gallery Carousel */
.gallery-section { max-width: 1000px; margin: 3rem auto 0; }
.gallery-carousel-wrapper { position: relative; overflow: hidden; border-radius: 8px; padding: 0 40px;}
.gallery-track { display: flex; gap: 15px; transition: transform 0.4s ease; }
.gallery-slide { flex: 0 0 calc(33.333% - 10px); /* Show 3 images at once on desktop */ }
.gallery-slide img { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

.gallery-btn {
    position: absolute; top: 50%; transform: translateY(-50%); background: var(--color-primary);
    color: white; border: none; width: 35px; height: 35px; border-radius: 50%; cursor: pointer;
    z-index: 10; display: flex; align-items: center; justify-content: center; transition: background 0.3s;
}
.gallery-btn:hover { background: var(--color-accent); }
.gallery-btn.g-prev { left: 0; }
.gallery-btn.g-next { right: 0; }

/* Pricing Card */
.pricing-card {
    background-color: #ffffff; border: 2px solid var(--color-accent); border-radius: 12px;
    padding: 3rem 2rem; max-width: 500px; margin: 0 auto; color: var(--color-text-dark);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.price-header { margin-bottom: 2rem; }
.price { font-size: 3.5rem; font-weight: 700; color: var(--color-primary); line-height: 1; margin: 1rem 0; }
.currency { font-size: 1.5rem; vertical-align: super; }
.period { font-size: 1rem; color: #666; font-weight: 400; }
.strike-price { text-decoration: line-through; color: #999; }
.pricing-features { list-style: none; margin-bottom: 2rem; }
.pricing-features li { margin-bottom: 0.8rem; }

/* Video Local */
.video-container {
    position: relative; width: 100%; max-width: 900px; margin: 3rem auto 0; padding-bottom: 56.25%;
    height: 0; overflow: hidden; border-radius: 12px; background-color: #000000; border: 4px solid var(--color-accent);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}
.responsive-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; object-fit: cover; }

/* FAQ CTA */
.faq-cta { background: #ffffff; padding: 2rem; border-radius: 8px; max-width: 600px; margin: 2rem auto 0; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.step { background-color: #ffffff; padding: 1.5rem; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.step-num { font-size: 2.5rem; font-weight: 700; color: var(--color-accent); margin-bottom: 1rem; }

/* Footer */
.footer { padding: 5rem 0 3rem; }
.footer-logo { max-width: 220px; margin: 0 auto 2.5rem; display: block; }
.contact-box { background-color: #ffffff; color: var(--color-text-dark); padding: 3rem 2rem; border-radius: 8px; max-width: 600px; margin: 2rem auto; }
.contact-box p { margin-bottom: 1.5rem; font-size: 1.1rem;}
.phone-num { font-size: 1.25rem; font-weight: bold; margin-top: 1rem; color: var(--color-primary); }

.social-links { margin: 3rem 0 2rem; display: flex; justify-content: center; gap: 1.2rem; }
.social-links a {
    display: inline-flex; align-items: center; justify-content: center; width: 45px; height: 45px;
    border-radius: 50%; background-color: rgba(255, 255, 255, 0.1); color: var(--color-text-light);
    font-size: 1.2rem; transition: all 0.3s ease;
}
.social-links a:hover { background-color: var(--color-accent); transform: translateY(-4px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.copyright { margin-top: 2rem; font-size: 0.95rem; opacity: 0.7; }

/* Responsive */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    .split { grid-template-columns: 1fr; }
    .hero { background-attachment: scroll; }
    .split-img-placeholder img { max-height: 350px; }
    
    .nav-buttons { display: none; }
    
    .gallery-slide { flex: 0 0 calc(50% - 7.5px); /* 2 images on medium screens */ }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; flex-direction: column; position: absolute; top: 100%; left: 0;
        width: 100%; background-color: var(--color-primary); padding: 1rem; text-align: center;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .nav-links.active { display: flex; padding-bottom: 2rem; }
    .mobile-menu-toggle { display: flex; }
    .mobile-only { display: block; margin-top: 1rem; font-weight: 700; }
    
    .hero { padding-top: 8rem; }
    .hero-cta-group { flex-direction: column; }
    .hero-cta-group a { width: 100%; }
    
    .carousel-btn { width: 35px; height: 35px; font-size: 1rem; }
    .carousel-slide { padding: 0 1rem; }
    .carousel-slide p { font-size: 1.1rem; }
    .hero-details { justify-content: center; } 
    .highlight-banner { font-size: 1rem; padding: 0.8rem 1.2rem; } 
    
    .gallery-slide { flex: 0 0 100%; /* 1 image on mobile */ }
    .gallery-carousel-wrapper { padding: 0 30px; }
}
