:root {
    /* Colors */
    --bg-main: #FFFFFF;
    --bg-light-gray: #F8F9FA;
    --navy-blue: #162c52;
    --navy-blue-light: #1f3b68;
    --cyan: #05b1b7;
    --cyan-hover: #049ea3;
    --orange: #fc7f01;
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #E2E8F0;

    /* Typography */
    --font-heading: 'Libre Franklin', 'Segoe UI', sans-serif;
    --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
    
    /* Spacing & Layout */
    --section-spacing: 80px;
    --container-width: 1200px;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(10, 25, 47, 0.12);

    /* Textura de fondo con motivos de estudio */
    --doodle-bg: url("assets/img/patron-estudios.svg");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Sin destello gris en toques (Android/iOS): la web ya tiene sus propios estados */
a, button, input, select, textarea, summary, [role="button"] {
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--navy-blue);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.bg-navy {
    background-color: var(--navy-blue);
    color: white;
}

.bg-navy h2, .bg-navy h3 {
    color: white;
}

.bg-light-gray {
    background-color: var(--bg-light-gray);
}

.text-center {
    text-align: center;
}

.text-white {
    color: white;
}

.mt-5 {
    margin-top: 3rem;
}

/* Typography Utilities */
.section-header {
    margin-bottom: 28px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.bg-navy .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

/* Buttons */
.btn {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 7px;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    font-family: var(--font-heading);
    cursor: pointer;
    text-align: center;
    overflow: hidden;
    -webkit-transition: all 0.2s ease-in;
    -moz-transition: all 0.2s ease-in;
    transition: all 0.2s ease-in;
}

.btn-large {
    padding: 12px 24px;
    font-size: 15px;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: var(--cyan);
    color: #FFFFFF;
    border: 1px solid var(--cyan);
    box-shadow: 0 4px 15px rgba(5, 177, 183, 0.3);
}

.btn-primary:hover {
    background: transparent;
    color: var(--cyan);
    box-shadow: 0 0 20px 2px rgba(5, 177, 183, 0.6);
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}

.btn-outline {
    background: transparent;
    color: var(--navy-blue);
    border: 1px solid var(--navy-blue);
    box-shadow: 0 0 0 0 transparent;
}

.btn-outline:hover {
    background: var(--navy-blue);
    color: #FFFFFF;
    box-shadow: 0 0 30px 5px rgba(22, 44, 82, 0.815);
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}

.btn-primary::before, .btn-outline::before {
    content: '';
    display: block;
    width: 0px;
    height: 86%;
    position: absolute;
    top: 7%;
    left: 0%;
    opacity: 0;
    background: #fff;
    box-shadow: 0 0 50px 30px #fff;
    -webkit-transform: skewX(-20deg);
    -moz-transform: skewX(-20deg);
    -ms-transform: skewX(-20deg);
    -o-transform: skewX(-20deg);
    transform: skewX(-20deg);
}

.btn-primary:hover::before, .btn-outline:hover::before {
    -webkit-animation: sh02 0.5s 0s linear;
    -moz-animation: sh02 0.5s 0s linear;
    animation: sh02 0.5s 0s linear;
}

.btn-primary:active, .btn-outline:active {
    box-shadow: 0 0 0 0 transparent;
    -webkit-transition: box-shadow 0.2s ease-in;
    -moz-transition: box-shadow 0.2s ease-in;
    transition: box-shadow 0.2s ease-in;
}

@keyframes sh02 {
    from {
        opacity: 0;
        left: 0%;
    }
    50% {
        opacity: 1;
    }
    to {
        opacity: 0;
        left: 100%;
    }
}

.btn-text {
    color: var(--cyan);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-text span {
    transition: transform 0.3s ease;
}

.btn-text:hover span {
    transform: translateX(5px);
}

/* Badges */
.badge-orange {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--orange);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(255, 122, 0, 0.3);
}

.badge-premium {
    display: inline-block;
    background-color: rgba(255, 122, 0, 0.1);
    color: var(--orange);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 122, 0, 0.2);
}

/* 1. Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 1px 0 var(--border-color);
    padding: calc(20px + env(safe-area-inset-top, 0px)) 0 20px;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--navy-blue);
}

.logo-white {
    color: white;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--cyan), var(--navy-blue));
    border-radius: 8px;
}

.logo-bold {
    font-weight: 800;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-menu ul {
    display: flex;
    gap: 30px;
}

.nav-menu ul a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 1rem;
}

.nav-menu ul a:hover {
    color: var(--cyan);
}

.nav-menu ul a.active {
    color: var(--cyan);
    font-weight: 600;
}

/* Páginas dedicadas */
.page-hero {
    padding: 130px 0 50px;
    background-color: var(--navy-blue);
    color: white;
}

.page-hero h1 {
    color: white;
    font-size: 2.3rem;
    margin-bottom: 12px;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
}

/* Páginas sin banner principal: compensar la cabecera fija y conservar un H1 oculto para SEO */
.no-page-hero section:first-of-type {
    padding-top: 130px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.search-page .section-header {
    padding-top: 100px;
}

.step-card .btn-text {
    display: inline-block;
    margin-top: 15px;
}

/* Formularios */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--navy-blue);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
    background-color: var(--bg-light-gray);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(5, 177, 183, 0.15);
    background-color: #FFFFFF;
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 15px;
}

.form-note a {
    color: var(--cyan);
}

/* Contacto */
.contact-section {
    padding: var(--section-spacing) 0;
}

.contact-info h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.contact-intro {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.contact-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(5, 177, 183, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-list strong {
    display: block;
    color: var(--navy-blue);
    font-family: var(--font-heading);
}

.contact-list a,
.contact-list p {
    color: var(--text-muted);
}

.contact-list a:hover {
    color: var(--cyan);
}

.contact-form-card {
    background-color: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    padding: 40px;
}

/* Ýrea privada */
.auth-section {
    padding: 150px 0 var(--section-spacing);
}

.auth-card {
    max-width: 480px;
    margin: 0 auto;
    background-color: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    padding: 50px 40px;
    text-align: center;
}

.auth-card h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.auth-subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.auth-form {
    text-align: left;
}

.auth-alt {
    margin-top: 25px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-alt a {
    color: var(--cyan);
    font-weight: 600;
}

/* 2. Hero Section */
.hero {
    padding: 150px 0 80px;
    min-height: auto;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.highlight {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 9px;
    background-color: var(--cyan);
    z-index: -1;
    opacity: 0.35;
    transform: rotate(-1.2deg);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

/* 3. Buscador Section
   El fondo funde gradualmente: llega en gris claro desde la sección
   anterior, se profundiza hacia el azul navy y vuelve a aclararse.
   Con rampas de varios pasos el cambio de tono es suave (sin borde). */
.search-section {
    padding: 215px 0 210px;
    background: linear-gradient(180deg,
        #F8F9FA 0px,
        #C3CBD8 55px,
        #8797B2 120px,
        #46587A 175px,
        var(--navy-blue) 235px,
        var(--navy-blue) calc(100% - 235px),
        #46587A calc(100% - 175px),
        #8797B2 calc(100% - 120px),
        #C3CBD8 calc(100% - 55px),
        #FFFFFF 100%);
}

/* En dudas.html la sección desemboca en el footer navy: fundir hacia abajo */
.search-section.search-page {
    padding: 215px 0 60px;
    background: linear-gradient(180deg,
        #F8F9FA 0px,
        #C3CBD8 55px,
        #8797B2 120px,
        #46587A 175px,
        var(--navy-blue) 235px,
        var(--navy-blue) 100%);
}

@media (max-width: 768px) {
    .search-section {
        padding: 150px 0 150px;
        background: linear-gradient(180deg,
            #F8F9FA 0px,
            #8797B2 80px,
            var(--navy-blue) 150px,
            var(--navy-blue) calc(100% - 150px),
            #FFFFFF 100%);
    }

    .search-section.search-page {
        padding: 150px 0 40px;
        background: linear-gradient(180deg,
            #F8F9FA 0px,
            #8797B2 80px,
            var(--navy-blue) 150px,
            var(--navy-blue) 100%);
    }
}

.search-bar-container {
    max-width: 800px;
    margin: 0 auto 60px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 24px 30px;
    border-radius: 50px;
    border: none;
    font-size: 1.2rem;
    font-family: var(--font-body);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    box-shadow: 0 15px 35px rgba(0, 229, 255, 0.2);
}

.search-button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--cyan);
    color: #FFFFFF;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    background-color: var(--cyan-hover);
    transform: translateY(-50%) scale(1.05);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.video-card {
    background-color: var(--navy-blue-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.video-thumb-link {
    display: block;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255,255,255,0.9);
    color: var(--navy-blue);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    padding-left: 5px;
    z-index: 2;
    transition: all 0.3s ease;
}

.video-card:hover .play-icon {
    background-color: var(--cyan);
    color: #FFFFFF;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 30px;
}

.video-info h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.video-info p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* 4. Pricing Section */
.pricing-section {
    padding: var(--section-spacing) 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center;
}

.pricing-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px 25px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.highlighted {
    transform: scale(1.05);
    border: 2px solid var(--cyan);
    box-shadow: 0 20px 50px rgba(0, 229, 255, 0.15);
}

.pricing-card.highlighted:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy-blue);
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 10px;
}

.price span {
    font-size: 1.2rem;
    vertical-align: top;
    margin-right: 5px;
}

.price .period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-features {
    margin-bottom: 25px;
}

.pricing-features li {
    padding: 8px 0;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.pricing-features li::before {
    content: '✓';
    color: var(--cyan);
    font-weight: bold;
}

/* 5. Steps Section */
.steps-section {
    padding: var(--section-spacing) 0;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 100px;
    right: 100px;
    height: 2px;
    background-color: var(--border-color);
    z-index: 0;
}

.step-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--navy-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: var(--font-heading);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    margin-top: 10px;
}

.step-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* 6. Academia Section */
.academia-section {
    padding: var(--section-spacing) 0;
}

.academia-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    background-color: var(--bg-light-gray);
    border-radius: 30px;
    padding: 80px;
}

.academia-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(5deg);
    transition: transform 0.5s ease;
}

.academia-image:hover img {
    transform: perspective(1000px) rotateY(0deg);
}

.academia-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.academia-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.academia-list {
    margin-bottom: 40px;
}

.academia-list li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 500;
}

/* 7. Footer */
.footer {
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-bio {
    color: rgba(255,255,255,0.7);
    margin: 20px 0;
    max-width: 350px;
}

.footer-contact {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin: -10px 0 20px;
    max-width: 350px;
}

.footer-contact a {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}

.footer-contact a:hover {
    color: var(--cyan);
}

.footer-sep {
    margin: 0 7px;
    opacity: 0.5;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--cyan);
    color: var(--navy-blue);
    transform: translateY(-3px);
}

.social-links a.footer-yt {
    width: auto;
    height: auto;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
}

.footer-links h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 24px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul a {
    color: rgba(255,255,255,0.7);
}

.footer-links ul a:hover {
    color: var(--cyan);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* 8. Recursos */
.recursos-section {
    padding: var(--section-spacing) 0;
}

.recursos-loading {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    padding: 40px 0;
}

.resource-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--cyan);
    color: #FFFFFF;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 3;
}

.badge-premium-card {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: var(--orange);
    color: #FFFFFF;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 3;
    box-shadow: 0 4px 10px rgba(255, 122, 0, 0.3);
}

.resource-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--navy-blue-light), var(--navy-blue));
}

.resource-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.resource-actions .btn-text {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font-body);
}

.resource-actions .btn-text:disabled {
    opacity: 0.5;
    cursor: wait;
}

.premium-teaser {
    margin-top: 50px;
    background: #FFFFFF;
    border: 2px dashed rgba(252, 127, 1, 0.4);
    border-radius: var(--border-radius);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.premium-teaser h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.premium-teaser p {
    color: var(--text-muted);
    max-width: 600px;
}

/* Filtros de recursos */
.recursos-filtros {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filtro-select {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    background: #FFFFFF;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-main);
    outline: none;
    cursor: pointer;
    min-width: 190px;
    transition: border-color 0.2s ease;
}

.filtro-select:focus {
    border-color: var(--cyan);
}

#filtro-limpiar {
    background: none;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    align-self: center;
}

.sin-resultados {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    padding: 30px 0;
}

/* Resultados del buscador */
.search-results {
    margin-top: 40px;
}

.resultados-titulo {
    margin-bottom: 24px;
    font-size: 1.4rem;
}

/* Modal Ýrea Privada */
.auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(22, 44, 82, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-overlay.open {
    display: flex;
}

.auth-card {
    background: #FFFFFF;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
    padding: 40px 32px;
    position: relative;
    max-height: 90vh;
    overflow: auto;
}

.auth-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted);
}

.auth-close:hover {
    color: var(--navy-blue);
}

.auth-card h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.auth-sub {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: var(--bg-light-gray);
    border-radius: 50px;
    padding: 4px;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.auth-tab.active {
    background: var(--cyan);
    color: #FFFFFF;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-input {
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.2s ease;
}

.auth-input:focus {
    border-color: var(--cyan);
}

.auth-message {
    display: none;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.auth-message.error {
    display: block;
    background: rgba(220, 53, 69, 0.08);
    color: #b02a37;
}

.auth-message.ok {
    display: block;
    background: rgba(5, 177, 183, 0.08);
    color: var(--cyan-hover);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .pricing-card.highlighted {
        transform: none;
    }
    
    .pricing-card.highlighted:hover {
        transform: translateY(-10px);
    }
    
    .academia-grid {
        grid-template-columns: 1fr;
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu ul {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-subtitle {
        margin: 0 auto 40px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .steps-container::before {
        display: none;
    }

    .contact-form-card {
        padding: 30px 20px;
    }

    .auth-card {
        padding: 40px 25px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .premium-teaser {
        flex-direction: column;
        text-align: center;
    }
    
    :root {
        --section-spacing: 80px;
    }
}

/* =============================================
   LANDING: AUTORIDAD CLÝNICA + TARJETAS VISUALES
   ============================================= */

/* 1. Hero (compacto) */
.home-hero {
    padding: 170px 0 80px;
    background-image: linear-gradient(180deg, #FFFFFF 0%, var(--bg-light-gray) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Carrusel de fondos (aula, biblioteca, zona de juegos): cross-fade + Ken Burns */
.hero-bg-slides {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-bg-slide {
    position: absolute;
    inset: -48px;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: hero-slide-cycle 42s linear infinite;
}

.hero-bg-slide:nth-child(1) {
    animation-delay: 0s;
}

.hero-bg-slide:nth-child(2) {
    animation-delay: -14s;
}

.hero-bg-slide:nth-child(3) {
    animation-delay: -28s;
}

@keyframes hero-slide-cycle {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    3% {
        opacity: 0.55;
    }

    30% {
        opacity: 0.55;
    }

    33% {
        opacity: 0;
        transform: scale(1.08);
    }

    100% {
        opacity: 0;
        transform: scale(1.08);
    }
}

/* Velo blanco sobre las fotos: las mantiene nítidas y reconocibles
   sin restar legibilidad al titular */
.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.52) 100%);
    pointer-events: none;
}

.home-hero .container {
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg-slide {
        animation: none;
        opacity: 0.55;
    }

    .hero-bg-slide:nth-child(2),
    .hero-bg-slide:nth-child(3) {
        opacity: 0;
    }
}

/* Ýmbitos de intervención clínica (Sobre mí) */
.specialties-section {
    padding: 84px 0;
}

.specialties-intro {
    max-width: 780px;
    margin: 0 auto 44px;
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Listado de ámbitos dentro del acordeón */
.scope-list li {
    padding: 10px 0;
    color: var(--text-muted);
    line-height: 1.65;
    border-bottom: 1px solid rgba(22, 44, 82, 0.07);
}

.scope-list li:last-child {
    border-bottom: none;
    padding-bottom: 14px;
}

.scope-list strong {
    color: var(--navy-blue);
    font-weight: 600;
}

.scope-group {
    display: block;
}

.scope-group > strong {
    display: block;
    margin-bottom: 4px;
}

.scope-group ul {
    margin: 0;
}

.scope-group ul li {
    padding-left: 22px;
}

/* Resumen de especialidades en la home */
.specialties-strip {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid var(--border-color);
}

.specialties-strip p {
    color: var(--text-muted);
    max-width: 760px;
    margin: 0 auto 14px;
    font-size: 1rem;
    line-height: 1.7;
}

/* Textura de estudio aplicada a las secciones claras de toda la web */
.mirror-section,
.plans-section,
.testimonials-section,
.faq-section,
.close-section,
.about-section,
.credentials-closing,
.specialties-section,
.eval-section,
.resources-section,
.contact-section,
.steps-section,
.academia-section {
    background-image: var(--doodle-bg);
}

.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.6px;
    color: var(--navy-blue);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(5, 177, 183, 0.35);
    border-radius: 999px;
    padding: 8px 20px;
    margin-bottom: 22px;
}

.home-hero .hero-title {
    font-size: clamp(1.8rem, 2.8vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.28;
    max-width: 720px;
    margin: 0 auto 18px;
}

.home-hero .hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 32px;
}

.home-hero .hero-buttons {
    justify-content: center;
    gap: 14px;
}

/* CTA oscuro, sólido y elegante */
.btn-dark {
    background: var(--navy-blue);
    color: #FFFFFF;
    border: 1px solid var(--navy-blue);
    box-shadow: 0 10px 24px rgba(22, 44, 82, 0.22);
}

.btn-dark:hover {
    background: #0F2140;
    color: #FFFFFF;
    border-color: #0F2140;
    box-shadow: 0 14px 30px rgba(22, 44, 82, 0.3);
    transform: translateY(-2px);
}

.btn-dark::before {
    display: none;
}

/* 2. Franja de Autoridad */
.trust-strip {
    background: #FFFFFF;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.trust-items {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 40px;
}

.trust-item {
    color: var(--text-muted);
    opacity: 0.55;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.trust-item + .trust-item {
    border-left: 1px solid var(--border-color);
    padding-left: 40px;
}

/* Menú rápido de secciones (solo Inicio) */
.section-nav {
    position: fixed;
    top: 86px;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.section-nav-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 24px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.section-nav-container::-webkit-scrollbar {
    display: none;
}

.section-nav-link {
    flex-shrink: 0;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

.section-nav-link:hover {
    color: var(--cyan);
}

.section-nav-link.active {
    background: var(--navy-blue);
    color: #FFFFFF;
}

/* Botón de búsqueda en la cabecera */
.search-toggle {
    width: 46px;
    height: 46px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #FFFFFF;
    color: var(--navy-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.search-toggle:hover {
    color: var(--cyan);
    border-color: var(--cyan);
}

/* Buscador global (overlay) */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(15, 30, 60, 0.45);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 100px 20px 40px;
    overflow-y: auto;
}

body.search-open {
    overflow: hidden;
}

.search-modal {
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 640px;
    overflow: hidden;
    height: fit-content;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
}

.search-field {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-main);
}

.search-field::placeholder {
    color: #A8B0BC;
}

.search-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-muted);
    padding: 4px 8px;
}

.search-results {
    max-height: 420px;
    overflow-y: auto;
    padding: 12px;
}

.search-hint {
    padding: 22px 14px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.search-result {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px 16px;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.search-result:hover {
    background: var(--bg-light-gray);
}

.search-result-cat {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--cyan);
}

.search-result-title {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--navy-blue);
    font-size: 1rem;
}

.search-result-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .section-nav {
        top: 80px;
    }

    .home-hero {
        padding: 120px 0 70px;
    }

    .search-toggle {
        width: 42px;
        height: 42px;
    }

    .search-overlay {
        padding: 70px 14px 30px;
    }
}

/* 3. Grid de Servicios */
.section-eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.6px;
    color: var(--navy-blue);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(5, 177, 183, 0.35);
    border-radius: 999px;
    padding: 8px 20px;
    margin-bottom: 16px;
}

.section-eyebrow-light {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.35);
}

.services-section {
    padding: 120px 0;
    background: var(--bg-light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.service-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 36px 28px;
    box-shadow: 0 2px 10px rgba(15, 30, 60, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(15, 30, 60, 0.09);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background-color: rgba(5, 177, 183, 0.08);
    color: var(--navy-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.service-card .btn-text {
    margin-top: 20px;
}

/* 4. Metodología (contraste oscuro) */
.methodology-section {
    background: linear-gradient(180deg,
        #FFFFFF 0px,
        #C3CBD8 55px,
        #8797B2 120px,
        #46587A 175px,
        var(--navy-blue) 235px,
        var(--navy-blue) calc(100% - 235px),
        #46587A calc(100% - 175px),
        #8797B2 calc(100% - 120px),
        #C3CBD8 calc(100% - 55px),
        #F8F9FA 100%);
    color: #FFFFFF;
    padding: 175px 0 170px;
}

.methodology-section .section-header h2 {
    color: #FFFFFF;
}

.methodology-section .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 56px;
    margin-top: 20px;
}

.method-step {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding-top: 28px;
}

.method-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--cyan);
    margin-bottom: 16px;
}

.method-step h3 {
    color: #FFFFFF;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.method-step p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
}

/* 5. Cierre y Formulario de Contacto: al final funde hacia el navy del footer */
.close-section {
    padding: 100px 0 175px;
    background: linear-gradient(180deg,
        #FFFFFF 0px,
        #FFFFFF calc(100% - 165px),
        #46587A calc(100% - 90px),
        var(--navy-blue) 100%);
}

.close-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 90px;
    align-items: center;
}

.close-info h2 {
    font-size: 2.4rem;
    margin-bottom: 16px;
}

.close-intro {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 36px;
    max-width: 420px;
}

.close-list li {
    margin-bottom: 22px;
}

.close-list strong {
    display: block;
    color: var(--navy-blue);
    font-family: var(--font-heading);
    font-size: 0.95rem;
}

.close-list a,
.close-list p {
    color: var(--text-muted);
}

.close-list a:hover {
    color: var(--cyan);
}

.quick-form-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(15, 30, 60, 0.04);
    padding: 48px 44px;
}

/* Campos minimalistas: solo línea inferior */
.quick-form .form-group {
    margin-bottom: 28px;
}

.quick-form .form-group label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.quick-form .form-group input,
.quick-form .form-group select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    padding: 10px 2px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.3s ease;
}

.quick-form .form-group select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
}

.quick-form .form-group input::placeholder {
    color: #A8B0BC;
}

.quick-form .form-group input:focus,
.quick-form .form-group select:focus {
    border-bottom: 1px solid var(--navy-blue);
    box-shadow: 0 1px 0 var(--navy-blue);
    background-color: transparent;
}

/* Responsive de la landing */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .close-grid {
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .home-hero {
        padding: 120px 0 70px;
    }

    .trust-items {
        flex-direction: column;
        gap: 14px;
    }

    .trust-item + .trust-item {
        border-left: none;
        padding-left: 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .method-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .close-grid {
        grid-template-columns: 1fr;
    }

    .quick-form-card {
        padding: 36px 24px;
    }
}

/* =============================================
   MEJORAS UX / CONVERSIÓN
   ============================================= */

/* Menú hamburguesa (móvil) */
.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--border-color);
    background: #FFFFFF;
    border-radius: 10px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    z-index: 1002;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--navy-blue);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    body.nav-open {
        overflow: hidden;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        height: 100dvh;
        width: min(320px, 85vw);
        background: #FFFFFF;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 30px;
        padding: calc(100px + env(safe-area-inset-top, 0px)) 32px calc(40px + env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: -10px 0 40px rgba(15, 30, 60, 0.12);
        transform: translateX(100%);
        transition: transform 0.35s ease;
        z-index: 1001;
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-menu ul {
        display: flex;
        flex-direction: column;
        gap: 22px;
    }

    .nav-menu ul a {
        font-size: 1.15rem;
    }

    .nav-menu .btn {
        width: 100%;
    }
}

/* Precio ancla en tarjetas de servicio */
.service-card .service-price {
    flex-grow: 0;
    margin: 16px 0 0;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-blue);
}

.service-price span {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* CTA claro sobre fondo oscuro */
.btn-white {
    background: #FFFFFF;
    color: var(--navy-blue);
    border: 1px solid #FFFFFF;
}

.btn-white:hover {
    background: var(--cyan);
    border-color: var(--cyan);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
}

.btn-white::before {
    display: none;
}

.method-cta {
    text-align: center;
    margin-top: 64px;
}

/* Franja de sesiones sueltas */
.single-session-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    background: #FFFFFF;
    border: 1px dashed rgba(22, 44, 82, 0.35);
    border-radius: 20px;
    padding: 36px 40px;
    margin-top: 44px;
    box-shadow: 0 2px 10px rgba(15, 30, 60, 0.04);
}

.single-session-strip h3 {
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.single-session-strip p {
    color: var(--text-muted);
    max-width: 640px;
}

/* Testimonios */
.testimonials-section {
    padding: 96px 0;
    background: #FFFFFF;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.testimonial-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 34px 30px;
    box-shadow: 0 2px 10px rgba(15, 30, 60, 0.04);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.testimonial-stars {
    color: var(--orange);
    letter-spacing: 3px;
    font-size: 1rem;
}

.testimonial-card blockquote {
    margin: 0;
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.7;
}

.testimonial-author {
    margin-top: auto;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--navy-blue);
    font-size: 0.95rem;
}

.testimonial-author span {
    display: block;
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Estado del envío del formulario */
.form-status {
    display: none;
    margin-top: 16px;
    font-size: 0.9rem;
    text-align: center;
}

.form-status.is-sending,
.form-status.is-ok,
.form-status.is-error {
    display: block;
}

.form-status.is-sending {
    color: var(--text-muted);
}

.form-status.is-ok {
    color: #0E8A4F;
}

.form-status.is-error {
    color: #C0392B;
}

/* Buscador de dudas: mensaje sin resultados */
.search-empty {
    display: none;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    padding: 30px 0 0;
}

.search-empty a {
    color: var(--cyan);
    text-decoration: underline;
}

/* Página Sobre mí */
.about-section {
    padding: 84px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 70px;
    align-items: flex-start;
}

.about-photo img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top center;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.about-content h2 {
    font-size: 2.4rem;
    margin-bottom: 16px;
}

.about-content > p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.about-list li {
    margin-bottom: 14px;
    display: flex;
    gap: 12px;
}

.about-list li::before {
    content: '✓';
    color: var(--cyan);
    font-weight: 700;
}

.about-credentials {
    padding: 72px 0;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.credential-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px 28px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(15, 30, 60, 0.04);
}

.credential-card strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.9rem;
    color: var(--navy-blue);
    margin-bottom: 6px;
}

.credential-card span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Aviso de cookies */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 116px;
    z-index: 1200;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 22px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    max-width: 860px;
    margin: 0 auto;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cookie-banner p {
    margin: 0;
    max-width: 520px;
}

.cookie-banner a {
    color: var(--cyan);
    font-weight: 600;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.cookie-reject {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cookie-banner {
        left: 16px;
        right: 16px;
        bottom: 104px;
    }
}

/* Páginas legales */
.legal-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 20px 0 90px;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin: 34px 0 12px;
}

.legal-content p,
.legal-content li {
    color: var(--text-muted);
    margin-bottom: 14px;
}

.legal-content ul {
    list-style: disc;
    padding-left: 24px;
}

.legal-updated {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 40px;
}

/* =============================================
   REFACTOR LANDING v2: AUTORIDAD CLÝNICA
   ============================================= */

/* Franja de autoridad dentro del hero */
.trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: #FFFFFF;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    filter: grayscale(1);
    opacity: 0.75;
}

.trust-badge svg {
    flex-shrink: 0;
}

/* Espejo del problema (lista en dos columnas) */
.mirror-section {
    padding: 96px 0;
    background: #FFFFFF;
}

.mirror-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 60px;
    margin-top: 10px;
}

.mirror-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.mirror-item svg {
    color: var(--cyan);
    flex-shrink: 0;
    margin-top: 3px;
}

.mirror-item h3 {
    font-size: 1.08rem;
    margin-bottom: 6px;
}

.mirror-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Planes de intervención (grid de tarjetas) */
.plans-section {
    padding: 70px 0 165px;
    background: linear-gradient(180deg,
        var(--bg-light-gray) 0px,
        var(--bg-light-gray) calc(100% - 160px),
        #FFFFFF 100%);
}

/* En servicios.html los planes son la primera sección: fundir desde blanco */
body.no-page-hero .plans-section {
    padding: 125px 0 165px;
    background: linear-gradient(180deg,
        #FFFFFF 0px,
        var(--bg-light-gray) 130px,
        var(--bg-light-gray) calc(100% - 160px),
        #FFFFFF 100%);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
}

.plan-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 26px 24px;
    box-shadow: 0 2px 10px rgba(15, 30, 60, 0.04);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Características de los planes (servicios.html) */
.plan-features {
    margin: 4px 0 0;
}

.plan-features li {
    padding: 4px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.plan-features li::before {
    content: '✓';
    color: var(--cyan);
    font-weight: bold;
}

.plans-conditions {
    margin-top: 28px;
    font-size: 0.88rem;
    color: var(--text-muted);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* Servicios puntuales (dos tarjetas) */
.eval-section {
    padding: 90px 0;
}

.pricing-grid-duo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 920px;
    margin: 0 auto;
    align-items: stretch;
}

@media (max-width: 768px) {
    .pricing-grid-duo {
        grid-template-columns: 1fr;
    }
}

.plan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(15, 30, 60, 0.09);
}

.plan-card.featured {
    border: 2px solid var(--navy-blue);
    box-shadow: 0 18px 40px rgba(15, 30, 60, 0.14);
}

.plan-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background-color: rgba(5, 177, 183, 0.08);
    color: var(--navy-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.plan-card h3 {
    font-size: 1.12rem;
    margin-bottom: 8px;
}

.plan-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
}

.plan-price {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy-blue);
    margin: 12px 0 0;
}

.plan-price span {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.plan-card .btn-text {
    margin-top: 14px;
}

.plan-card .btn-dark {
    margin-top: 14px;
}

/* FAQ en acordeón (tarjetas con estado diferenciado) */
.faq-section {
    padding: 96px 0;
    background: var(--bg-light-gray);
}

/* En Inicio el FAQ funde blanco?gris?blanco para no cortar el tono */
.page-home .faq-section {
    padding: 170px 0 160px;
    background: linear-gradient(180deg,
        #FFFFFF 0px,
        var(--bg-light-gray) 150px,
        var(--bg-light-gray) calc(100% - 150px),
        #FFFFFF 100%);
}

.faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.faq-item {
    position: relative;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(5, 177, 183, 0.45);
}

.faq-item.open {
    background-color: rgba(5, 177, 183, 0.05);
    border-color: rgba(5, 177, 183, 0.5);
    box-shadow: 0 8px 20px rgba(15, 30, 60, 0.07);
}

.faq-item.open::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--cyan);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 18px 22px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy-blue);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.faq-chevron {
    position: relative;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.faq-chevron::before,
.faq-chevron::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background: var(--navy-blue);
    border-radius: 2px;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, background 0.3s ease;
}

.faq-chevron::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.open .faq-chevron::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.faq-item.open .faq-chevron::before,
.faq-item.open .faq-chevron::after {
    background: var(--cyan);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.faq-answer > div {
    overflow: hidden;
}

.faq-answer p {
    color: var(--text-muted);
    padding: 0 22px 22px;
    max-width: 640px;
}

.faq-answer .scope-list {
    padding: 2px 22px 10px;
}

.faq-item.open .faq-answer {
    grid-template-rows: 1fr;
}

@media (max-width: 768px) {
    .trust-badges {
        gap: 10px;
    }

    .trust-badge {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .mirror-list {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .plans-grid {
        grid-template-columns: 1fr;
    }

    .plan-card.featured {
        border-width: 2px;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .about-grid,
    .credentials-grid {
        grid-template-columns: 1fr;
    }

    .single-session-strip {
        padding: 28px 24px;
    }
}

/* =============================================
   SOBRE MÝ v2: EMPATÝA + MANIFIESTO + CIERRE
   ============================================= */

/* Párrafo inicial (lead) */
.about-lead {
    font-size: 1.2rem;
    color: var(--text-main);
    line-height: 1.7;
}

/* Presentación personal y credenciales */
.credentials-block {
    border-top: 1px solid var(--border-color);
    margin-top: 44px;
    padding-top: 38px;
}

.credentials-block h3 {
    font-size: 1.7rem;
    line-height: 1.25;
    margin-bottom: 16px;
}

.credentials-block > p {
    color: var(--text-muted);
    margin-bottom: 26px;
    line-height: 1.7;
}

.credentials-list {
    display: grid;
    gap: 20px;
}

.credentials-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.credentials-list svg {
    color: var(--cyan);
    flex-shrink: 0;
    margin-top: 2px;
}

.credentials-list strong {
    color: var(--navy-blue);
    font-weight: 600;
}

/* Manifiesto clínico (banda oscura) */
.manifesto-section {
    background: var(--navy-blue);
    color: #FFFFFF;
    padding: 90px 0;
}

.manifesto-section h2 {
    color: #FFFFFF;
    font-size: 1.9rem;
    margin-bottom: 16px;
}

.manifesto-intro {
    color: rgba(255, 255, 255, 0.8);
    max-width: 820px;
    font-size: 1.08rem;
    line-height: 1.7;
}

.manifesto-kicker {
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-heading);
    font-weight: 600;
    margin: 36px 0 28px;
    letter-spacing: 0.5px;
}

.manifesto-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.manifesto-list li {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 24px;
}

.manifesto-list-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: rgba(5, 177, 183, 0.16);
    color: var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.manifesto-list strong {
    display: block;
    font-family: var(--font-heading);
    color: #FFFFFF;
    font-size: 1.12rem;
    margin-bottom: 6px;
}

.manifesto-list p {
    color: rgba(255, 255, 255, 0.78);
}

.manifesto-quote {
    margin-top: 44px;
    max-width: 820px;
    border-left: 3px solid var(--cyan);
    padding-left: 26px;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    line-height: 1.5;
    color: #FFFFFF;
}

/* Cierre de credenciales */
.credentials-closing {
    padding: 96px 0;
    text-align: center;
}

.credentials-closing h2 {
    font-size: 1.9rem;
    margin-bottom: 18px;
}

.credentials-closing p {
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 38px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.credentials-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 28px;
}

/* Academia: nota bajo el botón de acceso */
.academy-note {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.academy-note a {
    color: var(--cyan);
    font-weight: 600;
}

/* Recursos de la Academia (área de miembros) */
.resources-section {
    padding: 100px 0;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.resource-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 34px 28px;
    box-shadow: 0 2px 10px rgba(15, 30, 60, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(15, 30, 60, 0.09);
}

.resource-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background-color: rgba(5, 177, 183, 0.08);
    color: var(--navy-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.resource-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.resource-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.resource-card .btn-text {
    margin-top: 18px;
}

@media (max-width: 1024px) {
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .manifesto-list {
        grid-template-columns: 1fr;
    }

    .manifesto-list li {
        gap: 16px;
    }

    .manifesto-quote {
        font-size: 1.15rem;
        padding-left: 18px;
        margin-top: 44px;
    }

    .manifesto-section h2,
    .credentials-closing h2 {
        font-size: 1.6rem;
    }
}

/* Recomendaciones con enlaces de afiliado a Amazon */
.recom-section {
    padding: 90px 0;
}

.recom-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.recom-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recom-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.recom-img {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--bg-light-gray);
    overflow: hidden;
}

.recom-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.recom-img-placeholder {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, #f1f4f8, #f1f4f8 12px, #e9eef4 12px, #e9eef4 24px);
}

.recom-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    background: var(--navy-blue);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
}

.recom-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.recom-info h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.recom-info p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
    flex-grow: 1;
    margin-bottom: 8px;
}

.recom-categoria {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.78rem;
    color: var(--cyan-hover);
    background: rgba(5, 177, 183, 0.08);
    padding: 3px 10px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.btn-recom {
    background: var(--orange);
    color: #FFFFFF;
    border: none;
    text-align: center;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.btn-recom:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    color: #FFFFFF;
}

.recom-disclosure {
    margin: 44px auto 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 720px;
    line-height: 1.6;
}

@media (max-width: 1100px) {
    .recom-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .recom-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .recom-grid {
        grid-template-columns: 1fr;
    }
}

/* Reproductor de YouTube integrado (lightbox) */
.video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2100;
    background: rgba(10, 18, 32, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
}

.video-lightbox-frame {
    width: min(1024px, 100%);
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.video-lightbox-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video-lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.video-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.video-lightbox-alt {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.video-lightbox-alt:hover {
    color: #FFFFFF;
}

body.video-open {
    overflow: hidden;
}

@media (max-width: 560px) {
    .video-lightbox {
        padding: 12px;
    }
}

/* =============================================
   Sobre mí — estructura optimizada
   ============================================= */
.about-photo {
    position: relative;
}

.about-photo .about-badge {
    position: absolute;
    bottom: 18px;
    left: 18px;
    right: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: var(--shadow-lg);
}

.about-photo .about-badge strong {
    display: block;
    color: var(--navy-blue);
    font-size: 1.05rem;
}

.about-photo .about-badge span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.about-yt {
    display: block;
    margin-top: 14px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    color: var(--navy-blue);
    font-weight: 600;
    font-size: 0.92rem;
}

.about-yt:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

.about-story {
    border-left: 3px solid var(--cyan);
    padding-left: 18px;
    font-style: italic;
    color: var(--text-muted);
}

.credentials-list {
    grid-template-columns: repeat(2, 1fr);
}

.credentials-list li {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px;
    background: #FFFFFF;
}

.manifesto-signature {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
}

.situations-section {
    padding: 90px 0;
}

.situations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.situation-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 26px;
}

.situation-card h3 {
    color: var(--navy-blue);
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.situation-card p {
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

.situations-cta {
    margin-top: 36px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.about-faq-section {
    padding: 90px 0;
}

.about-faq-section .faq-list {
    max-width: 820px;
    margin: 0 auto;
}

.closing-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .situations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-grid {
        gap: 44px;
    }

    .about-content h2 {
        font-size: 1.75rem;
    }

    .credentials-block h3 {
        font-size: 1.4rem;
    }

    .credentials-block {
        margin-top: 34px;
        padding-top: 28px;
    }

    .situations-section,
    .about-faq-section,
    .manifesto-section,
    .credentials-closing {
        padding: 64px 0;
    }

    .no-page-hero section:first-of-type {
        padding-top: 115px;
    }

    .situation-card h3 {
        font-size: 1.05rem;
    }
}

@media (max-width: 640px) {
    .situations-grid,
    .credentials-list {
        grid-template-columns: 1fr;
    }

    .about-photo .about-badge {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .situations-cta .btn,
    .closing-actions .btn {
        width: 100%;
    }
}

/* =============================================
   UNIFICACIÓN VISUAL GLOBAL
   ============================================= */

/* Titulares de sección a una misma escala */
.section-header h2,
.manifesto-section h2,
.credentials-closing h2,
.about-content h2,
.contact-info h2,
.close-info h2 {
    font-size: 2rem;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .section-header h2,
    .manifesto-section h2,
    .credentials-closing h2,
    .about-content h2,
    .contact-info h2,
    .close-info h2 {
        font-size: 1.5rem;
    }
}

/* Radios y sombras de tarjetas unificados */
.plan-card,
.pricing-card,
.situation-card,
.credentials-list li,
.video-card,
.step-card,
.testimonial-card {
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}

/* Foco visible para navegación con teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(5, 177, 183, 0.55);
    outline-offset: 2px;
}

/* Ritmo vertical unificado */
.mirror-section,
.plans-section,
.testimonials-section,
.faq-section,
.close-section,
.about-section,
.credentials-closing,
.specialties-section,
.eval-section,
.resources-section,
.contact-section,
.steps-section,
.academia-section,
.recom-section,
.situations-section,
.about-faq-section,
.manifesto-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

@media (max-width: 768px) {
    .mirror-section,
    .plans-section,
    .testimonials-section,
    .faq-section,
    .close-section,
    .about-section,
    .credentials-closing,
    .specialties-section,
    .eval-section,
    .resources-section,
    .contact-section,
    .steps-section,
    .academia-section,
    .recom-section,
    .situations-section,
    .about-faq-section,
    .manifesto-section {
        padding-top: 56px;
        padding-bottom: 56px;
    }
}

@media (max-width: 480px) {
    .about-photo .about-badge {
        padding: 10px 14px;
    }

    .about-photo .about-badge strong {
        font-size: 0.95rem;
    }

    .about-photo .about-badge span {
        font-size: 0.78rem;
    }

    .situation-card {
        padding: 20px;
    }
}

/* =============================================
   Navegación hub con desplegable + CTA de contacto
   ============================================= */
.nav-dropdown {
    position: relative;
}

.nav-drop-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
}

.nav-drop-toggle:hover,
.nav-dropdown.active > .nav-drop-toggle {
    color: var(--cyan);
}

.nav-dropdown.active > .nav-drop-toggle {
    font-weight: 600;
}

.nav-caret {
    font-size: 0.7em;
    transition: transform 0.2s ease;
}

.nav-dropdown.open .nav-caret {
    transform: rotate(180deg);
}

.nav-submenu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 200px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1100;
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu,
.nav-dropdown.open .nav-submenu {
    opacity: 1;
    visibility: visible;
}

.nav-submenu a {
    display: block;
    padding: 4px 12px;
    line-height: 1.35;
    border-radius: 8px;
    white-space: nowrap;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-private-link {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    border-left: 1px solid var(--border-color);
    padding-left: 18px;
}

.nav-private-link:hover {
    color: var(--cyan);
}

/* Contacto: cabecera con logo + tarjetas de contacto */
.contact-hero {
    max-width: 620px;
    margin: 0 auto 48px;
    text-align: center;
}

.contact-logo {
    width: 96px;
    height: 96px;
    max-width: none;
    object-fit: contain;
    background: #FFFFFF;
    border-radius: 22px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    padding: 8px;
    margin-bottom: 22px;
}

.contact-hero h1 {
    font-size: 2.6rem;
    margin-bottom: 14px;
}

.contact-hero .contact-intro {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    max-width: 960px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 26px 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-card strong {
    display: block;
    font-family: var(--font-heading);
    color: var(--navy-blue);
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.contact-card-data {
    color: var(--text-muted);
    word-break: break-word;
}

.contact-card-action {
    margin-top: auto;
    color: var(--cyan);
    font-weight: 600;
    font-size: 0.95rem;
}

a.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--cyan);
}

a.contact-card:hover .contact-card-action {
    color: var(--cyan-hover);
}

@media (max-width: 560px) {
    .contact-hero h1 {
        font-size: 2rem;
    }

    .contact-card {
        padding: 22px 20px;
    }
}

/* Barra de acción fija en móvil (solo visible <= 768px) */
.mobile-cta-bar {
    display: none;
}

@media (max-width: 768px) {
    /* En el drawer móvil el desplegable funciona como acordeón */
    .nav-dropdown:hover .nav-submenu,
    .nav-dropdown:focus-within .nav-submenu {
        opacity: 0;
        visibility: hidden;
    }

    .nav-dropdown.open .nav-submenu {
        opacity: 1;
        visibility: visible;
    }

    .nav-drop-toggle {
        font-size: 1.15rem;
    }

    .nav-submenu {
        position: static;
        transform: none;
        min-width: 0;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--border-color);
        border-radius: 0;
        margin-top: 8px;
        padding: 0 0 0 16px;
        gap: 2px;
    }

    .nav-submenu a {
        padding: 0;
        font-size: 0.95rem;
    }

    .nav-private-link {
        border-left: none;
        padding-left: 0;
    }

    .nav-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        width: 100%;
    }

    .nav-actions .btn {
        width: 100%;
        text-align: center;
    }

    .mobile-cta-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1050;
        gap: 10px;
        padding: 10px 14px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
        background: #FFFFFF;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -6px 24px rgba(15, 30, 60, 0.1);
    }

    .mobile-cta-main {
        flex: 1;
        text-align: center;
    }

    .mobile-cta-wa {
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #25D366;
        border-radius: 10px;
        flex-shrink: 0;
    }

    .whatsapp-btn {
        display: none;
    }

    body {
        padding-bottom: 70px;
    }

    .cookie-banner {
        bottom: calc(170px + env(safe-area-inset-bottom, 0px));
    }
}

/* =============================================
   Guías e infografías gratuitas (recursos.html)
   ============================================= */
.free-downloads-section {
    padding: 90px 0;
}

.free-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 30px;
}

.free-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(15, 30, 60, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.free-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(15, 30, 60, 0.09);
}

.free-badge {
    align-self: flex-start;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.free-badge-guia {
    background: rgba(5, 177, 183, 0.12);
    color: var(--cyan);
}

.free-badge-infografia {
    background: rgba(252, 127, 1, 0.13);
    color: var(--orange);
}

.free-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy-blue);
    margin-bottom: 8px;
}

.free-card p {
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.55;
    flex-grow: 1;
    margin-bottom: 14px;
}

.free-note {
    color: var(--text-muted);
    margin-top: 26px;
}

.free-modal-sub {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin: 10px 0 16px;
}

.free-check {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 4px 0 16px;
    cursor: pointer;
}

.free-check input {
    margin-top: 3px;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .free-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 560px) {
    .free-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   Página Recursos: banner mesa + índice + premium
   ============================================= */
.recursos-banner-section {
    padding: 60px 0 20px;
}

.desk-banner {
    display: flex;
    align-items: center;
    gap: 44px;
    background: linear-gradient(135deg, #F6F9FC 0%, #EDF3F9 100%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px 38px;
    min-height: 220px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(15, 30, 60, 0.04);
}

.desk-copy {
    flex: 1 1 46%;
}

.desk-copy h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--navy-blue);
    margin: 10px 0 12px;
}

.desk-copy p {
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

/* Collage: mesa con recursos escritos y visuales */
.desk-collage {
    flex: 1 1 54%;
    position: relative;
    height: 200px;
    min-width: 300px;
}

.desk-item {
    position: absolute;
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(15, 30, 60, 0.16);
}

.desk-video {
    left: 2%;
    top: 26px;
    width: 60%;
    aspect-ratio: 16 / 9;
    transform: rotate(-3deg);
    overflow: hidden;
    border: 5px solid #FFFFFF;
    background: #000;
}

.desk-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.desk-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 1.7rem;
    background: rgba(0, 0, 0, 0.28);
    transition: background 0.25s ease;
}

.desk-video:hover .desk-play {
    background: rgba(0, 0, 0, 0.12);
}

.desk-paper {
    right: 2%;
    top: 0;
    width: 34%;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    transform: rotate(4deg);
    padding: 14px 14px 18px;
}

.desk-chip {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cyan);
    background: rgba(5, 177, 183, 0.12);
    border-radius: 999px;
    padding: 3px 9px;
    margin-bottom: 8px;
}

.desk-paper strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    color: var(--navy-blue);
    line-height: 1.35;
}

.desk-lines {
    display: block;
    margin-top: 10px;
    height: 22px;
    background: repeating-linear-gradient(
        180deg,
        rgba(15, 30, 60, 0.12) 0,
        rgba(15, 30, 60, 0.12) 2px,
        transparent 2px,
        transparent 8px
    );
}

.desk-info {
    right: 8%;
    bottom: 0;
    width: 42%;
    background: var(--orange);
    color: #FFFFFF;
    transform: rotate(-2deg);
    padding: 12px 16px;
}

.desk-info strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    line-height: 1.3;
}

.desk-info span {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

/* Índice de secciones */
.recursos-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 26px;
}

.chip {
    padding: 9px 18px;
    border-radius: 999px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--navy-blue);
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.chip:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

/* Sección de vídeos de recursos */
.videos-recursos-section {
    padding: 80px 0;
}

/* Sección premium condensada */
.premium-recursos-section {
    padding: 80px 0 90px;
}

.premium-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 44px;
    align-items: center;
}

.premium-copy h2 {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--navy-blue);
    margin: 14px 0 12px;
}

.premium-copy p {
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0 0 8px;
}

.premium-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
}

.premium-side {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px 28px;
    box-shadow: 0 2px 10px rgba(15, 30, 60, 0.04);
}

.premium-side h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy-blue);
    margin-bottom: 14px;
}

@media (max-width: 992px) {
    .desk-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 26px;
        padding: 28px 26px;
    }

    .desk-collage {
        width: 100%;
        min-width: 0;
        height: 180px;
    }

    .premium-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .desk-collage {
        height: auto;
    }

    .desk-paper {
        display: none;
    }

    .desk-video {
        position: static;
        width: 100%;
        transform: none;
    }

    .desk-figure {
        position: static;
        width: 100%;
        transform: none;
        margin-top: 14px;
    }
}

/* Pestañas de filtro y miniaturas de descargas gratuitas */
.free-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 26px 0 30px;
}

.free-tab {
    padding: 8px 20px;
    border-radius: 999px;
    background: #FFFFFF;
    border: 1.5px solid var(--border-color);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy-blue);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.free-tab:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

.free-tab.active {
    background: var(--cyan);
    border-color: var(--cyan);
    color: #FFFFFF;
}

.free-card-img {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    aspect-ratio: 16 / 9;
    background: var(--bg-light-gray);
}

.free-card-img--port {
    aspect-ratio: 0.72;
}

.free-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Infografía real en el banner (mesa de recursos) */
.desk-figure {
    right: 4%;
    bottom: -4px;
    width: 46%;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    padding: 6px;
    border-radius: 10px;
    transform: rotate(-2deg);
    text-decoration: none;
    transition: transform 0.25s ease;
}

.desk-figure:hover {
    transform: rotate(0deg) scale(1.02);
}

.desk-figure img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.desk-figure-tag {
    position: absolute;
    left: 12px;
    bottom: 12px;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--orange);
    color: #FFFFFF;
    border-radius: 999px;
    padding: 4px 10px;
}

/* =============================================
   Selector de paneles y navegación entre recursos
   ============================================= */
.recursos-switch {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 28px;
    scroll-margin-top: 90px;
}

.rswitch-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 16px;
    background: #FFFFFF;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.rswitch-btn:hover {
    border-color: var(--cyan);
    transform: translateY(-2px);
}

.rswitch-btn.active {
    border-color: var(--navy-blue);
    background: var(--navy-blue);
    box-shadow: 0 10px 24px rgba(15, 30, 60, 0.18);
}

.rswitch-ico {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 177, 183, 0.10);
    color: var(--cyan);
    transition: background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.rswitch-txt strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.02rem;
    color: var(--navy-blue);
    transition: color 0.2s ease;
}

.rswitch-txt small {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
    transition: color 0.2s ease;
}

.rswitch-btn.active .rswitch-txt strong {
    color: #FFFFFF;
}

.rswitch-btn.active .rswitch-txt small {
    color: rgba(255, 255, 255, 0.75);
}

.rswitch-btn.active .rswitch-ico {
    background: rgba(255, 255, 255, 0.14);
    color: #FFFFFF;
}

/* Paneles de recursos (una "página" visible cada vez) */
.free-panel {
    padding: 46px 0 70px;
    scroll-margin-top: 90px;
}

/* Navegación inferior entre paneles */
.free-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 48px;
}

.free-nav .btn {
    min-width: 230px;
    text-align: center;
    justify-content: center;
}

.desk-figure {
    cursor: pointer;
    font: inherit;
}

@media (max-width: 768px) {
    .recursos-switch {
        grid-template-columns: 1fr;
    }

    .rswitch-btn {
        flex-direction: row;
        text-align: left;
    }

    .free-nav .btn {
        min-width: 0;
        width: 100%;
    }
}

/* Botones-visuales de navegación entre paneles */
.navcard {
    position: relative;
    flex: 0 1 280px;
    min-height: 120px;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(15, 30, 60, 0.12);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.navcard::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(22, 44, 82, 0.28) 0%, rgba(22, 44, 82, 0.80) 100%);
    transition: background 0.22s ease;
}

.navcard:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(15, 30, 60, 0.24);
}

.navcard-txt {
    position: relative;
    z-index: 1;
    color: #FFFFFF;
    text-align: center;
    padding: 18px 22px;
}

.navcard-txt strong {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.02rem;
}

.navcard-txt strong::after {
    content: "?";
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.navcard:hover .navcard-txt strong::after {
    transform: translateX(4px);
}

.navcard-txt small {
    display: block;
    margin-top: 4px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 768px) {
    .navcard {
        flex: 1 1 100%;
    }
}

/* =============================================
   Selector de paneles: tarjetas con imagen viva
   ============================================= */
.rswitch-btn {
    position: relative;
    overflow: hidden;
    min-height: 132px;
    border-color: transparent;
    background: var(--navy-blue);
    box-shadow: 0 6px 18px rgba(15, 30, 60, 0.10);
}

.rswitch-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(85%) brightness(0.5);
    opacity: 0.5;
    transform: scale(1.08);
    transition: filter 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}

.rswitch-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(22, 44, 82, 0.35) 0%, rgba(22, 44, 82, 0.72) 100%);
    pointer-events: none;
}

.rswitch-count {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    min-width: 30px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--orange);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(252, 127, 1, 0.35);
}

.rswitch-btn .rswitch-ico,
.rswitch-btn .rswitch-txt {
    position: relative;
    z-index: 1;
}

.rswitch-btn .rswitch-txt strong,
.rswitch-btn .rswitch-txt small {
    color: #FFFFFF;
}

.rswitch-btn .rswitch-txt small {
    opacity: 0.85;
}

.rswitch-btn .rswitch-ico {
    background: rgba(255, 255, 255, 0.14);
    color: #FFFFFF;
}

/* Interaccion: al pasar el raton la imagen despierta */
.rswitch-btn:hover .rswitch-bg {
    filter: grayscale(35%) brightness(0.65);
    opacity: 0.75;
    transform: scale(1.03);
}

.rswitch-btn:hover .rswitch-ico {
    transform: rotate(-8deg) scale(1.08);
}

/* Panel activo: la imagen se ve en color y la tarjeta brilla */
.rswitch-btn.active .rswitch-bg {
    filter: none;
    opacity: 0.85;
    transform: scale(1);
}

.rswitch-btn.active {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(5, 177, 183, 0.25), 0 14px 30px rgba(15, 30, 60, 0.25);
}

.rswitch-btn.active .rswitch-ico {
    background: var(--cyan);
    color: #FFFFFF;
    transform: rotate(0) scale(1.05);
}

.rswitch-btn .rswitch-ico {
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

/* En movil (fila horizontal) mantener el efecto compacto */
@media (max-width: 768px) {
    .rswitch-btn {
        min-height: 92px;
    }

    .rswitch-bg {
        filter: grayscale(60%) brightness(0.55);
    }

    .rswitch-btn.active .rswitch-bg {
        filter: none;
    }
}

/* =============================================
   Fondo papel de cuaderno (pagina de recursos)
   ============================================= */
.page-cuaderno {
    background-color: #FFFFFF;
    background-image:
        linear-gradient(90deg, transparent 72px, rgba(252, 127, 1, 0.22) 72px, rgba(252, 127, 1, 0.22) 73px, transparent 73px),
        linear-gradient(rgba(105, 140, 180, 0.10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(105, 140, 180, 0.10) 1px, transparent 1px);
    background-repeat: no-repeat, repeat, repeat;
    background-size: 100% 100%, 28px 28px, 28px 28px;
}

@media (max-width: 768px) {
    /* En movil se prescinde del margen rojo y la cuadricula se hace mas densa */
    .page-cuaderno {
        background-image:
            linear-gradient(rgba(105, 140, 180, 0.09) 1px, transparent 1px),
            linear-gradient(90deg, rgba(105, 140, 180, 0.09) 1px, transparent 1px);
        background-repeat: repeat, repeat;
        background-size: 22px 22px, 22px 22px;
    }
}

/* =============================================
   Pulido responsive movil
   ============================================= */
@media (max-width: 768px) {
    body {
        overflow-x: clip;
    }

    .container {
        padding: 0 18px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    /* Pagina de recursos */
    .recursos-banner-section {
        padding: 40px 0 14px;
    }

    .desk-banner {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .desk-copy h2 {
        font-size: 1.4rem;
    }

    .desk-copy p {
        font-size: 0.95rem;
    }

    .free-panel {
        padding: 36px 0 56px;
    }

    .free-card {
        padding: 16px 14px;
    }

    /* Portadas verticales: recorte mas corto para no eternizar el scroll */
    .free-card-img--port {
        aspect-ratio: 4 / 5;
    }

    .free-card-img--port img {
        object-position: top center;
    }

    .free-nav {
        margin-top: 38px;
    }

    .navcard {
        min-height: 104px;
    }

    .premium-recursos-section {
        padding: 56px 0 66px;
    }

    .premium-side {
        padding: 22px 20px;
    }

    /* Cierre del lightbox con area tactil generosa */
    .video-lightbox-close {
        top: 10px;
        right: 10px;
        min-width: 44px;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .desk-copy h2 {
        font-size: 1.28rem;
    }

    .free-card h3 {
        font-size: 0.95rem;
    }

    .rswitch-txt strong {
        font-size: 0.95rem;
    }

    .plans-conditions {
        font-size: 0.85rem;
    }
}

/* =============================================
   Hero de inicio con tarjeta de video (estilo reel)
   ============================================= */
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
    text-align: left;
}

.hero-media {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-video-glow {
    position: absolute;
    width: 112%;
    height: 112%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-4deg);
    border-radius: 40px;
    background: linear-gradient(135deg, rgba(5, 177, 183, 0.32), rgba(252, 127, 1, 0.28));
    filter: blur(48px);
    z-index: 0;
}

.hero-video-card {
    position: relative;
    z-index: 1;
    width: min(320px, 78vw);
    aspect-ratio: 9 / 16;
    border-radius: 28px;
    overflow: hidden;
    border: 4px solid #FFFFFF;
    box-shadow: 0 24px 50px rgba(15, 30, 60, 0.22);
    animation: heroFloat 6s ease-in-out infinite;
}

.hero-video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-video-badge {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.94);
    color: var(--navy-blue);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 8px 16px;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(15, 30, 60, 0.18);
    white-space: nowrap;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-video-card {
        animation: none;
    }
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-grid .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-grid .hero-buttons {
        justify-content: center;
    }

    .hero-video-card {
        width: min(270px, 72vw);
    }
}

/* =============================================
   Banner interactivo: pila de guias + parallax
   ============================================= */
.desk-banner {
    --px: 0;
    --py: 0;
}

.desk-banner::after {
    content: "";
    position: absolute;
    right: -70px;
    top: -70px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(5, 177, 183, 0.16), transparent 70%);
    pointer-events: none;
    transform: translate(calc(var(--px) * -16px), calc(var(--py) * -12px));
}

/* Pila de portadas reales de las guias */
.desk-stack {
    right: 4%;
    top: 2px;
    width: 36%;
    height: 96px;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    cursor: pointer;
    transform: translate(calc(var(--px) * 14px), calc(var(--py) * 10px));
    transition: transform 0.2s ease-out;
}

.desk-cover {
    position: absolute;
    width: 30%;
    aspect-ratio: 0.72;
    object-fit: cover;
    object-position: top;
    border: 3px solid #FFFFFF;
    border-radius: 7px;
    box-shadow: 0 10px 22px rgba(15, 30, 60, 0.18);
    transition: transform 0.3s ease;
}

.desk-cover.c1 {
    left: 6%;
    top: 14px;
    transform: rotate(-11deg);
    z-index: 1;
}

.desk-cover.c2 {
    left: 35%;
    top: 4px;
    transform: rotate(1deg);
    z-index: 2;
}

.desk-cover.c3 {
    left: 64%;
    top: 12px;
    transform: rotate(10deg);
    z-index: 3;
}

.desk-stack:hover .c1 {
    transform: rotate(-17deg) translate(-10px, 7px);
}

.desk-stack:hover .c2 {
    transform: rotate(0deg) translateY(-8px);
}

.desk-stack:hover .c3 {
    transform: rotate(16deg) translate(10px, 7px);
}

.desk-stack-tag {
    position: absolute;
    right: -2px;
    bottom: -8px;
    z-index: 4;
    background: var(--orange);
    color: #FFFFFF;
    font-size: 0.66rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(252, 127, 1, 0.35);
    white-space: nowrap;
}

/* Parallax de los elementos de la mesa */
.desk-video {
    transform: translate(calc(var(--px) * 10px), calc(var(--py) * 8px)) rotate(-3deg);
    transition: transform 0.2s ease-out;
}

.desk-figure {
    transform: translate(calc(var(--px) * 18px), calc(var(--py) * 13px)) rotate(-2deg);
    transition: transform 0.2s ease-out;
}

.desk-figure:hover {
    transform: translate(calc(var(--px) * 18px), calc(var(--py) * 13px)) rotate(0deg) scale(1.03);
}

@media (max-width: 600px) {
    .desk-stack {
        display: none;
    }
}

/* =============================================
   HOVER DEL MENÚ PRINCIPAL
   Subrayado animado que crece desde el centro,
   elevación suave y brillo cian al pasar el ratón.
   ============================================= */
.nav-menu > ul > li > a {
    position: relative;
    padding: 6px 2px;
}

.nav-menu > ul > li > a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--navy-blue));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-menu > ul > li > a:hover {
    color: var(--cyan);
    transform: translateY(-2px);
    text-shadow: 0 0 18px rgba(5, 177, 183, 0.55);
}

.nav-menu > ul > li > a:hover::after,
.nav-menu > ul > li > a.active::after {
    transform: scaleX(1);
}

.nav-menu > ul > li > a:active {
    transform: translateY(0) scale(0.96);
    transition: transform 0.1s ease;
}

/* =============================================
   TRANSICIÓN ENTRE PÁGINAS CON EL LOGO (cortina)
   Una cortina blanca sólida baja cubriendo la página
   (sin fundidos translúcidos: nunca se mezclan los
   colores). El logo saluda con un muelle, navega, y
   en la página nueva la cortina sube revelándola.
   ============================================= */
.page-transition {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    transform: translateY(-101%);
    will-change: transform;
    visibility: hidden;
    pointer-events: none;
}

/* Línea de acento en el borde inferior de la cortina */
.page-transition::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 4px;
    background: linear-gradient(90deg, var(--cyan), var(--navy-blue));
}

.pt-logo {
    width: clamp(130px, 26vw, 250px);
    border-radius: 22%;
    transform: scale(0.55);
    opacity: 0;
    box-shadow: 0 30px 80px rgba(22, 44, 82, 0.22);
    will-change: transform, opacity;
}

/* --- Salida: la cortina baja y el logo se acerca con muelle --- */
.page-transition.pt-exit {
    visibility: visible;
    pointer-events: all;
    animation: pt-cover 0.42s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.page-transition.pt-exit .pt-logo {
    animation: pt-logo-in 0.6s cubic-bezier(0.26, 1.24, 0.38, 1) 0.12s forwards;
}

/* --- Entrada: el logo se despide y la cortina sube --- */
.page-transition.pt-intro {
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
    animation: pt-uncover 0.5s cubic-bezier(0.76, 0, 0.24, 1) 0.38s forwards;
}

.page-transition.pt-intro .pt-logo {
    transform: scale(1);
    opacity: 1;
    animation: pt-logo-out 0.3s ease 0.12s forwards;
}

@keyframes pt-cover {
    to { transform: translateY(0); }
}

@keyframes pt-uncover {
    to { transform: translateY(-101%); }
}

@keyframes pt-logo-in {
    0% { transform: scale(0.55); opacity: 0; }
    40% { opacity: 1; }
    70% { transform: scale(1.07); }
    86% { transform: scale(0.99); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes pt-logo-out {
    to { transform: scale(1.22); opacity: 0; }
}

/* Bloquea el scroll mientras la transición cubre la pantalla */
html.pt-lock,
html.pt-lock body {
    overflow: hidden !important;
}

@media (prefers-reduced-motion: reduce) {
    .page-transition { display: none; }
}

/* =============================================
   PLANES DE INTERVENCIÓN (mejoras)
   ============================================= */
.plan-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.badge-navy {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--navy-blue), var(--navy-blue-light));
    color: #FFFFFF;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(22, 44, 82, 0.35);
    white-space: nowrap;
}

/* Ventajas exclusivas del plan presencial */
.plan-features li.feat-hot {
    color: var(--navy-blue);
    font-weight: 600;
}

.plan-features li.feat-hot::before {
    color: var(--orange);
}

.feat-tag {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--orange);
    background: rgba(252, 127, 1, 0.1);
    border: 1px solid rgba(252, 127, 1, 0.35);
    border-radius: 999px;
    padding: 1px 8px;
    margin-left: 6px;
    vertical-align: middle;
    white-space: nowrap;
}

/* =============================================
   CIERRE VISUAL DE LA PÁGINA DE SERVICIOS
   Banda con degradado navy?cian, textura de
   estudios y motivos flotantes.
   ============================================= */
.servicios-fin {
    position: relative;
    overflow: hidden;
    padding: 120px 0 130px;
    background: linear-gradient(135deg, #0d1f3c 0%, var(--navy-blue) 45%, #0f4c55 100%);
    text-align: center;
}

.servicios-fin::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--doodle-bg);
    background-size: 420px;
    opacity: 0.08;
}

.servicios-fin::after {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    width: 900px;
    height: 900px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(5, 177, 183, 0.22) 0%, rgba(5, 177, 183, 0) 65%);
    pointer-events: none;
}

.fin-content {
    position: relative;
    z-index: 2;
}

.fin-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 14px;
}

.servicios-fin h2 {
    color: #FFFFFF;
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.servicios-fin .fin-sub {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto 34px;
}

.fin-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.fin-btn-light {
    background: transparent;
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.75);
}

.fin-btn-light:hover {
    background: #FFFFFF;
    color: var(--navy-blue);
    border-color: #FFFFFF;
    box-shadow: 0 0 30px 5px rgba(255, 255, 255, 0.35);
}

/* Motivos flotantes decorativos */
.fin-deco {
    position: absolute;
    color: rgba(5, 177, 183, 0.35);
    animation: fin-float 7s ease-in-out infinite;
    pointer-events: none;
}

.fin-deco svg { display: block; }

.fin-deco-1 {
    top: 12%;
    left: 7%;
    animation-delay: 0s;
}

.fin-deco-2 {
    bottom: 14%;
    left: 16%;
    color: rgba(255, 255, 255, 0.18);
    animation-delay: 1.6s;
    animation-duration: 9s;
}

.fin-deco-3 {
    top: 18%;
    right: 9%;
    color: rgba(255, 255, 255, 0.2);
    animation-delay: 0.8s;
    animation-duration: 8s;
}

.fin-deco-4 {
    bottom: 12%;
    right: 15%;
    animation-delay: 2.4s;
    animation-duration: 10s;
}

@keyframes fin-float {
    0%, 100% { transform: translateY(0) rotate(-4deg); }
    50% { transform: translateY(-22px) rotate(5deg); }
}

@media (max-width: 768px) {
    .servicios-fin {
        padding: 90px 0 100px;
    }

    .servicios-fin h2 {
        font-size: 1.7rem;
    }

    .fin-deco {
        opacity: 0.55;
    }

    .fin-deco-2,
    .fin-deco-4 {
        display: none;
    }
}

/* Móvil: rampas de fundido de tono más cortas */
@media (max-width: 768px) {
    .methodology-section {
        padding: 125px 0 120px;
        background: linear-gradient(180deg,
            #FFFFFF 0px,
            #8797B2 80px,
            var(--navy-blue) 150px,
            var(--navy-blue) calc(100% - 150px),
            #8797B2 calc(100% - 80px),
            #F8F9FA 100%);
    }

    .plans-section {
        padding: 48px 0 110px;
        background: linear-gradient(180deg,
            var(--bg-light-gray) 0px,
            var(--bg-light-gray) calc(100% - 100px),
            #FFFFFF 100%);
    }

    body.no-page-hero .plans-section {
        padding: 100px 0 110px;
        background: linear-gradient(180deg,
            #FFFFFF 0px,
            var(--bg-light-gray) 90px,
            var(--bg-light-gray) calc(100% - 100px),
            #FFFFFF 100%);
    }

    .page-home .faq-section {
        padding: 120px 0 110px;
        background: linear-gradient(180deg,
            #FFFFFF 0px,
            var(--bg-light-gray) 100px,
            var(--bg-light-gray) calc(100% - 100px),
            #FFFFFF 100%);
    }

    .close-section {
        padding: 80px 0 120px;
        background: linear-gradient(180deg,
            #FFFFFF 0px,
            #FFFFFF calc(100% - 110px),
            var(--navy-blue) 100%);
    }
}
