/* ==============================================
   ESPECIAL SALUD 2026
   ============================================== */

/* --- Variables -------------------------------- */
:root {
    --c-bg:      #f4f2ef;
    --c-dark:    #0a1628;
    --c-text:    #1c1c1c;
    --c-muted:   #636363;
    --c-white:   #ffffff;

    --c-teal:    #0d5c63;
    --c-teal-l:  #1ba3b2;
    --c-green:   #1e6b3a;
    --c-green-l: #2a9d5c;
    --c-purple:  #5b2d8e;
    --c-purple-l:#7c4dbc;
    --c-orange:  #b84400;
    --c-orange-l:#e0601e;
    --c-blue:    #1455a4;
    --c-blue-l:  #2878d4;

    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans:  'Inter', Helvetica, Arial, sans-serif;

    --ease:      cubic-bezier(0.22, 1, 0.36, 1);
    --dur:       .75s;

    --shadow-md: 0 8px 30px rgba(0,0,0,.10);
    --shadow-lg: 0 24px 70px rgba(0,0,0,.18);
}

/* --- Reset ------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
.cuerpo  {
    font-family: var(--font-sans);
    background: var(--c-bg);
    color: var(--c-text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img   { display: block; width: 100%; height: 100%; object-fit: cover; }
a     { text-decoration: none; color: inherit; }

/* ==============================================
   HERO
   ============================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--c-dark);
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
    animation: heroZoom 14s ease-out forwards;
}

@keyframes heroZoom {
    from { transform: scale(1.06); }
    to   { transform: scale(1.00); }
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        160deg,
        rgba(10,22,40,.72) 0%,
        rgba(10,22,40,.55) 50%,
        rgba(10,22,40,.78) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 860px;
    padding: 0 28px;
}

.hero__label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeUp .7s var(--ease) .3s forwards;
}

.hero__title {
    font-family: var(--font-serif);
    line-height: .88;
    margin-bottom: 32px;
}

.hero__title-line {
    display: block;
    font-size: clamp(72px, 13vw, 152px);
    font-weight: 900;
    color: #fff;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeUp .85s var(--ease) forwards;
}
.hero__title-line:nth-child(1) { animation-delay: .5s; }
.hero__title-line:nth-child(2) {
    animation-delay: .7s;
    font-size: clamp(36px, 6vw, 68px);
    font-style: italic;
    font-weight: 400;
    color: rgba(255,255,255,.75);
    margin: 8px 0;
}
.hero__title-line:nth-child(3) {
    animation-delay: .9s;
    color: var(--c-teal-l);
}

.hero__subtitle {
    font-size: clamp(15px, 1.8vw, 19px);
    color: rgba(255,255,255,.62);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 48px;
    opacity: 0;
    animation: fadeUp .8s var(--ease) 1.1s forwards;
}

.hero__scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeUp .7s var(--ease) 1.4s forwards;
}

.hero__scroll-line {
    width: 1px;
    height: 52px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,.5));
    animation: scrollLine 2s ease infinite;
}

.hero__scroll span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
}

@keyframes scrollLine {
    0%   { opacity: .4; transform: scaleY(.6) translateY(-8px); }
    50%  { opacity: 1;  transform: scaleY(1)  translateY(0); }
    100% { opacity: .4; transform: scaleY(.6) translateY(-8px); }
}

@keyframes fadeUp {
    to { opacity: 1; transform: none; }
}

/* ==============================================
   INTRO
   ============================================== */
.intro {
    padding: 80px 24px;
    text-align: center;
}

.intro__inner {
    max-width: 680px;
    margin: 0 auto;
}

.intro__text {
    font-family: var(--font-serif);
    font-size: clamp(18px, 2.2vw, 24px);
    font-style: italic;
    color: var(--c-muted);
    line-height: 1.7;
    border-left: 3px solid var(--c-teal);
    padding-left: 24px;
    text-align: left;
}

/* ==============================================
   BLOQUES DE CLIENTE
   ============================================== */
.client-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
    overflow: hidden;
    /* Estado inicial para animación */
    opacity: 0;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

/* Dirección de entrada */
.client-block--left  { transform: translateX(-80px); }
.client-block--right { transform: translateX(80px); }

/* Estado visible (añadido por JS) */
.client-block.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Reordenación para --right: imagen a la derecha */
.client-block--right .client-block__img-wrap { order: 2; }
.client-block--right .client-block__cuerpo      { order: 1; }

.client-block__img-wrap {
    position: relative;
    overflow: hidden;
}

.client-block__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease);
}

.client-block:hover .client-block__img {
    transform: scale(1.06);
}

.client-block__cuerpo {
    background: var(--c-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 64px;
}

/* Alternancia de fondo para los bloques pares */
.client-block:nth-child(even) .client-block__cuerpo {
    background: #fafafa;
}

/* --- Tags de categoría --- */
.client-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--c-teal);
    border: 1.5px solid var(--c-teal);
    border-radius: 4px;
    padding: 5px 12px;
    margin-bottom: 22px;
    width: fit-content;
}
.client-tag--green  { color: var(--c-green);  border-color: var(--c-green); }
.client-tag--purple { color: var(--c-purple); border-color: var(--c-purple); }
.client-tag--orange { color: var(--c-orange); border-color: var(--c-orange); }
.client-tag--blue   { color: var(--c-blue);   border-color: var(--c-blue); }
.client-tag--teal   { color: var(--c-teal);   border-color: var(--c-teal); }

/* --- Titular --- */
.client-block__title {
    font-family: var(--font-serif);
    font-size: clamp(22px, 2.4vw, 34px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--c-text);
    margin-bottom: 20px;
}

/* --- Descripción --- */
.client-block__desc {
    font-size: 16px;
    color: var(--c-muted);
    line-height: 1.75;
    margin-bottom: 36px;
}

/* --- Botón CTA --- */
.client-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    background: var(--c-teal);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 13px 26px;
    border-radius: 6px;
    letter-spacing: .3px;
    transition:
        background .3s var(--ease),
        transform  .3s var(--ease),
        box-shadow .3s var(--ease);
}

.client-btn:hover {
    background: var(--c-teal-l);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(13,92,99,.35);
}

.client-btn--green  { background: var(--c-green); }
.client-btn--green:hover  { background: var(--c-green-l);  box-shadow: 0 12px 32px rgba(30,107,58,.35); }

.client-btn--purple { background: var(--c-purple); }
.client-btn--purple:hover { background: var(--c-purple-l); box-shadow: 0 12px 32px rgba(91,45,142,.35); }

.client-btn--orange { background: var(--c-orange); }
.client-btn--orange:hover { background: var(--c-orange-l); box-shadow: 0 12px 32px rgba(184,68,0,.35); }

.client-btn--blue   { background: var(--c-blue); }
.client-btn--blue:hover   { background: var(--c-blue-l);   box-shadow: 0 12px 32px rgba(20,85,164,.35); }

.client-btn__arrow {
    font-size: 18px;
    transition: transform .3s var(--ease);
}
.client-btn:hover .client-btn__arrow { transform: translateX(5px); }

/* ==============================================
   SEPARADOR 1: PARALLAX + CITA
   ============================================== */
.divider-parallax {
    position: relative;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.divider-parallax__bg {
    position: absolute;
    inset: -80px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: brightness(.35) saturate(.6);
}

.divider-parallax__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,92,99,.5) 0%, rgba(10,22,40,.55) 100%);
}

.divider-parallax__quote {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 48px;
    max-width: 820px;
}

.divider-parallax__quote p {
    font-family: var(--font-serif);
    font-size: clamp(22px, 3.8vw, 32px);
    font-style: italic;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 20px;
}

@media (max-width: 600px){
    .divider-parallax__quote p {
    font-family: var(--font-serif);
    font-size: large;
    font-style: italic;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 19px;
}
}

.divider-parallax__quote cite {
    font-style: normal;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
}

/* ==============================================
   SEPARADOR 2: VÍDEO
   ============================================== */
.divider-video {
    position: relative;
    overflow: hidden;
}

.divider-video__wrap {
    position: relative;
    height: clamp(360px, 48vw, 640px);
    overflow: hidden;
}

.divider-video__poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.55) saturate(.7);
    transition: transform 8s ease, filter .5s ease;
}

.divider-video:hover .divider-video__poster {
    filter: brightness(.65) saturate(.85);
}

.divider-video__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    background: linear-gradient(180deg, transparent 40%, rgba(10,22,40,.45) 100%);
}

/* Botón play */
.play-btn {
    position: relative;
    width: 90px;
    height: 90px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn__ring {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255,255,255,.5);
    border-radius: 50%;
    animation: ringPulse 2.4s ease infinite;
}

@keyframes ringPulse {
    0%   { transform: scale(1);    opacity: .7; }
    50%  { transform: scale(1.18); opacity: .2; }
    100% { transform: scale(1);    opacity: .7; }
}

.play-btn__icon {
    width: 72px;
    height: 72px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255,255,255,.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s ease, transform .3s ease;
}

.play-btn:hover .play-btn__icon {
    background: rgba(255,255,255,.28);
    transform: scale(1.08);
}

.play-btn__triangle {
    width: 0;
    height: 0;
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
    border-left: 22px solid rgba(255,255,255,.9);
    margin-left: 5px;
}

.divider-video__caption {
    font-family: var(--font-serif);
    font-size: clamp(18px, 2.5vw, 28px);
    font-style: italic;
    color: rgba(255,255,255,.85);
    text-align: center;
    max-width: 1200px;
    padding: 0 24px;
}
@media (max-width: 600px) {
.divider-video__caption {
    font-family: var(--font-serif);
    font-size: medium;
    font-style: italic;
    color: rgba(255,255,255,.85);
    text-align: center;
    max-width: 1200px;
    padding: 0 24px;
}
}
/* ==============================================
   SEPARADOR 3: CIERRE
   ============================================== */
.divider-closing {
    background: var(--c-dark);
    padding: 90px 24px;
    text-align: center;
}

.divider-closing__inner {
    max-width: 640px;
    margin: 0 auto;
}

.divider-closing__eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,.35);
    margin-bottom: 24px;
}

.divider-closing__text {
    font-family: var(--font-serif);
    font-size: clamp(20px, 3vw, 30px);
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 40px;
}

.divider-closing__line {
    width: 60px;
    height: 2px;
    background: var(--c-teal-l);
    margin: 0 auto;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .8s var(--ease);
}

.divider-closing__inner.is-visible .divider-closing__line {
    transform: scaleX(1);
}

/* ==============================================
   REVEAL GENÉRICO (parallax quote, video caption)
   ============================================== */
.reveal-fade {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal-fade.is-visible {
    opacity: 1;
    transform: none;
}

/* ==============================================
   FOOTER
   ============================================== */
.site-footer {
    background: var(--c-dark);
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 48px 24px;
    text-align: center;
    color: rgba(255,255,255,.4);
}

.site-footer__brand {
    font-family: var(--font-serif);
    font-size: 22px;
    color: rgba(255,255,255,.8);
    margin-bottom: 10px;
    font-weight: 400;
}

.site-footer__brand strong {
    font-weight: 900;
    color: var(--c-teal-l);
}

.site-footer__copy {
    font-size: 13px;
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 900px) {
    .client-block {
        grid-template-columns: 1fr;
        min-height: unset;
    }
    .client-block__img-wrap {
        height: 320px;
        order: 0 !important;
    }
    .client-block__cuerpo {
        padding: 40px 32px 48px;
        order: 1 !important;
    }
    .client-block--left,
    .client-block--right {
        /* En móvil: entran desde abajo */
        transform: translateY(40px);
    }
    .client-block.is-visible {
        transform: none;
    }
    .divider-parallax__bg {
        background-attachment: scroll;
    }
}

@media (max-width: 600px) {
    .hero__title-line:nth-child(1) {
        font-size: clamp(56px, 16vw, 80px);
    }
    .client-block__body {
        padding: 32px 24px 40px;
    }
    .divider-parallax { height: 320px; }
    .divider-video__wrap { height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
    .client-block,
    .reveal-fade {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .hero__bg    { animation: none; }
    .play-btn__ring { animation: none; }
    .divider-parallax__bg { background-attachment: scroll; }
}
