/* ==========================================================================
   CSS MODULAR: SECCIONES INTERNAS (secciones.css)
   ========================================================================== */

/* --- SECCIÓN 1: HERO 50/50 EDITORIAL (Full Bleed / Fijado Completo) --- */
.hero-split-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--header-height) 5% 50px 5%;
    background-color: #E7E89D;
    overflow: hidden;
    z-index: 5;
}

/* MAGIA PARA EL EFECTO REVEAL */
.hero-split-section+section {
    margin-top: 100vh;
    margin-top: 100dvh;
}

/* Bloqueador general con índice z alto para tapar el fixed header al hacer scroll hacia abajo */
section:not(.hero-split-section) {
    position: relative;
    z-index: 20;
}

.hero-doodle-bg {
    display: block !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/ilustration/pattern.webp');
    background-size: 800px;
    background-position: center;
    background-repeat: repeat;
    background-attachment: fixed;
    opacity: 0.4;
    z-index: 0;
}

.hero-split-container {
    position: static;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
}

/* LADO IZQUIERDO: TEXTOS */
.hero-left-content {
    position: relative;
    z-index: 2;
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-text-card {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    max-width: 640px;
}

.hero-main-text {
    margin-bottom: 25px;
    line-height: 1.15;
}

.serif-part {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 3.8vw, 3.2rem);
    color: var(--primary-blue);
    font-weight: 500;
}

.arboria-part {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(4.2rem, 7vw, 6.5rem);
    color: var(--accent-orange);
    font-weight: 600;
    display: inline-block;
    position: relative;
    margin-top: 12px;
    padding-bottom: 20px;
}

.arboria-part::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 15' preserveAspectRatio='none'%3E%3Cpath d='M2,10 Q100,2 198,12' stroke='%23d8cce6' stroke-width='6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: -1;
}

.hero-sub-text {
    font-family: var(--font-base);
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    color: var(--primary-blue);
    margin-bottom: 35px;
    line-height: 1.6;
    font-weight: 500;
}

.hero-action-buttons {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.btn-dark-solid {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(20, 71, 115, 0.2);
}

.btn-dark-solid:hover {
    background-color: var(--secondary-purple);
    transform: translateY(-2px);
    color: var(--white);
}

.btn-text-underline {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    font-size: 0.95rem;
    padding-bottom: 8px;
}

.btn-text-underline::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 6px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M2,8 Q50,2 98,6' stroke='%23616dad' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    transition: all 0.3s ease;
}

.btn-text-underline:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M2,8 Q50,2 98,6' stroke='%239DBAD5' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* LADO DERECHO DESKTOP */
.hero-right-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 45vw;
    height: 100%;
    display: block;
    margin: 0;
    z-index: 1;
}

.hero-right-image::before,
.hero-right-image::after {
    display: none !important;
}

.blob-mask {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
    animation: none !important;
}

.blob-mask img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right bottom;
    display: block;
}

.hero-scroll-down {
    position: absolute;
    bottom: 25px;
    left: 25vw;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--secondary-purple);
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.6;
    z-index: 10;
}

.hero-scroll-down i {
    animation: bounceDown 2s infinite;
    font-size: 1.1rem;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}


/* --- SECCIÓN 2: BIO (SOBRE MÍ) --- */
.bio-section {
    background-color: #ffffff !important; /* Capa blanca sólida opaca para el inicio del scroll */
    margin-top: -50px;
    padding: 40px;
}

.bio-grid {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 40px;
}

.bio-text {
    flex: 1.2;
}

.bio-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.bio-text p {
    color: var(--text-gray);
    margin-bottom: 15px !important; 
    line-height: 1.6;
    font-size: 0.8rem; /* Ajustado para reducir el tamaño visual en 1 punto respecto a la base */
}

.bio-text>p,
.bio-more-content p {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(15px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.bio-text.active>p:nth-of-type(1) {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
    transition-delay: 0.3s;
}

.bio-text.active>p:nth-of-type(2) {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
    transition-delay: 0.5s;
}

/* Transición elástica de altura controlada */
.bio-more-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}

.bio-more-content.expanded p {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.bio-more-content.expanded p:nth-child(1) { transition-delay: 0.1s; }
.bio-more-content.expanded p:nth-child(2) { transition-delay: 0.2s; }
.bio-more-content.expanded p:nth-child(3) { transition-delay: 0.3s; }

.bio-image-wrapper {
    flex: 0.8;
    position: relative;
    perspective: 2000px;
}

.layer-bg {
    position: absolute;
    width: 110%;
    height: 110%;
    background: linear-gradient(135deg, var(--soft-pink), var(--secondary-purple));
    top: -5%;
    left: -5%;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    z-index: -1;
    opacity: 0.5;
    filter: blur(15px);
    animation: morphBlob 8s ease-in-out infinite alternate;
}

@keyframes morphBlob {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: scale(1); }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: scale(1.04) rotate(4deg); }
}

.bio-image-wrapper img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(20, 71, 115, 0.12);
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.bio-image-wrapper:hover img {
    box-shadow: 0 30px 60px rgba(20, 71, 115, 0.2);
    cursor: crosshair;
}

.bio-image-wrapper:active img {
    transform: scale(0.95) translateZ(0) !important;
    transition: transform 0.2s ease !important;
}

.bio-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn-text {
    background: none;
    border: none;
    color: var(--secondary-purple);
    font-family: var(--font-base);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
    padding: 0;
}

.btn-text:hover { color: var(--primary-blue); }


/* --- SECCIONES COMUNES: TARJETAS DE SERVICIOS (PRICING GRID) --- */
.pricing-section {
    /* CORRECCIÓN DE CONTRASTE: Alternancia a gris claro sutil (#f9fafb) para separar bloques y romper la sábana */
    background-color: #f9fafb !important; 
    padding: 90px 0;
    border-top: 1px solid rgba(20, 71, 115, 0.03);
    border-bottom: 1px solid rgba(20, 71, 115, 0.03);
}

.section-header {
    margin-bottom: 35px; /* Reducido para quitar aire */
}

.section-header.center {
    text-align: center;
}

.serif-title-section {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.6;
    max-width: 680px;
    margin: 0 auto;
}

.pricing-container {
    max-width: 1140px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; /* Reducido para quitar aire y compensar el padding interno menor */
    margin-bottom: 30px; /* Reducido para quitar aire */
    align-items: stretch;
}

.pricing-card {
    background: var(--white);
    border-radius: 24px;
    padding: 35px 25px 25px 25px; /* Reducido drásticamente para quitar aire superior e inferior */
    border: 1px solid rgba(20, 71, 115, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.01);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(20, 71, 115, 0.08);
    border-color: rgba(20, 71, 115, 0.12);
}

.pricing-card.highlighted {
    border: 2px solid var(--accent-orange);
    box-shadow: 0 15px 40px rgba(246, 138, 48, 0.12);
    transform: scale(1.02);
    z-index: 2;
}

.pricing-card.highlighted:hover {
    transform: scale(1.02) translateY(-8px);
    box-shadow: 0 25px 55px rgba(246, 138, 48, 0.2);
}

.badge-popular {
    position: absolute;
    top: -15px;
    left: calc(50% + 40px);
    background: var(--accent-orange);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(246, 138, 48, 0.25);
    z-index: 10;
    white-space: nowrap;
}

.card-icon {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 8px 20px rgba(20, 71, 115, 0.1);
    z-index: 5;
    background: var(--white);
}

.pricing-card:nth-child(1) .card-icon {
    background: #f1f3f9;
    color: var(--secondary-purple);
}

.pricing-card.highlighted .card-icon {
    background: #fdf2e9;
    color: var(--accent-orange);
}

.pricing-card:nth-child(3) .card-icon {
    background: var(--green-soft);
    color: #5f8d4e;
}

.pricing-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    color: var(--primary-blue);
    text-align: center;
    margin-top: 0; /* Colapsado para subir texto */
    margin-bottom: 6px; /* Colapsado drásticamente */
    line-height: 1.25;
}

.pricing-card .card-desc {
    font-size: 0.92rem;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 12px; /* Colapsado drásticamente */
    line-height: 1.4;
}

.card-features {
    list-style: none !important;
    margin-bottom: 15px !important; /* Colapsado drásticamente */
    border-top: 1px solid rgba(20, 71, 115, 0.05);
    padding-top: 12px; /* Colapsado drásticamente */
    width: 100%;
}

.card-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 4px; /* Colapsado drásticamente para agrupar los puntos */
    line-height: 1.2;
    width: 100%;
    list-style-type: none !important;
}

.card-features li i {
    color: var(--secondary-purple);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.pricing-card.highlighted .card-features li i {
    color: var(--accent-orange);
}

.btn-outline-purple {
    display: block;
    text-align: center;
    padding: 12px;
    border: 1px solid var(--secondary-purple);
    color: var(--secondary-purple);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    width: 100%;
}

.btn-outline-purple:hover { background: var(--secondary-purple); color: var(--white); }

.btn-outline-orange {
    display: block;
    text-align: center;
    padding: 12px;
    border: 1px solid var(--accent-orange);
    color: var(--accent-orange);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    width: 100%;
}

.btn-outline-orange:hover { background: var(--accent-orange); color: var(--white); }

.btn-outline-green {
    display: block;
    text-align: center;
    padding: 12px;
    border: 1px solid #5f8d4e;
    color: #5f8d4e;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    width: 100%;
}

.btn-outline-green:hover { background: #5f8d4e; color: var(--white); }

.support-banner {
    background: #F6F3E6;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    color: var(--primary-blue);
    font-weight: 500;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.support-banner i { color: var(--accent-orange); font-size: 1.2rem; }

.highlight-line {
    position: relative;
    display: inline-block;
    color: var(--secondary-purple);
}

.highlight-line::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-orange);
    border-radius: 2px;
}


/* --- SECCIÓN 5: TALLERES --- */
.taller-section {
    background-color: #ffffff !important; /* Alternancia de vuelta a blanco para mantener ritmo visual limpio */
    padding: 90px 0;
}

.talleres-container {
    max-width: 800px;
    margin: 0 auto;
    perspective: 1500px;
}

.flip-card {
    background-color: transparent;
    width: 100%;
    height: 450px;
    outline: none;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(20, 71, 115, 0.12);
}

.flip-card:hover .flip-card-inner,
.flip-card:focus .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px;
}

.flip-card-front {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(20, 71, 115, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.talleres-container.active .flip-card-front h2 {
    opacity: 0;
    animation: slideFadeDown 0.8s ease-out forwards;
}

.talleres-container.active .flip-card-front p {
    opacity: 0;
    animation: slideFadeDown 0.8s ease-out 0.2s forwards;
}

.flip-icon {
    font-size: 3.5rem;
    color: var(--secondary-purple);
    margin-bottom: 25px;
}

.flip-card-front h2 {
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    line-height: 1.2;
}

.flip-card-front p {
    font-size: 1.15rem;
    color: var(--text-gray);
    line-height: 1.6;
    max-width: 600px;
}

.flip-hint {
    margin-top: auto;
    padding-top: 20px;
    font-size: 0.9rem;
    color: var(--accent-orange);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: bounceHint 2s infinite;
}

@keyframes bounceHint {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

.flip-card-back {
    background: var(--primary-blue);
    color: var(--white);
    transform: rotateY(180deg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.flip-card-back .manifesto-text,
.flip-card-back .btn-flip-cta {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.flip-card:hover .flip-card-back .manifesto-text {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.flip-card:hover .flip-card-back .btn-flip-cta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.45s;
}

.quote-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: 20px;
}

.manifesto-text {
    font-size: 1.6rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 40px;
    max-width: 650px;
}

.btn-flip-cta {
    background: var(--accent-orange);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(246, 138, 48, 0.3);
    transition: all 0.3s ease;
}

.btn-flip-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(246, 138, 48, 0.5);
    color: var(--white);
}


/* --- SECCIÓN 6: CONVERSEMOS (FORMULARIO) --- */
.contacto-section {
    /* Mantiene intacto su color ad-hoc original crema, bloqueando perfectamente al fixed header trasero */
    background-color: var(--bg-light) !important; 
    padding: 100px 10%;
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
    perspective: 1000px;
}

.contact-glass-panel {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 20px 40px rgba(20, 71, 115, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    line-height: 1.3;
}

.contact-info p { color: var(--text-gray); font-size: 1.05rem; line-height: 1.6; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.floating-group { position: relative; width: 100%; }

.floating-input {
    width: 100%;
    padding: 18px 20px;
    font-family: var(--font-base);
    font-size: 1rem;
    color: var(--primary-blue);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(20, 71, 115, 0.1);
    border-radius: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.floating-input:focus {
    border-color: var(--secondary-purple);
    box-shadow: 0 0 0 4px rgba(97, 109, 173, 0.1);
}

.floating-label {
    position: absolute;
    left: 20px;
    top: 18px;
    color: var(--text-gray);
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.floating-input:focus~.floating-label,
.floating-input:not(:placeholder-shown)~.floating-label {
    top: -10px;
    left: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary-purple);
    background: var(--white);
    padding: 0 8px;
    border-radius: 5px;
}

textarea.floating-input { resize: none; }
.whatsapp-float { display: none !important; }

/* --- POP-UP MODAL EN SERIE --- */
.program-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(20, 71, 115, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
}

.program-modal-overlay.active { opacity: 1; visibility: visible; }

.program-modal-panel {
    background: var(--white);
    width: 100%;
    max-width: 620px;
    border-radius: 28px;
    padding: 40px;
    position: relative;
    box-shadow: 0 25px 60px rgba(20, 71, 115, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transform: scale(0.92) translateY(10px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.program-modal-overlay.active .program-modal-panel { transform: scale(1) translateY(0); }

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: var(--secondary-purple);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s, transform 0.2s;
}

.modal-close-btn:hover { color: var(--accent-orange); transform: scale(1.1); }
.modal-content-scroll { max-height: 80vh; overflow-y: auto; padding-right: 5px; }
.modal-content-scroll::-webkit-scrollbar { width: 6px; }
.modal-content-scroll::-webkit-scrollbar-track { background: transparent; }
.modal-content-scroll::-webkit-scrollbar-thumb { background: rgba(97, 109, 173, 0.2); border-radius: 10px; }

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    line-height: 1.2;
    padding-right: 30px;
}

.modal-desc { font-size: 0.98rem; color: var(--text-gray); line-height: 1.6; margin-bottom: 20px; }
.modal-divider { height: 1px; background: rgba(20, 71, 115, 0.08); margin: 20px 0; }
.modal-list-title { font-size: 1.05rem; font-weight: 600; color: var(--primary-blue); margin-bottom: 15px; }
.modal-features-list { list-style: none !important; padding: 0; margin: 0 0 30px 0; }

.modal-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.92rem;
    color: var(--text-gray);
    margin-bottom: 14px;
    line-height: 1.5;
}

.modal-features-list li i { color: var(--accent-orange); font-size: 0.9rem; margin-top: 4px; flex-shrink: 0; }
.modal-action-wrapper { display: flex; justify-content: center; width: 100%; }
.modal-action-wrapper .btn-primary { width: 100%; text-align: center; }

/* ==========================================================================
   MEDIA QUERIES: RESPONSIVE INTERNO DE SECCIONES
   ========================================================================== */
@media (max-width: 992px) {
    .pricing-grid { grid-template-columns: 1fr; gap: 45px; }
    .pricing-card.highlighted { transform: scale(1); }
    .pricing-card.highlighted:hover { transform: translateY(-5px); }
    .badge-popular { left: calc(50% + 35px); top: -15px; }
    .hero-split-container { flex-direction: column; text-align: center; }
    .hero-left-content { align-items: center; flex: 0 0 100%; }
    .hero-text-card { padding: 0; }
    .hero-action-buttons { justify-content: center; }
    .hero-sub-text { max-width: 100%; text-align: center; }
    .hero-right-image {
        position: relative;
        width: 100vw;
        height: 50vh;
        margin-right: calc(50% - 50vw);
        margin-left: calc(50% - 50vw);
        margin-top: 40px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* CORRECCIÓN HERO DISPOSITIVOS MÓVILES */
    .hero-split-section { 
        padding: 130px 6% 0px 6% !important; 
        position: relative; 
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .hero-split-section+section { margin-top: 0; }
    .serif-part { font-size: 2.1rem; text-align: center; display: block; }
    .arboria-part { font-size: 3.4rem; padding-bottom: 10px; }
    
    .hero-left-content {
        position: relative;
        z-index: 10;
        width: 100%;
        background: linear-gradient(to bottom, #E7E89D 80%, rgba(231, 232, 157, 0) 100%);
        padding-bottom: 20px;
    }
    
    .hero-right-image {
        position: relative;
        width: 100vw;
        height: 38vh;
        margin-right: calc(50% - 50vw);
        margin-left: calc(50% - 50vw);
        margin-top: -15px;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        z-index: 1;
    }
    
    .blob-mask img {
        object-position: right bottom !important; 
        transform: scale(1.3);
        transform-origin: right bottom;
    }

    /* COMPORTAMIENTO MÓVIL DE LA BIO CON FONDO BLANCO ENCAPSULADO */
    .bio-grid { flex-direction: column; text-align: center; gap: 40px; }
    .bio-actions { justify-content: center; }
    .flip-card { height: 480px; }
    .flip-card-front, .flip-card-back { padding: 30px 20px; }
    .flip-card-front h2 { font-size: 1.8rem; }
    .manifesto-text { font-size: 1.25rem; }
    .contact-glass-panel { grid-template-columns: 1fr; padding: 35px 20px; gap: 30px; }
}

@media (max-width: 576px) {
    .section-subtitle { font-size: 0.95rem !important; }
    .program-modal-panel { padding: 30px 20px 25px 20px; border-radius: 24px; }
    .modal-title { font-size: 1.6rem; }
    .modal-desc { font-size: 0.92rem; }
}