/* =========================================================================
   VARIABLES GLOBALES
   ========================================================================= */
:root {
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #ffffff;
    --color-primary: #D4EFDF;
    --color-primary-text: #137333;
    --color-secondary: #ffffff;
    --color-secondary-text: #2B3D4F;
    --color-blue-bg: #B0C4DE;
    --color-blue-text: #2B3D4F;
    --color-border: #D3D1C7;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --max-width: 1200px;
    --padding-x: 40px;
    --radius-card: 12px;
}

/* =========================================================================
   RESET Y BASE
   ========================================================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
}

/* Clase utilitaria para accesibilidad: oculta visualmente pero accesible para lectores de pantalla */
.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;
}

/* =========================================================================
   TIPOGRAFÍA GLOBAL
   ========================================================================= */
h1, h2, h3, h4 {
    color: #000000;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 600;
}
h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

p {
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 15px;
}
p:last-child {
    margin-bottom: 0;
}

/* =========================================================================
   CABECERA
   ========================================================================= */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px var(--padding-x);
    border-bottom: 1px solid #eeeeee;
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 100;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-menu {
    margin-left: auto;
}

.header-logo img {
    height: 70px;
    width: auto;
    display: block;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-text-light);
    font-weight: 600;
    margin-right: 20px;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--color-blue-text);
}

/* =========================================================================
   BOTONES
   ========================================================================= */
.btn {
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    opacity: 0.85;
}

.btn-outline {
    background-color: var(--color-blue-bg);
    color: var(--color-blue-text);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-primary-text);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-secondary-text);
    border: 2px solid var(--color-secondary-text);
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px var(--padding-x);
    max-width: var(--max-width);
    margin: 0 auto;
    gap: 40px;
}

.hero-text { flex: 1; }

.hero-text p {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    border-radius: 20px;
    max-width: 100%;
    height: auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* =========================================================================
   SECCIÓN TAGS
   ========================================================================= */
.tags-section {
    text-align: center;
    padding: 40px var(--padding-x);
    background-color: #eef2f7;
}

.tags-section > * {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.tags-section p {
    font-size: 18px;
    margin-bottom: 30px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.tag {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text-light);
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.tag:hover {
    border-color: var(--color-primary-text);
    color: var(--color-primary-text);
}

.tag.active {
    background-color: var(--color-primary);
    border: none;
    color: var(--color-primary-text);
    font-weight: 500;
}

/* Caja de respuesta de Borja */
.tag-response {
    display: none;
    align-items: flex-start;
    gap: 14px;
    margin-top: 32px;
    padding: 20px 24px;
    background-color: var(--color-primary);
    border: none;
    border-radius: var(--radius-card);
    text-align: left;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

.tag-response.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.tag-response-avatar {
    width: 38px;
    height: 38px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 2px;
}

.tag-response p {
    font-size: 16px;
    color: var(--color-text);
    margin: 0;
    line-height: 1.65;
}

/* CTA que aparece al seleccionar 2+ tags */

/* =========================================================================
   CTA SIGUIENTE
   ========================================================================= */
.next-step-cta {
    margin-top: 32px;
    text-align: center;
}

.scroll-down-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--color-text);
    font-size: 18px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.scroll-down-link svg {
    margin-top: 0;
    color: #2c5e3b;
    width: 44px;
    height: 44px;
    transition: transform 0.3s ease;
}

.scroll-down-link:hover {
    color: var(--color-primary-text);
}

.scroll-down-link:hover svg {
    transform: translateY(5px);
}

@keyframes nudgeDown {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(5px); }
    100% { transform: translateY(0); }
}

.scroll-down-link.animate-cta {
    animation: nudgeDown 0.4s ease;
}

/* =========================================================================
   SECCIÓN PROCESO (ENHORABUENA)
   ========================================================================= */
.section-wrap {
    padding: 32px 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.section-wrap h3 {
    margin-bottom: 10px;
    color: var(--color-text-light);
}

.section-wrap .block-label {
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 10px;
}

.section-wrap h1 {
    margin-bottom: 0;
}

.middle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 24px auto;
    max-width: 460px;
}

.middle-text {
    font-size: 22px;
    font-weight: 600;
    color: #000000;
    line-height: 1.5;
    margin: 0;
}

.middle-sub {
    font-size: 18px;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.6;
}

.divider {
    width: 1px;
    height: 32px;
    background: var(--color-border);
    margin: 0 auto;   /* sin margen: el punto los une sin separación */
}

/* Espacio exterior: encima del primer divider y debajo del último */
.section-wrap h1 + .divider        { margin-top: 24px; }
.middle + .divider                  { margin-top: 0; }
.divider + .step-row               { margin-top: 24px; }

.divider-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-border);
    margin: 0 auto;
}

.step-row {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
}

.step {
    flex: 1;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: #ffffff;
    transition: border-color 0.2s;
}

.step:hover {
    border-color: var(--color-primary-text);
}

.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    flex-shrink: 0;
    background-color: var(--color-primary);
    color: var(--color-primary-text);
}

.step h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.step p {
    font-size: 16px;
}

.connector {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    flex-shrink: 0;
    color: #B4B2A9;
    font-size: 24px;
}

/* =========================================================================
   SECCIÓN CONTACTO
   ========================================================================= */
.contact-section {
    padding: 60px 0;
    background-color: #fcfcfc;
}

.contact-container {
    display: flex;
    max-width: var(--max-width);
    width: 100%;
    padding: 0 var(--padding-x);
    margin: 0 auto;
    gap: 60px;
    align-items: stretch;
}

.contact-image {
    flex: 0 0 38%;
    overflow: hidden;
    border-radius: 8px;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    display: block;
}

.contact-form-container {
    flex: 1;
    text-align: left;
}

.bio-text {
    margin-bottom: 40px;
}

.bio-text p {
    color: var(--color-text);
}

.bio-text a {
    color: var(--color-primary-text);
    text-decoration: underline;
    font-weight: bold;
}

.contact-form-container h2 {
    margin-bottom: 25px;
}

/* Formulario */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 15px;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary-text);
}

.btn-submit {
    align-self: flex-start;
    padding: 15px 30px;
}

/* =========================================================================
   TESTIMONIOS
   ========================================================================= */
.testimonials-section {
    padding: 80px var(--padding-x);
    text-align: center;
    max-width: var(--max-width);
    margin: 0 auto;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.testimonials-section h2 {
    margin-bottom: 40px;
}

.testimonials-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.testimonial-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-align: left;
    max-width: 400px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border: 1.5px solid #cccccc;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbbbbb;
}

.testimonial-avatar svg {
    width: 24px;
    height: 24px;
}

.testimonial-content h4 {
    margin-bottom: 5px;
}

.testimonial-content p {
    font-size: 18px;
}

.testimonial-toggle-link {
    font-size: 18px;
    color: var(--color-primary-text);
    text-decoration: underline;
}

/* =========================================================================
   SLIDER DE TESTIMONIOS
   ========================================================================= */
.testimonials-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.testimonials-viewport {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.testimonials-track {
    display: flex;
    transition: transform 0.4s ease;
    will-change: transform;
}

.testimonials-slide {
    flex: 0 0 100%;
    display: flex;
    gap: 30px;
    min-width: 0;
}

.testimonials-slide .testimonial-card {
    flex: 1;
    max-width: none;
}

.testimonials-nav {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    transition: color 0.2s;
    padding: 0;
}

.testimonials-nav svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.testimonials-nav:hover {
    color: var(--color-primary-text);
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.testimonials-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: var(--color-border);
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s;
}

.testimonials-dot--active {
    background: var(--color-primary);
    transform: scale(1.3);
}

/* =========================================================================
   PREGUNTAS FRECUENTES (FAQ)
   ========================================================================= */
.faq-section {
    padding: 60px var(--padding-x);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.faq-section h2 {
    margin-bottom: 40px;
}

.contact-section h2 {
    font-size: 20px;
}

.faq-container {
    text-align: left;
}

.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.faq-item summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    font-size: 18px;
    color: var(--color-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-item p {
    margin-top: 10px;
}

.faq-body {
    padding-top: 4px;
}

.faq-body p,
.faq-body ul,
.faq-body ol {
    margin-top: 12px;
    line-height: 1.7;
    color: var(--color-text);
    font-size: 16px;
}

.faq-body ul,
.faq-body ol {
    padding-left: 20px;
}

.faq-body ul li,
.faq-body ol li {
    margin-bottom: 6px;
}

.faq-body a {
    color: var(--color-primary-text);
    text-decoration: underline;
    font-weight: bold;
}

.page-exec .faq-body a {
    color: var(--color-blue-text);
}

.faq-cta {
    margin-top: 16px !important;
    font-style: italic;
    color: #555;
}

/* =========================================================================
   EN CONSTRUCCIÓN
   ========================================================================= */
.coming-soon-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px var(--padding-x);
    gap: 20px;
}

.coming-soon-section h1 {
    font-size: 32px;
}

.coming-soon-section p {
    font-size: 18px;
    color: var(--color-text-light);
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
    background-color: var(--color-primary);
    padding: 40px var(--padding-x);
    text-align: center;
}

.footer-title {
    margin: 0 0 20px;
    font-size: 14px;
    font-weight: bold;
    color: var(--color-text);
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-nav a {
    text-decoration: none;
    color: var(--color-text-light);
    font-size: 14px;
}

.footer-contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 14px;
}

.footer-contact-info a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.footer-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 24px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.15);
}

.footer-legal-logo img {
    height: 49px;
    width: auto;
    display: block;
}

.footer-legal-links {
    display: flex;
    gap: 20px;
}

.footer-legal-links a {
    text-decoration: none;
    color: var(--color-text-light);
    font-size: 14px;
}

/* =========================================================================
   PÁGINA QUIÉN SOY
   ========================================================================= */
.about-hero {
    max-width: var(--max-width);
    margin: 20px auto 60px;
    padding: 0 var(--padding-x);
}

.about-hero img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    object-position: center 30%;
    border-radius: var(--radius-card);
}

.about-hero img.about-hero-img--top {
    object-position: center top;
}

.about-layout {
    display: flex;
    max-width: var(--max-width);
    margin: 0 auto 80px;
    padding: 0 var(--padding-x);
    gap: 80px;
    align-items: flex-start;
}

/* Sidebar — sticky respecto al scroll del artículo */
.about-sidebar {
    flex: 0 0 300px;
    position: sticky;
    top: 40px;
    /* Evitar que se salga del viewport en pantallas cortas */
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
}

.about-sidebar::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.sidebar-sticky-wrapper {
    position: static;
}

.sidebar-form-wrap {
    position: static;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-menu a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s;
}

.sidebar-menu a:hover,
.sidebar-menu a.sidebar-active {
    color: var(--color-primary-text);
}

.sidebar-cta-btn {
    margin-top: 10px;
}

.sidebar-divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 30px 0;
}

.sidebar-form-wrap h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.sidebar-submit-btn {
    width: 100%;
}

/* Contenido biográfico */
.about-content {
    flex: 1;
}

.about-content h1 {
    font-size: 42px;
    margin-bottom: 40px;
}

.about-content h3 {
    margin-top: 40px;
    margin-bottom: 15px;
}

.about-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: 15px;
}

.about-content a {
    color: var(--color-primary-text);
    text-decoration: underline;
    font-weight: bold;
}

.about-list {
    margin: 20px 0 30px;
    padding-left: 20px;
    color: var(--color-text-light);
}

.about-list li {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 16px;
}

/* =========================================================================
   CTA BLOCK (about-content)
   ========================================================================= */
.about-cta-block {
    background: #eef2f7;
    border-radius: var(--radius-card);
    padding: 36px 40px;
    margin-top: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.about-cta-block-text p {
    margin-bottom: 0;
}

.about-cta-block-text p:first-child {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin-bottom: 6px;
}

.about-cta-block-text p:last-child {
    font-size: 15px;
    color: var(--color-text-light);
}

.about-cta-block .btn-primary {
    white-space: nowrap;
    flex-shrink: 0;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 900px) {
    :root {
        --padding-x: 20px;
    }

    /* Cabecera móvil */
    .header {
        display: flex;
        align-items: center;
        position: relative;
    }

    .header::after {
        content: '';
        display: block;
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        order: 3;
    }

    .header .hamburger-btn {
        display: flex;
        flex-shrink: 0;
        order: 1;
    }

    .header-logo {
        flex: 1;
        position: static;
        transform: none;
        justify-content: center;
        order: 2;
    }

    .header-logo img {
        height: 48px;
    }

    .nav-menu {
        display: none;
    }

    .header > a.btn-outline,
    .header > a.btn-primary {
        display: none;
    }

    /* Hero */
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 30px var(--padding-x);
    }

    .hero-buttons {
        justify-content: center;
    }

    /* Pasos */
    .step-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .step {
        max-width: 100%;
        width: 100%;
    }

    .connector {
        display: none;
    }

    /* Contacto */
    .contact-container {
        flex-direction: column;
        gap: 40px;
    }

    .contact-image {
        width: 100%;
        flex: none;
    }

    .btn-submit {
        width: 100%;
    }

    /* Tags response */
    .tag-response {
        padding: 16px 18px;
    }


    /* Footer */
    .footer-nav {
        flex-direction: column;
    }

    .footer-contact-info {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    /* Páginas internas (sidebar) */
    .about-layout {
        flex-direction: column;
        gap: 40px;
    }

    .about-sidebar {
        width: 100%;
        flex: auto;
        order: 2;
        position: static;
        max-height: none;
        overflow-y: visible;
    }

    .about-content {
        order: 1;
    }

    .sidebar-sticky-wrapper {
        display: none;
    }

    .about-hero {
        margin-bottom: 40px;
    }

    .about-cta-block {
        flex-direction: column;
        text-align: center;
    }

    /* Modales */
    .modal-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    h1 { font-size: 28px; }
    h2 { font-size: 22px; }
    h3 { font-size: 18px; }

    .about-content h1 {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .hero-image img {
        max-height: 280px;
        object-fit: cover;
        width: 100%;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-box {
        padding: 24px 20px;
    }

    .faq-section {
        padding: 40px var(--padding-x);
    }

    .testimonials-section {
        padding: 60px var(--padding-x);
    }

    .testimonials-slide {
        flex-direction: column;
    }

    .testimonials-slider-wrapper {
        align-items: flex-start;
    }

    .contact-section {
        padding: 40px 0;
    }
}

/* =========================================================================
   HAMBURGER Y MENÚ MÓVIL
   ========================================================================= */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.hamburger-btn:hover {
    background-color: var(--color-primary);
}

.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-btn[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger-btn[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger-btn[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    top: var(--header-height, 80px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    z-index: 99;
    padding: 16px var(--padding-x) 28px;
    max-height: calc(100vh - var(--header-height, 80px));
    overflow-y: auto;
}

.mobile-nav[hidden] {
    display: none;
}

.mobile-nav nav {
    display: flex;
    flex-direction: column;
}

.mobile-nav nav a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 16px;
    font-weight: 500;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    display: block;
    transition: color 0.2s;
}

.mobile-nav nav a:hover,
.mobile-nav nav a[aria-current="page"] {
    color: var(--color-primary-text);
}

.mobile-nav-cta {
    margin-top: 16px;
    border-bottom: none !important;
    display: inline-block !important;
    padding: 10px 24px !important;
}

/* =========================================================================
   ENLACE DE CONTENIDO (ej: "Cómo funciona? >>")
   ========================================================================= */
.content-link {
    color: var(--color-primary-text);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.content-link:hover {
    opacity: 0.75;
}

/* =========================================================================
   MODAL
   ========================================================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

/* hidden attribute overrides display */
.modal-overlay[hidden] {
    display: none;
}

.modal-box {
    background: #ffffff;
    border-radius: var(--radius-card);
    padding: 36px 32px;
    max-width: 360px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    text-align: center;
    animation: modalIn 0.2s ease;
}

/* Variante más ancha para que los dos botones quepan en fila */
.modal-box--wide {
    max-width: 560px;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.modal-pregunta {
    font-size: 18px;
    color: var(--color-text);
    font-weight: 600;
    margin: 0;
}

.modal-actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: center;
    flex-wrap: nowrap;
}

/* Confirmación */
.modal-confirmacion {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

.modal-check {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-check svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary-text);
}

.modal-confirmacion p {
    font-size: 16px;
    color: var(--color-text);
    margin: 0;
}

.modal-cerrar {
    align-self: center;
}

/* =========================================================================
   VALIDACIÓN DE FORMULARIO
   ========================================================================= */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Campo con error */
.contact-form input.input-error,
.contact-form textarea.input-error {
    border-color: #c0392b;
    background-color: #fff8f8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

/* Mensaje de error */
.field-error {
    font-size: 13px;
    color: #c0392b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.field-error::before {
    content: '⚠';
    font-size: 12px;
    flex-shrink: 0;
}

/* hidden attribute */
.field-error[hidden] {
    display: none;
}

/* Botón deshabilitado durante verificación MX */
#btn-abrir-modal:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =========================================================================
   COACHING EJECUTIVO — CERTIFICACIONES EN HERO
   ========================================================================= */
.hero-certifications {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.hero-cert-badges {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.hero-cert-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-primary-text);
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--color-primary-text);
    text-align: center;
    line-height: 1.2;
    text-decoration: none;
}

.hero-cert-text {
    font-size: 13px !important;
    color: var(--color-text-light);
    margin: 0 !important;
    line-height: 1.5;
    max-width: 375px;
}

/* =========================================================================
   COACHING EJECUTIVO — SECCIÓN DE SERVICIOS
   ========================================================================= */
.exec-services-section {
    padding: 60px var(--padding-x);
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.exec-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
    text-align: left;
}

.exec-service-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.exec-service-img-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #E8E8E4;
    border-radius: var(--radius-card);
}

.exec-service-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-card);
    display: block;
}

.exec-service-card h3 {
    margin-bottom: 5px;
    margin-top: 10px;
    text-align: center;
}

.exec-service-card > p {
    font-size: 16px;
    flex: 1;
}

/* =========================================================================
   FOOTER — ETIQUETA DE SECCIÓN
   ========================================================================= */
.footer-section-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 16px !important;
}

@media (max-width: 900px) {
    .exec-services-section {
        padding: 30px var(--padding-x);
    }

    .exec-services-grid {
        grid-template-columns: 1fr;
    }

    .hero-certifications {
        flex-direction: column;
        align-items: center;
    }

    .hero-cert-text {
        max-width: 100%;
        text-align: center;
    }
}

/* =========================================================================
   COACHING EJECUTIVO — OVERRIDES DE COLOR (#B0C4DE)
   ========================================================================= */
.page-exec {
    --color-primary: var(--color-blue-bg);
    --color-primary-text: var(--color-blue-text);
}

.page-exec .footer {
    background-color: var(--color-blue-bg);
}

.page-exec .testimonials-dot--active {
    background: var(--color-blue-bg);
}

.page-exec .bio-text a,
.page-exec .about-content a {
    color: var(--color-blue-text);
}

.page-exec .sidebar-menu a:hover,
.page-exec .sidebar-menu a.sidebar-active {
    color: var(--color-blue-text);
}/* =========================================================================
   BELIEFS CARDS (sobre_mi)
   ========================================================================= */
.beliefs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0 32px;
}
.belief-card {
    background: #eef2f7;
    border-left: 3px solid var(--color-primary-text);
    padding: 16px 20px;
    border-radius: 0 var(--radius-card) var(--radius-card) 0;
}
.belief-card p {
    font-size: 15px;
    color: var(--color-text);
    font-style: italic;
    margin-bottom: 0;
}

/* =========================================================================
   TIMELINE VERTICAL EL VIAJE (sobre_mi)
   ========================================================================= */
.journey-timeline {
    position: relative;
    margin: 32px 0;
    padding-left: 32px;
}
.journey-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--color-border);
}
.journey-day {
    position: relative;
    margin-bottom: 40px;
}
.journey-day:last-child {
    margin-bottom: 0;
}
.journey-day::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-primary-text);
    border: 2px solid var(--color-bg);
    box-shadow: 0 0 0 2px var(--color-primary-text);
}
.journey-day-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary-text);
    margin-bottom: 4px;
}
.journey-day h4 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--color-text);
}
.journey-day p {
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 12px;
}
.journey-day p:last-child {
    margin-bottom: 0;
}
.journey-questions {
    font-style: italic;
    font-size: 15px !important;
    color: var(--color-text-light);
    padding-left: 16px;
    border-left: 2px solid var(--color-border);
    margin: 12px 0 !important;
}

/* =========================================================================
   PROPÓSITO DESTACADO (sobre_mi)
   ========================================================================= */
.proposito-block {
    background: #eef2f7;
    border-radius: var(--radius-card);
    padding: 40px;
    text-align: center;
    margin: 40px 0;
}
.proposito-block p.proposito-quote {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
    line-height: 1.4;
}
.proposito-block p.proposito-sub {
    font-size: 16px;
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* =========================================================================
   PACTO DOS COLUMNAS (sobre_el_coaching)
   ========================================================================= */
.pacto-section {
    margin: 40px 0;
}
.pacto-intro {
    margin-bottom: 24px !important;
}
.pacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.pacto-col {
    background: #eef2f7;
    border-radius: var(--radius-card);
    padding: 28px 24px;
}
.pacto-col-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-primary-text);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px !important;
}
.pacto-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pacto-col ul li {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.6;
    padding: 10px 0 10px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    position: relative;
}
.pacto-col ul li:last-child {
    border-bottom: none;
}
.pacto-col ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-primary-text);
    font-size: 13px;
}

/* =========================================================================
   FASES TU PROCESO (tu_proceso)
   ========================================================================= */
.proceso-diagram {
    width: 100%;
    margin: 32px 0 40px;
    overflow: visible;
}
.proceso-fase {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--color-border);
}
.proceso-fase:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.proceso-fase-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary-text);
    margin-bottom: 8px !important;
}
.proceso-fase h3 {
    margin-top: 0;
    margin-bottom: 16px;
}

/* =========================================================================
   ROL DEL COACH (tu_proceso)
   ========================================================================= */
.rol-block {
    background: #eef2f7;
    border-radius: var(--radius-card);
    padding: 28px 32px;
    margin: 40px 0;
}
.rol-block h3 {
    margin-top: 0;
}

/* =========================================================================
   SVG DIAGRAMA PROCESO (tu_proceso)
   ========================================================================= */
.svg-fase-rect {
    fill: #eef2f7;
    stroke: var(--color-primary-text);
    stroke-width: 0.5;
}
.svg-fase-label {
    fill: var(--color-primary-text);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
}
.svg-fase-title {
    fill: var(--color-text);
    font-size: 14px;
    font-weight: 600;
}
.svg-fase-sub {
    fill: var(--color-text-light);
    font-size: 12px;
}
.svg-arrow {
    stroke: var(--color-primary-text);
    stroke-width: 1;
}
.svg-meta-text {
    fill: var(--color-text-light);
    font-size: 12px;
}
.svg-meta-line {
    stroke: var(--color-border);
    stroke-width: 0.5;
    stroke-dasharray: 4 3;
}
.svg-meta-tick {
    stroke: var(--color-border);
    stroke-width: 0.5;
}

/* =========================================================================
   RESPONSIVE NUEVOS COMPONENTES
   ========================================================================= */
@media (max-width: 900px) {
    .beliefs-grid {
        grid-template-columns: 1fr;
    }
    .pacto-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   FAQ DENTRO DE ABOUT-CONTENT (sobre_el_coaching)
   ========================================================================= */
.about-faq-section {
    padding: 0;
    max-width: 100%;
    margin: 40px 0 0;
    text-align: left;
}
.about-faq-section h3 {
    margin-bottom: 40px;
}