/* ===== TOKENS LOCALES ===== */
.limite-ancho {
    max-width: var(--ancho-maximo);
    margin: 0 auto;
    padding-inline: clamp(1rem, 3vw, 2rem);
}

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    margin: -1px;
    padding: 0;
}

/* ===== HERO CONSULTA ===== */
.hero-consulta {
    margin: var(--espacio-3) 0 var(--espacio-4);
    position: relative;
    isolation: isolate;
    min-height: clamp(360px, 38vw, 520px);
    overflow: hidden;
    border-radius: var(--radio-borde);
    box-shadow: var(--sombra);
    
}

.hero-consulta .hero-imagen {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-consulta .hero-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    filter: blur(6px) brightness(.55);
    transform: scale(1.06);
}

.hero-consulta::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(24, 49, 38, .26), rgba(24, 49, 38, .46));
}

.hero-consulta .hero-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
}

.hero-texto {
    position: relative;
    height: 100%;
    display: block;
    padding: clamp(1rem, 3vw, 1.25rem) 0;
    box-sizing: border-box;
}

/* Título arriba, en flujo normal */
.hero-titulo {
    text-align: center;
    margin: 0 0 .75rem 0;
    font-family: var(--fuente-titulos);
    font-weight: 600;
    font-size: clamp(1.8rem, 3.8vw, 2.6rem);
    line-height: 1.3;

    /* legibilidad sobre imagen */
    background: #fffcf7;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .27);
}

/* Intro centrada absolutamente en el centro geométrico del hero */
.hero-intro {
    position: relative;
    margin-top: 4rem;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: min(60ch, calc(100% - 2rem));
    text-align: center;
    margin-top: 10rem;
    font-family: var(--fuente-base);
    font-size: clamp(1rem, 2.1vw, 1.125rem);
    line-height: 1.7;

    background: #fffcf7;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}

/* Ajustes responsive hero */
@media (min-width:1024px) {
    .hero-consulta {
        min-height: 420px;
    }

}

@media (max-width: 780px) {
    .hero-intro {
        top: 52%;
        margin-top: 10rem;
    }

    /* despega un pelín del título en móvil */
}

/* ===== TARJETAS TERAPIA ===== */
.contenedor-terapias {
    padding-bottom: var(--espacio-4);
}

.terapias-grid {
    display: grid;
    gap: var(--espacio-3);
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
    background: #fff;
    border: 1px solid rgba(24, 49, 38, .08);
    border-radius: var(--radio-borde);
    box-shadow: var(--sombra);
    padding: var(--espacio-3);
    transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
    transform: translateY(-2px);
}

.titulo-terapia {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0 0 .6rem 0;
    color: var(--color-principal);
    font-family: var(--fuente-titulos);
    font-size: clamp(1.1rem, 2.2vw, 1.3rem);
}

.titulo-terapia .icono {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    object-fit: contain;
    display: inline-block;
    filter: none;
}

.bloque-terapia p {
    margin: .4rem 0 .6rem;
    line-height: 1.7;
}

.lista-simple {
    padding-left: 1.1rem;
    margin: .25rem 0 0 0;
}

.lista-simple li {
    margin: .2rem 0;
}

/* ===== PRIMERA SESIÓN ===== */
.primera-sesion {
    padding: var(--espacio-4) 0;
}

.primera-sesion h2 {
    font-family: var(--fuente-titulos);
    color: #183126;
    font-size: clamp(1.3rem, 2.6vw, 1.7rem);
    margin: 0 0 .8rem 0;
    text-align: center;
}

.texto-largo {
    column-gap: var(--espacio-3);
}

.texto-largo p {
    margin: .7rem 0;
    line-height: 1.75;
}

/* Si en el futuro quieres 2 columnas en desktop, cambia a 2 aquí */
@media (min-width: 980px) {
    .texto-largo {
        column-count: 1;
    }
}
.frase-final {
    font-style: italic;
    text-align: center;
    margin-top: var(--espacio-4);
    font-size: clamp(1rem, 2.1vw, 1.125rem);
    color: var(--color-principal);
}
/* ===== CTA ROTATIVA (fondo fijo sin saltos) ===== */
.consulta-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: var(--radio-borde);
    margin: var(--espacio-4) auto;
    padding: var(--espacio-3);
    height: 25rem;
}

.consulta-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: url("/assets/img/melancolia2.webp") center/cover no-repeat;
    filter: blur(10px) brightness(.9);
    transform: scale(1.05);
    pointer-events: none;
}

.consulta-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(20, 35, 30, .28);
}

/* CENTRADO PERFECTO CTA */
.cta-ciclo {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    text-align: center;
    color: #f7f7f2;
    padding: var(--espacio-3);
    min-height: 180px;
    box-sizing: border-box;

    opacity: 0;
    transform: translateY(6px);
    transition: opacity 320ms ease, transform 320ms ease;
}

.cta-ciclo.visible {
    opacity: 1;
    transform: translateY(0);
}

.cta-ciclo .frase,
.cta-ciclo .autor {
    margin-inline: auto;
    max-width: 38ch;
}

.cta-ciclo .frase {
    font-family: var(--fuente-titulos);
    font-size: clamp(1.15rem, 2.6vw, 1.7rem);
    line-height: 1.5;
    text-wrap: balance;
    color: #e7e6e3;
}

.cta-ciclo .autor {
    font-family: var(--fuente-base);
    color: #e7e6e3;
    font-size: clamp(.95rem, 1.8vw, 1.05rem);
}

/* ===== ACCESIBILIDAD ===== */
@media (prefers-reduced-motion: reduce) {
    .cta-ciclo {
        transition: none;
    }
}

@media (max-width: 780px) {
    .hero-wrap {
        max-width: 90%;
    }
}