/* ===========================================================================
   Ver resultados - guia del Portal del Paciente. Hospital General Las Colinas.
   Lenguaje editorial-clínico, cálido y humano: fotografía real del hospital,
   tipografía firme (Outfit/Inter), marca navy/verde. Sin mocks falsos, sin
   orbes, sin glass, sin pulsos. Todo bajo el scope .vr.
   =========================================================================== */

.vr {
    --vr-navy: #262161;
    --vr-navy-2: #18154f;
    --vr-green: #5da334;
    --vr-green-2: #6fb43f;
    --vr-green-soft: #eef7e9;
    --vr-paper: #ffffff;
    --vr-canvas: #fbf9f5;
    --vr-ink: #1c1e2e;
    --vr-muted: #62677a;
    --vr-line: #ece5da;
    --vr-line-2: #e3ddd0;
    --vr-shadow: 0 30px 70px -34px rgba(38, 33, 97, .42);
    --vr-shadow-sm: 0 16px 36px -22px rgba(38, 33, 97, .3);

    background: var(--vr-canvas);
    color: var(--vr-ink);
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    overflow-x: clip;
}

.vr * { box-sizing: border-box; }

.vr-shell {
    width: min(1180px, 92vw);
    margin-inline: auto;
}

.vr h1, .vr h2, .vr h3, .vr h4 {
    font-family: "Outfit", "Plus Jakarta Sans", "Inter", sans-serif;
    color: var(--vr-navy);
    letter-spacing: -.02em;
    line-height: 1.08;
    font-weight: 800;
}

.vr-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--vr-green);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.vr-eyebrow svg { width: 15px; height: 15px; }

/* El estado oculto solo se aplica si hay JS (.vr-js lo añade al cargar). Sin JS,
   el contenido se ve siempre. */
.vr-js .vr-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
}
.vr-js .vr-reveal.is-in { opacity: 1; transform: none; }

/* =============================  HERO (split)  ========================== */
.vr-hero { padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2rem, 4vw, 3.5rem); }

.vr-hero-grid {
    display: grid;
    grid-template-columns: 1.04fr .96fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.vr-hero-copy { min-width: 0; }
.vr-hero h1 {
    margin: 1rem 0 0;
    font-size: clamp(2.1rem, 5.4vw, 4rem);
    max-width: 13ch;
    overflow-wrap: break-word;
}
.vr-hero h1 em { font-style: normal; color: var(--vr-green); }
.vr-hero-sub {
    margin: 1.1rem 0 0;
    max-width: 46ch;
    color: var(--vr-muted);
    font-size: clamp(1.02rem, 1.5vw, 1.18rem);
    line-height: 1.6;
}
.vr-hero-actions { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .8rem; }

.vr-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: 1.05rem 1.4rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: .9rem;
    color: var(--vr-navy);
    background: var(--vr-paper);
    border: 1px solid var(--vr-line-2);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.vr-link:hover { border-color: var(--vr-navy); box-shadow: var(--vr-shadow-sm); transform: translateY(-1px); }

.vr-hero-trust {
    margin-top: 1.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    color: var(--vr-muted);
    font-size: .86rem;
    font-weight: 600;
}
.vr-hero-trust span { display: inline-flex; align-items: center; gap: .45rem; }
.vr-hero-trust svg { width: 17px; height: 17px; color: var(--vr-green); }

.vr-hero-photo {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--vr-line);
    box-shadow: var(--vr-shadow);
    aspect-ratio: 4 / 3.5;
    background: var(--vr-line);
}
.vr-hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* =============================  STEPS  ================================= */
.vr-section { padding: clamp(3rem, 6vw, 5rem) 0; }
.vr-section-head { max-width: 620px; }
.vr-section-head.is-center { margin-inline: auto; text-align: center; }
.vr-section-head h2 { margin-top: .5rem; font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.vr-section-head p { margin-top: .8rem; color: var(--vr-muted); font-size: 1.02rem; line-height: 1.6; }

.vr-steps { background: var(--vr-paper); border-block: 1px solid var(--vr-line); }

.vr-steplist { max-width: 840px; margin: clamp(1.8rem, 4vw, 2.8rem) auto 0; }
.vr-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(1.2rem, 3vw, 2.2rem);
    align-items: start;
    padding: clamp(1.5rem, 3vw, 2.1rem) 0;
    border-top: 1px solid var(--vr-line);
}
.vr-step:first-child { border-top: 0; }
.vr-step-n {
    font-family: "Outfit", sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    color: var(--vr-green);
    line-height: .9;
    font-variant-numeric: tabular-nums;
}
.vr-step-body h3 {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
}
.vr-step-body h3 svg { width: 22px; height: 22px; color: var(--vr-navy); flex: none; }
.vr-step-body p { margin-top: .55rem; color: var(--vr-muted); font-size: 1rem; line-height: 1.62; max-width: 56ch; }
.vr-step-note {
    margin-top: .8rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .85rem;
    font-weight: 700;
    color: var(--vr-green);
}
.vr-step-note svg { width: 16px; height: 16px; }

/* =============================  CAPABILITIES  ========================== */
.vr-caps { background: var(--vr-canvas); }
.vr-caps-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(2rem, 5vw, 4rem);
    max-width: 940px;
    margin: clamp(1.6rem, 4vw, 2.6rem) auto 0;
}
.vr-cap {
    display: flex;
    gap: 1.1rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--vr-line);
}
.vr-cap .ic {
    flex: none;
    width: 46px; height: 46px;
    border-radius: 13px;
    display: grid; place-items: center;
    background: var(--vr-green-soft);
    color: var(--vr-green);
}
.vr-cap .ic svg { width: 22px; height: 22px; }
.vr-cap h4 { font-size: 1.08rem; }
.vr-cap p { margin-top: .35rem; color: var(--vr-muted); font-size: .92rem; line-height: 1.55; }

/* =============================  AUTOMATIC (navy)  ===================== */
.vr-auto {
    background: var(--vr-navy);
    color: #fff;
    padding: clamp(3.2rem, 6vw, 5rem) 0;
}
.vr-auto h2 { color: #fff; }
.vr-auto .vr-section-head p { color: rgba(255, 255, 255, .8); }
.vr-auto .vr-eyebrow { color: var(--vr-green-2); }

.vr-auto-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    max-width: 980px;
    margin: clamp(2rem, 4vw, 3rem) auto 0;
}
.vr-auto-point { padding-top: 1.3rem; border-top: 1px solid rgba(255, 255, 255, .16); }
.vr-auto-point .ic {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .08);
    color: var(--vr-green-2);
    margin-bottom: .9rem;
}
.vr-auto-point .ic svg { width: 22px; height: 22px; }
.vr-auto-point h4 { color: #fff; font-size: 1.08rem; }
.vr-auto-point p { margin-top: .4rem; color: rgba(255, 255, 255, .76); font-size: .92rem; line-height: 1.55; }

/* =============================  ACCESS  =============================== */
.vr-access-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: clamp(1.6rem, 4vw, 2.4rem);
}
.vr-access-card {
    padding: 1.8rem 1.7rem;
    border-radius: 18px;
    background: var(--vr-paper);
    border: 1px solid var(--vr-line);
    box-shadow: var(--vr-shadow-sm);
}
.vr-access-card.is-primary {
    border-color: rgba(93, 163, 52, .4);
    box-shadow: 0 20px 44px -24px rgba(93, 163, 52, .4);
}
.vr-access-card .tag { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--vr-green); }
.vr-access-card h3 { margin-top: .5rem; font-size: 1.3rem; }
.vr-access-card > p { margin-top: .55rem; color: var(--vr-muted); font-size: .94rem; line-height: 1.6; }
.vr-access-card ol { list-style: none; counter-reset: a; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .7rem; }
.vr-access-card li {
    counter-increment: a;
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    font-size: .94rem;
    color: var(--vr-ink);
}
.vr-access-card li::before {
    content: counter(a);
    flex: none;
    width: 24px; height: 24px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--vr-green-soft);
    color: var(--vr-green);
    font-weight: 800;
    font-size: .8rem;
    font-family: "Outfit", sans-serif;
}

/* =============================  FINAL CTA  ============================ */
.vr-final { padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 7vw, 6rem); }
.vr-final-card {
    text-align: center;
    padding: clamp(2.6rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
    border-radius: 26px;
    background: linear-gradient(155deg, var(--vr-navy), var(--vr-navy-2));
    color: #fff;
    box-shadow: var(--vr-shadow);
}
.vr-final-card h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); }
.vr-final-card p { margin: .9rem auto 0; max-width: 46ch; color: rgba(255, 255, 255, .82); font-size: 1.04rem; line-height: 1.6; }
.vr-final-actions { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.vr-final-help { margin-top: 1.4rem; font-size: .88rem; color: rgba(255, 255, 255, .68); }
.vr-final-help a { color: var(--vr-green-2); font-weight: 700; }

/* =============================  RESPONSIVE  ========================== */
@media (max-width: 880px) {
    .vr-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .vr-hero-photo { aspect-ratio: 16 / 11; order: -1; }
    .vr-hero h1 { max-width: none; }
    .vr-auto-points { grid-template-columns: 1fr; gap: 0; }
    .vr-auto-point { padding: 1.3rem 0; }
    .vr-auto-point:first-child { border-top: 1px solid rgba(255, 255, 255, .16); }
}

@media (max-width: 700px) {
    .vr-hero h1 { font-size: clamp(1.7rem, 6.4vw, 2.3rem); line-height: 1.12; }
    .vr-caps-grid { grid-template-columns: 1fr; }
    .vr-access-grid { grid-template-columns: 1fr; }
    .vr-step { grid-template-columns: auto 1fr; gap: 1rem; }
    .vr-hero-actions .btn, .vr-hero-actions .vr-link,
    .vr-final-actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .vr-js .vr-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
