/* ════════════════════════════════════════════
   VARIABLES & RESET
════════════════════════════════════════════ */
:root {
    --navy:       #003366;
    --navy-dark:  #00223E;
    --navy-mid:   #004080;
    --cyan:       #01A4BE;
    --cyan-light: #02C0DD;
    --cyan-pale:  rgba(1,164,190,0.12);
    --white:      #FFFFFF;
    --off-white:  #F4F8FC;
    --light-gray: #EBF2F8;
    --text-dark:  #1A2B3C;
    --text-body:  #3D5166;
    --text-muted: #7A90A4;
    --radius-sm: 10px;
    --radius: 20px;
    --radius-lg: 36px;
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Figtree', sans-serif; color: var(--text-body); background: var(--white); overflow-x: hidden; line-height: 1.65; }
h1,h2,h3,h4 { font-family: 'Outfit', sans-serif; color: var(--navy); line-height: 1.15; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* ════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════ */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .85rem 2rem; border-radius: 50px;
    font-family: 'Outfit', sans-serif; font-weight: 700; font-size: .95rem;
    cursor: pointer; border: none; transition: all .35s var(--ease); letter-spacing: .02em;
}
.btn-primary { background: var(--cyan); color: var(--white); box-shadow: 0 8px 24px rgba(1,164,190,.35); }
.btn-primary:hover { background: #009db6; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(1,164,190,.45); }
.btn-navy { background: var(--navy); color: var(--white); box-shadow: 0 8px 24px rgba(0,51,102,.25); }
.btn-navy:hover { background: var(--navy-mid); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid white; color: white; }
.btn-outline:hover { background: white; color: var(--navy); }
.btn-outline-navy { background: transparent; border: 2px solid var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: white; }

/* ════════════════════════════════════════════
   EYEBROW LABELS
════════════════════════════════════════════ */
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--cyan-pale); color: var(--cyan);
    padding: .4rem 1.1rem; border-radius: 50px;
    font-family: 'Outfit', sans-serif; font-weight: 700;
    font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
    margin-bottom: 1.4rem;
}
.eyebrow-white { background: rgba(255,255,255,0.15); color: white; }
.eyebrow-navy { background: rgba(0,51,102,.1); color: var(--navy); }

/* ════════════════════════════════════════════
   HEADER — NEUREMIK STYLE
   Top teal utility bar + white sticky main nav
════════════════════════════════════════════ */

/* ── Topbar (teal/cyan) ── */
.topbar {
    background: var(--cyan);
    color: white;
    font-size: .82rem;
    padding: .6rem 0;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; }
.topbar-left { display: flex; align-items: center; gap: 2rem; }
.topbar-right { display: flex; align-items: center; gap: 1.8rem; }
.topbar-item { display: flex; align-items: center; gap: .4rem; color: white; font-weight: 500; white-space: nowrap; }
.topbar-item svg { width: 14px; height: 14px; flex-shrink: 0; opacity: .85; }
.topbar a { color: white; transition: opacity .2s; }
.topbar a:hover { opacity: .8; }
.topbar-phone {
    background: white; color: var(--cyan) !important;
    font-family: 'Outfit', sans-serif; font-weight: 800; font-size: .9rem;
    padding: .35rem 1.1rem; border-radius: 50px;
    display: flex; align-items: center; gap: .4rem;
    transition: all .25s; white-space: nowrap; flex-shrink: 0;
}
.topbar-phone:hover { background: var(--navy); color: white !important; opacity: 1 !important; }

/* ── Main header (white, sticky) ── */
.site-header {
    background: var(--white);
    position: sticky; top: 0; z-index: 900;
    padding: 1.1rem 0;
    border-bottom: 1px solid rgba(0,51,102,.08);
    box-shadow: 0 4px 30px rgba(0,51,102,.07);
    transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 8px 40px rgba(0,51,102,.13); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

/* Logo */
.logo-wrap { display: flex; align-items: center; flex-shrink: 0; }
.logo-wrap img { height: 48px; width: auto; object-fit: contain; }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 0; }
.nav-item {
    position: relative;
    font-family: 'Outfit', sans-serif; font-weight: 600;
    font-size: .92rem; color: var(--text-dark);
    transition: color .25s; padding: .5rem 1rem;
}
.nav-item::after {
    content: ''; position: absolute; bottom: 0; left: 1rem;
    right: 1rem; height: 2px; background: var(--cyan);
    transform: scaleX(0); transition: transform .3s var(--ease);
}
.nav-item:hover { color: var(--cyan); }
.nav-item:hover::after { transform: scaleX(1); }

/* Header CTA */
.header-cta {
    display: flex; align-items: center; gap: 1rem;
}
.header-tel {
    font-family: 'Outfit', sans-serif; font-weight: 700;
    color: var(--navy); font-size: .9rem;
    display: flex; align-items: center; gap: .4rem;
}
.header-tel svg { color: var(--cyan); }

/* ════════════════════════════════════════════
   HERO — Neuremik style: full-bleed + dark teal overlay + white text
════════════════════════════════════════════ */
.hero {
    position: relative; min-height: 92vh;
    display: flex; align-items: center;
    overflow: hidden;
    background: url('../assets/hero_neuro_rehab_center_1775658330763.png') center 30% / cover no-repeat;
}
/* Dark teal/navy gradient overlay for white text legibility — Neuremik style */
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(110deg,
        rgba(0,34,62,0.88) 0%,
        rgba(0,51,102,0.78) 40%,
        rgba(1,164,190,0.45) 75%,
        rgba(1,164,190,0.2) 100%);
    z-index: 2;
}
.hero-inner {
    position: relative; z-index: 10; padding: 7rem 0 9rem;
}
.hero-content { max-width: 720px; }

/* Headline decoration lines — Neuremik signature style */
.hero-eyebrow-line {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 1.8rem;
}
.hero-eyebrow-line::before,
.hero-eyebrow-line::after {
    content: ''; flex: 0 0 40px; height: 1.5px;
    background: var(--cyan);
}
.hero-eyebrow-text {
    font-family: 'Outfit', sans-serif; font-weight: 700;
    font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--cyan-light);
    white-space: nowrap;
}

.hero h1 {
    font-size: clamp(2.4rem, 4.8vw, 3.8rem); font-weight: 900;
    color: white; margin-bottom: 1.5rem; line-height: 1.08;
    text-transform: uppercase; letter-spacing: .02em;
}
.hero h1 em { font-style: normal; color: var(--cyan-light); }
.hero-lead {
    font-size: 1.1rem; color: rgba(255,255,255,.82);
    max-width: 580px; margin-bottom: 2.8rem; line-height: 1.75;
    font-weight: 400;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.5rem; }
.hero-stats {
    display: flex; gap: 2.5rem; flex-wrap: wrap;
    padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.15);
}
.stat-num {
    font-family: 'Outfit', sans-serif; font-weight: 800;
    font-size: 2rem; color: var(--cyan-light); display: block;
}
.stat-label { font-size: .8rem; color: rgba(255,255,255,.6); font-weight: 400; }

/* Smooth white transition at hero bottom */
.hero-gradient-footer {
    height: 100px; position: relative; z-index: 15; pointer-events: none;
    background: linear-gradient(to bottom, transparent, var(--white));
    margin-top: -100px;
}

/* ════════════════════════════════════════════
   TRUST CARDS — floating over hero bottom
════════════════════════════════════════════ */
.trust-bar {
    position: relative; z-index: 20;
    padding: 0 0 4rem;
}
.trust-items {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: white; border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,51,102,.14);
    overflow: hidden;
}
.trust-item {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: .6rem; padding: 2.2rem 1.5rem;
    color: var(--navy); font-family: 'Outfit', sans-serif; font-weight: 700; font-size: .98rem;
    border-right: 1px solid var(--light-gray);
    transition: all .3s var(--ease);
}
.trust-item:last-child { border-right: none; }
.trust-item:hover { background: var(--off-white); }
.trust-icon {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--cyan-pale); display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; flex-shrink: 0; margin-bottom: .3rem;
    transition: background .3s;
}
.trust-item:hover .trust-icon { background: var(--cyan); }
.trust-sub { font-size: .82rem; font-weight: 400; color: var(--text-muted); }

/* ════════════════════════════════════════════
   SECTION SHARED
════════════════════════════════════════════ */
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: .8rem; color: var(--navy); }
.section-intro { font-size: 1.05rem; color: var(--text-muted); max-width: 560px; margin-bottom: 3.5rem; line-height: 1.7; }

/* ════════════════════════════════════════════
   SPECIALTY TABS — "Qué Tratamos"
════════════════════════════════════════════ */
.specialties {
    padding: 5rem 0 7rem;
    position: relative;
    background: var(--white);
    overflow: hidden;
}
.specialties-bg, .hero-bg {
    position: absolute; inset: 0;
    opacity: 0.12; z-index: 0; pointer-events: none;
}
.specialties-bg canvas, .hero-bg canvas { width: 100%; height: 100%; }
.specialties .wrap { position: relative; z-index: 5; }

.tab-controls {
    display: inline-flex; background: var(--light-gray);
    border-radius: 50px; padding: .3rem; margin-bottom: 3rem;
}
.tab-btn {
    padding: .65rem 1.8rem; border-radius: 50px; border: none; cursor: pointer;
    font-family: 'Outfit', sans-serif; font-weight: 700; font-size: .9rem;
    color: var(--text-muted); background: transparent;
    transition: all .3s var(--ease);
}
.tab-btn.active { background: var(--navy); color: white; box-shadow: 0 4px 12px rgba(0,51,102,.2); }
.tab-content { display: none; }
.tab-content.active { display: grid; }
.prog-grid { grid-template-columns: repeat(auto-fill, minmax(270px,1fr)); gap: 1.8rem; }

.prog-card {
    background: var(--white); border-radius: var(--radius);
    overflow: hidden; box-shadow: 0 4px 24px rgba(0,51,102,.08);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease); cursor: pointer;
    border: 1px solid var(--light-gray);
}
.prog-card:hover { transform: translateY(-8px); box-shadow: 0 24px 56px rgba(0,51,102,.14); }
.prog-card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.prog-card-body { padding: 1.6rem; }
.prog-card-tag {
    font-family: 'Outfit', sans-serif; font-size: .72rem; font-weight: 700;
    color: var(--cyan); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .5rem;
}
.prog-card-title { font-size: 1.15rem; font-weight: 800; margin-bottom: .6rem; color: var(--navy); }
.prog-card-desc { font-size: .88rem; color: var(--text-muted); margin-bottom: 1.2rem; line-height: 1.6; }
.prog-card-link {
    font-family: 'Outfit', sans-serif; font-weight: 700; font-size: .88rem;
    color: var(--cyan); display: inline-flex; align-items: center; gap: .3rem; transition: gap .25s;
}
.prog-card:hover .prog-card-link { gap: .6rem; }

/* ════════════════════════════════════════════
   WHY REHACE — split image + text
════════════════════════════════════════════ */
.why-us { padding: 8rem 0; background: var(--off-white); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.features-list { list-style: none; margin: 2rem 0 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
.feature-item {
    display: flex; align-items: flex-start; gap: 1rem;
    padding: 1rem 1.2rem; background: white;
    border-radius: var(--radius-sm); border-left: 3px solid var(--cyan);
    box-shadow: 0 2px 12px rgba(0,51,102,.05);
}
.feature-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: .1rem; }
.feature-text h4 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: .2rem; }
.feature-text p { font-size: .87rem; color: var(--text-muted); }
.img-stack { position: relative; padding-bottom: 80px; padding-right: 60px; }
.img-main {
    width: 100%; border-radius: var(--radius-lg);
    box-shadow: 0 30px 70px rgba(0,51,102,.15); position: relative; z-index: 2;
}
.img-accent {
    position: absolute; right: -20px; bottom: 0; z-index: 3;
    width: 55%; border-radius: var(--radius);
    border: 6px solid white; box-shadow: 0 20px 50px rgba(0,51,102,.15);
}
.img-badge {
    position: absolute; left: -20px; top: 40px; z-index: 4;
    background: var(--navy); color: white;
    border-radius: var(--radius); padding: 1rem 1.4rem;
    box-shadow: 0 10px 30px rgba(0,51,102,.25); text-align: center;
}
.img-badge-num { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 2.2rem; color: var(--cyan); display: block; }
.img-badge-lbl { font-size: .65rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .1em; }

/* ════════════════════════════════════════════
   4 STEPS — Rehace style: light/clean floating card
════════════════════════════════════════════ */
.steps-section {
    padding: 7rem 0 8rem;
    background: var(--off-white);
    position: relative; overflow: hidden;
}
/* Subtle background pattern */
.steps-section::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(1,164,190,0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}
.steps-section .wrap { position: relative; z-index: 2; }
.steps-section .section-title { color: var(--navy); }
.steps-section .eyebrow { background: var(--cyan-pale); color: var(--cyan); }

/* Floating white card containing the 4 steps */
.steps-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 70px rgba(0,51,102,0.10);
    overflow: hidden;
    margin-top: 3.5rem;
}

/* Grid inside the card: 4 equal columns */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.step-cell {
    padding: 3rem 2.5rem;
    border-right: 1px solid var(--light-gray);
    position: relative;
    transition: background .3s var(--ease);
}
.step-cell:last-child { border-right: none; }
.step-cell:hover { background: var(--off-white); }

/* Subtle top border accent on hover */
.step-cell::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px; background: var(--cyan);
    transform: scaleX(0); transition: transform .35s var(--ease);
    transform-origin: left;
}
.step-cell:hover::before { transform: scaleX(1); }

/* Large number — Rehace style: big, navy, semi-transparent */
.step-num {
    font-family: 'Outfit', sans-serif; font-weight: 900;
    font-size: 4.5rem; line-height: 1; margin-bottom: 1rem;
    color: var(--navy); opacity: 0.12;
    display: block;
}
.step-title {
    font-size: 1.1rem; font-weight: 800; margin-bottom: .7rem;
    color: var(--navy); line-height: 1.2;
}
.step-desc {
    font-size: .88rem; line-height: 1.7;
    color: var(--text-muted);
}

/* CTA row at bottom of the card */
.steps-cta-row {
    border-top: 1px solid var(--light-gray);
    padding: 1.8rem 2.5rem;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
    background: #F9FBFD;
}
.steps-cta-row p {
    font-size: .92rem; color: var(--text-muted);
    font-style: italic;
}

/* ════════════════════════════════════════════
   HOME VISIT STRIP
════════════════════════════════════════════ */
.home-visit-strip {
    position: relative; overflow: hidden;
    padding: 0;
}
.home-visit-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    min-height: 460px;
}
.home-visit-img {
    position: relative; overflow: hidden;
}
.home-visit-img img { width: 100%; height: 100%; object-fit: cover; }
.home-visit-img::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to right, transparent 60%, var(--cyan) 100%);
}
.home-visit-text {
    background: var(--cyan); padding: 5rem 4rem;
    display: flex; flex-direction: column; justify-content: center;
}
.home-visit-text h2 { color: white; font-size: 2.2rem; margin-bottom: 1rem; line-height: 1.2; }
.home-visit-text p { color: rgba(255,255,255,.9); font-size: 1.05rem; margin-bottom: 2.5rem; line-height: 1.65; }

/* ════════════════════════════════════════════
   DISCIPLINES / TEAM AREAS
════════════════════════════════════════════ */
.disciplines { padding: 7rem 0; background: var(--off-white); }
.disc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3.5rem; }
.disc-card {
    background: white; border-radius: var(--radius); padding: 2.5rem 1.8rem;
    text-align: center; transition: all .35s var(--ease);
    border-bottom: 3px solid transparent;
    box-shadow: 0 2px 16px rgba(0,51,102,.05);
}
.disc-card:hover { transform: translateY(-6px); border-bottom-color: var(--cyan); box-shadow: 0 20px 50px rgba(0,51,102,.1); }
.disc-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--cyan-pale); margin: 0 auto 1.2rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; transition: background .3s;
}
.disc-card:hover .disc-icon { background: var(--cyan); }
.disc-name { font-size: 1.1rem; font-weight: 800; margin-bottom: .5rem; color: var(--navy); }
.disc-desc { font-size: .87rem; color: var(--text-muted); }

/* ════════════════════════════════════════════
   TESTIMONIALS
════════════════════════════════════════════ */
.testimonials { padding: 7rem 0; background: var(--white); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; margin-top: 3.5rem; }
.testi-card {
    background: var(--off-white); border-radius: var(--radius);
    padding: 2.2rem; position: relative; transition: box-shadow .3s;
    border: 1px solid var(--light-gray);
}
.testi-card:hover { box-shadow: 0 16px 40px rgba(0,51,102,.1); }
.stars { color: #F5A623; font-size: 1rem; margin-bottom: 1rem; letter-spacing: .1em; }
.testi-text { font-size: .93rem; line-height: 1.7; color: var(--text-body); margin-bottom: 1.5rem; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: .8rem; }
.testi-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--navy); display: flex; align-items: center; justify-content: center;
    color: white; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1rem; flex-shrink: 0;
}
.testi-name { font-weight: 700; font-size: .93rem; color: var(--navy); }
.testi-role { font-size: .78rem; color: var(--text-muted); }
.google-badge {
    position: absolute; top: 1.4rem; right: 1.4rem;
    background: white; border-radius: 6px; padding: .2rem .55rem;
    font-size: .68rem; font-weight: 700; color: #4285F4;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

/* ════════════════════════════════════════════
   CTA BAND
════════════════════════════════════════════ */
.cta-band {
    background: linear-gradient(135deg, #001F3F 0%, var(--navy) 50%, #005080 100%);
    padding: 8rem 0; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
    content: ''; position: absolute; inset: 0; opacity: .04;
    background-image: radial-gradient(circle, #fff 1px, transparent 1px);
    background-size: 30px 30px;
}
.cta-band .eyebrow { margin-bottom: 1.5rem; }
.cta-band h2 { color: white; font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 1.2rem; position: relative; max-width: 700px; margin-left: auto; margin-right: auto; }
.cta-band h2 em { font-style: normal; color: var(--cyan-light); }
.cta-band p { color: rgba(255,255,255,.8); font-size: 1.15rem; margin-bottom: 3rem; position: relative; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; position: relative; }
.cta-btns .btn-primary { font-size: 1.1rem; padding: 1.1rem 2.8rem; }
.cta-btns .btn-outline { font-size: 1.1rem; padding: 1.1rem 2.8rem; }

/* ════════════════════════════════════════════
   FOOTER — NEUREMIK STYLE
   Dark navy-dark bg, 4 cols, teal accents
   Lower bar with legal links
════════════════════════════════════════════ */
.site-footer {
    background: #00203D;
    padding-top: 5.5rem;
}
.footer-top {
    display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
    gap: 4rem; padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

/* Brand column */
.footer-logo { margin-bottom: 1.5rem; }
.footer-logo img { height: 44px; object-fit: contain; filter: brightness(0) invert(1); }
.footer-desc {
    color: rgba(255,255,255,.5); font-size: .9rem; line-height: 1.75;
    margin-bottom: 2rem; max-width: 300px;
}
.footer-socials { display: flex; gap: .7rem; }
.social-link {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.18);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.55); font-size: .82rem;
    transition: all .25s; font-weight: 700;
}
.social-link:hover { background: var(--cyan); border-color: var(--cyan); color: white; }

/* Nav columns */
.footer-col-title {
    font-family: 'Outfit', sans-serif; font-weight: 700;
    color: white; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase;
    margin-bottom: 1.4rem; padding-bottom: .8rem;
    border-bottom: 1px solid rgba(1,164,190,.35);
    display: flex; align-items: center; gap: .4rem;
}
.footer-col-title::before { content: ''; width: 18px; height: 2px; background: var(--cyan); border-radius: 2px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-links a {
    color: rgba(255,255,255,.5); font-size: .88rem;
    transition: all .2s; display: flex; align-items: center; gap: .5rem;
    padding: .1rem 0;
}
.footer-links a::before { content: '›'; color: var(--cyan); font-size: 1rem; opacity: 0; transition: opacity .2s; }
.footer-links a:hover { color: var(--cyan-light); padding-left: 4px; }
.footer-links a:hover::before { opacity: 1; }

/* Contact column card */
.footer-contact-card {
    background: rgba(1,164,190,0.1);
    border-radius: var(--radius); padding: 1.6rem;
    border: 1px solid rgba(1,164,190,0.25);
}
.footer-contact-title {
    font-family: 'Outfit', sans-serif; font-weight: 700;
    color: white; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase;
    margin-bottom: 1.4rem; padding-bottom: .8rem;
    border-bottom: 1px solid rgba(1,164,190,.35);
    display: flex; align-items: center; gap: .4rem;
}
.footer-contact-title::before { content: ''; width: 18px; height: 2px; background: var(--cyan); border-radius: 2px; }
.footer-contact-item {
    display: flex; align-items: flex-start; gap: .8rem;
    color: rgba(255,255,255,.65); font-size: .87rem; margin-bottom: .9rem;
}
.footer-contact-icon {
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(1,164,190,0.2); display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: .05rem;
}
.footer-contact-icon svg { width: 14px; height: 14px; color: var(--cyan-light); }
.footer-cta-btn {
    display: block; width: 100%; margin-top: 1.5rem;
    background: var(--cyan); color: white;
    font-family: 'Outfit', sans-serif; font-weight: 700; font-size: .9rem;
    text-align: center; padding: .85rem; border-radius: 50px;
    transition: all .3s; border: none; cursor: pointer;
}
.footer-cta-btn:hover { background: var(--cyan-light); transform: translateY(-2px); }

/* Footer bottom bar */
.footer-bottom {
    padding: 1.8rem 0;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom-text { color: rgba(255,255,255,.28); font-size: .8rem; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,.28); font-size: .8rem; transition: color .2s; }
.footer-bottom-links a:hover { color: var(--cyan-light); }

/* ════════════════════════════════════════════
   SCROLL REVEAL
════════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ════════════════════════════════════════════
   SOBRE NOSOTROS (CONÓCENOS)
   Estilo unificado con Home y Cheque Servicio
════════════════════════════════════════════ */

/* Hero Sobre Nosotros — Estilo Home (Full-bleed + Dark Teal Overlay + White Text) */
.hero-about {
    position: relative;
    min-height: 86vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: url('https://rehace.es/wp-content/uploads/2026/09/gimnasio-rehabilitacion-motora-instalaciones-rehace.png') center center / cover no-repeat;
}
.hero-about::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg,
        rgba(0, 34, 62, 0.90) 0%,
        rgba(0, 51, 102, 0.82) 40%,
        rgba(1, 164, 190, 0.45) 75%,
        rgba(1, 164, 190, 0.20) 100%);
    z-index: 2;
}

/* Historia y Fundadora (Split) */
.rh-story-section {
    padding: 6rem 0;
    background: var(--white);
    position: relative;
}
.rh-story-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}
.rh-story-content .section-title {
    font-size: clamp(1.6rem, 3.2vw, 2.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.22;
    overflow-wrap: break-word;
}
.rh-story-text {
    color: var(--text-body);
    font-size: 1.02rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}
.rh-story-text strong {
    color: var(--navy);
    font-weight: 700;
}
.rh-story-lead {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.7;
    margin-bottom: 1.2rem;
}
.rh-story-features {
    list-style: none;
    margin: 2.2rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.rh-story-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.3rem;
    background: var(--off-white);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--cyan);
    box-shadow: 0 2px 12px rgba(0, 51, 102, 0.04);
}
.rh-story-feature-icon {
    font-size: 1.3rem;
    color: var(--cyan);
    flex-shrink: 0;
    margin-top: 0.15rem;
}
.rh-story-feature-text h4 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.25rem;
}
.rh-story-feature-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
}

/* Image Stack Historia */
.rh-story-visual {
    position: relative;
}
.rh-story-img-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 51, 102, 0.14);
    border: 1px solid rgba(0, 51, 102, 0.06);
    background: #FFFFFF;
}
.rh-story-img-card img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/5;
    object-fit: cover;
    object-position: center top;
}
.rh-story-badge {
    position: absolute;
    bottom: 1.8rem;
    left: 1.8rem;
    right: 1.8rem;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
    border: 1px solid rgba(1, 164, 190, 0.2);
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.15);
}
.rh-story-badge-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--navy);
    margin: 0 0 0.2rem;
}
.rh-story-badge-role {
    font-size: 0.85rem;
    color: var(--cyan);
    font-weight: 700;
    margin: 0;
}

/* Manifiesto / Cita Full-Width (de punta a punta) */
.rh-manifesto-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #00203D 0%, #003366 100%);
    position: relative;
    overflow: hidden;
    width: 100%;
    text-align: center;
}
.rh-manifesto-card {
    background: transparent;
    border-radius: 0;
    padding: 0;
    text-align: center;
    position: relative;
    box-shadow: none;
    max-width: 900px;
    margin: 0 auto;
}
.rh-manifesto-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(1, 164, 190, 0.22) 0%, transparent 70%);
    pointer-events: none;
}
.rh-manifesto-quote {
    position: relative;
    z-index: 2;
    margin: 0 auto;
    max-width: 900px;
}
.rh-manifesto-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.5rem;
    color: var(--cyan-light);
    opacity: 0.85;
}
.rh-manifesto-text {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.4rem, 3.2vw, 2.1rem);
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin: 0 0 1.6rem;
}
.rh-manifesto-author {
    font-family: 'Figtree', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cyan-light);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Equipo Multidisciplinar */
.rh-team-section {
    padding: 6rem 0 7rem;
    background: var(--off-white);
    position: relative;
}
.rh-team-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 4rem;
}
.rh-team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8rem;
}
/* Tarjeta destacada de Raquel a ancho completo */
.rh-team-card-founder {
    grid-column: 1 / -1;
    background: #FFFFFF;
    border-radius: var(--radius);
    border: 1px solid rgba(1, 164, 190, 0.22);
    box-shadow: 0 12px 36px rgba(0, 51, 102, 0.08);
    overflow: hidden;
    display: grid;
    grid-template-columns: 320px 1fr;
    transition: all 0.35s var(--ease);
    margin-bottom: 1.5rem;
}
.rh-team-card-founder:hover {
    box-shadow: 0 20px 50px rgba(0, 51, 102, 0.12);
    border-color: var(--cyan);
    transform: translateY(-4px);
}
.rh-team-card-founder .rh-team-photo-wrap {
    height: 100%;
    min-height: 340px;
    background: linear-gradient(180deg, #EBF5F8 0%, #D8EDF2 100%);
    position: relative;
    overflow: hidden;
}
.rh-team-card-founder .rh-team-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.rh-team-card-founder .rh-team-body {
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Tarjetas estándar de miembros */
.rh-team-card {
    background: #FFFFFF;
    border-radius: var(--radius);
    border: 1px solid var(--light-gray);
    box-shadow: 0 4px 20px rgba(0, 51, 102, 0.06);
    overflow: hidden;
    transition: all 0.35s var(--ease);
    display: flex;
    flex-direction: column;
}
.rh-team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 51, 102, 0.12);
    border-color: var(--cyan);
}
.rh-team-photo-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: linear-gradient(180deg, #F0F6FA 0%, #E2EEF5 100%);
}
.rh-team-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s var(--ease);
}
.rh-team-card:hover .rh-team-photo-wrap img {
    transform: scale(1.04);
}
.rh-team-meta-exp {
    font-family: 'Figtree', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--cyan);
    letter-spacing: 0.01em;
    margin-bottom: 0.45rem;
    display: block;
}
.rh-team-body {
    padding: 1.8rem 1.6rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.rh-team-role {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
    display: block;
}
.rh-team-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.8rem;
    line-height: 1.25;
}
.rh-team-bio {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 1.2rem;
}
.rh-team-checklist {
    list-style: none;
    padding: 0;
    margin: auto 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-top: 1px solid var(--light-gray);
    padding-top: 1rem;
}
.rh-team-checkitem {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.84rem;
    color: var(--text-body);
    line-height: 1.45;
}
.rh-team-checkitem svg {
    color: var(--cyan);
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-top: 0.15rem;
}
.rh-team-checkitem.highlight span {
    font-weight: 700;
    color: var(--navy);
}

/* Historia - Cierre */
.rh-story-closing {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.65;
    margin-top: 1.6rem;
    border-left: 3px solid var(--cyan);
    padding-left: 1.2rem;
}

/* Instalaciones (Página 4 del PDF) */
.rh-facilities-section {
    padding: 6rem 0 7rem;
    background: var(--white);
    position: relative;
}
.rh-facilities-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3.8rem;
}
.rh-facilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}
.rh-facility-card {
    background: #FFFFFF;
    border-radius: var(--radius);
    border: 1px solid var(--light-gray);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 51, 102, 0.05);
    transition: all 0.35s var(--ease);
    cursor: pointer;
}
.rh-facility-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 42px rgba(0, 51, 102, 0.11);
    border-color: var(--cyan);
}
.rh-facility-img-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
    background: var(--light-gray);
    display: block;
}
.rh-facility-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--ease);
}
.rh-facility-card:hover .rh-facility-img-wrap img {
    transform: scale(1.05);
}

/* Lightbox Modal para Galería */
.rh-lightbox-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 18, 36, 0.94);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 20px;
    cursor: zoom-out;
}
.rh-lightbox-content {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: var(--radius);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    animation: rhZoom 0.25s ease-out;
}
.rh-lightbox-close {
    position: absolute;
    top: 24px;
    right: 28px;
    color: #FFFFFF;
    font-size: 40px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.rh-lightbox-close:hover {
    opacity: 0.7;
}
@keyframes rhZoom {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Banner de Servicios Conectados: 2 Tarjetas Gemelas (Cheque Servicio & Terapia Domicilio) */
.rh-connected-strip {
    padding: 3.5rem 0 6.5rem;
    background: var(--white);
}
.rh-connected-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}
.rh-connected-card {
    border-radius: var(--radius);
    padding: 3.2rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    transition: all 0.35s ease;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}
.rh-connected-card:hover {
    border-color: var(--cyan);
    box-shadow: 0 16px 42px rgba(0, 32, 61, 0.28);
    transform: translateY(-4px);
}
.rh-connected-card::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(1, 164, 190, 0.22) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

/* Tarjeta 1: Cheque Servicio (Foto en fondo con overlay degradado) */
.rh-card-cheque,
.rh-card-cheque-cta {
    background: linear-gradient(135deg, rgba(0, 32, 61, 0.88) 0%, rgba(0, 51, 102, 0.84) 100%),
                url('https://rehace.es/wp-content/uploads/2026/09/cheque-servicio-rehabilitacion-madrid.png') center/cover no-repeat;
    border: 1px solid rgba(1, 164, 190, 0.32);
}

/* Tarjeta 2: Terapia a Domicilio CTA (Foto en fondo con overlay degradado) */
.rh-card-domicilio,
.rh-card-domicilio-cta {
    background: linear-gradient(135deg, rgba(0, 32, 61, 0.88) 0%, rgba(0, 51, 102, 0.84) 100%),
                url('https://rehace.es/wp-content/uploads/2026/09/terapeuta-rehace-terapia-domicilio-adulta.png') center/cover no-repeat;
    border: 1px solid rgba(1, 164, 190, 0.32);
}

/* Encabezados y textos centrados en ambos CTA */
.rh-cta-header-center {
    text-align: center;
    width: 100%;
}
.rh-connected-eyebrow {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: #4ECDE4;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    margin-bottom: 0.75rem;
    text-align: center;
}
.rh-connected-title {
    color: #FFFFFF !important;
    font-size: clamp(1.4rem, 2.2vw, 1.85rem) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    margin: 0 0 0.95rem !important;
    text-align: center !important;
    letter-spacing: -0.015em !important;
    font-family: 'Outfit', sans-serif !important;
}
.rh-connected-title em,
.rh-connected-title .rh-highlight-cyan {
    color: #4ECDE4 !important;
    font-style: normal !important;
}
.rh-connected-desc {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 0.96rem !important;
    line-height: 1.68 !important;
    text-align: center !important;
    max-width: 480px;
    margin: 0 auto !important;
    font-family: 'Figtree', sans-serif !important;
}
.rh-connected-actions,
.rh-domicilio-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 1.8rem;
    position: relative;
    z-index: 2;
}

/* Botón Cheque Servicio */
.rh-card-cheque-cta .btn-primary,
.rh-card-cheque .btn-primary {
    background: #01A4BE !important;
    color: #FFFFFF !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 2.2rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(1, 164, 190, 0.35);
    border: none;
}
.rh-card-cheque-cta .btn-primary:hover,
.rh-card-cheque .btn-primary:hover {
    background: #008fa6 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(1, 164, 190, 0.45);
}

/* Botón WhatsApp */
.btn-whatsapp {
    background: #25D366 !important;
    color: #FFFFFF !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 2.2rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25);
    border: none;
}
.btn-whatsapp:hover {
    background: #128C7E !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(18, 140, 126, 0.35);
}

/* ════════════════════════════════════════════
   RESPONSIVE — TABLET ANCHO (≤ 1024px)
════════════════════════════════════════════ */
@media (max-width: 1024px) {

    /* Topbar: ocultar items menos esenciales */
    .topbar-left .topbar-item:first-child { display: none; } /* Oculta "Majadahonda, Madrid" */
    .topbar-left { gap: 1.2rem; }
    .topbar-right { gap: 1rem; }

    /* Header */
    .header-inner { gap: 1rem; }
    .header-tel { display: none; } /* Ocultar tel en header — ya está en topbar */
    .nav-item { padding: .5rem .7rem; font-size: .85rem; }

    /* Why-us split: reducir gap */
    .split { gap: 3.5rem; }

    /* Steps: 2 columnas */
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .step-cell:nth-child(2) { border-right: none; }
    .step-cell:nth-child(3) { border-top: 1px solid var(--light-gray); }

    /* Footer: 2 columnas */
    .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }

    /* ── Sobre Nosotros Tablet Ancho (≤ 1024px) ── */
    .rh-story-grid { gap: 3.5rem; }
    .rh-team-grid { grid-template-columns: repeat(2, 1fr); }
    .rh-team-card-founder { grid-template-columns: 280px 1fr; }
    .rh-facilities-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ════════════════════════════════════════════
   RESPONSIVE — TABLET ESTRECHO (≤ 768px)
════════════════════════════════════════════ */
@media (max-width: 768px) {

    .wrap { padding: 0 1.2rem; }

    /* ── Topbar: una fila, solo email + teléfono ── */
    .topbar .wrap {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        padding: .5rem 1.2rem;
        gap: 1rem;
        overflow: hidden;
    }
    .topbar-left {
        flex: 1;
        gap: .8rem;
        flex-wrap: nowrap;
        overflow: hidden;
    }
    .topbar-right {
        gap: .8rem;
        flex-shrink: 0;
    }
    /* En tablet: ocultar todo excepto email */
    .topbar-left .topbar-item:nth-child(1),   /* Majadahonda */
    .topbar-left .topbar-item:nth-child(2),   /* Teléfono */
    .topbar-left .topbar-item:nth-child(3) {  /* Valoración */
        display: none;
    }
    /* Solo mostrar el item de email (ajusta el nth según el HTML real) */
    .topbar-left .topbar-item.topbar-email { display: flex; }
    .topbar-item { font-size: .8rem; }
    .topbar-phone { font-size: .84rem; padding: .3rem .9rem; }

    /* ── Main Header ── */
    .main-nav { display: none; } /* La nav usa el menú mobile del tema */
    .header-cta .btn { padding: .7rem 1.3rem; font-size: .85rem; }
    .logo-wrap img { height: 40px; }

    /* ── Hero ── */
    .hero { min-height: 75vh; }
    .hero-inner { padding: 5rem 0 7rem; }
    .hero h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); }
    .hero-lead { font-size: 1rem; }
    .hero-ctas { flex-direction: column; gap: .8rem; }
    .hero-ctas .btn { width: 100%; justify-content: center; }
    .hero-stats { gap: 1.5rem; }
    .hero-eyebrow-text { font-size: .7rem; white-space: normal; text-align: center; }

    /* ── Trust cards: 2 columnas ── */
    .trust-items { grid-template-columns: repeat(2, 1fr); }
    .trust-item { padding: 1.5rem 1rem; }
    .trust-item:nth-child(2) { border-right: none; }
    .trust-item:nth-child(3) { border-top: 1px solid var(--light-gray); }

    /* ── Specialties ── */
    .specialties { padding: 4rem 0 5rem; }
    .prog-grid { grid-template-columns: 1fr; }

    /* ── Why Us — stack vertical ── */
    .why-us { padding: 5rem 0; }
    .split { grid-template-columns: 1fr; gap: 3rem; }
    .img-stack { padding-bottom: 60px; padding-right: 40px; }
    .img-badge { left: -10px; }

    /* ── Steps: 1 columna ── */
    .steps-section { padding: 5rem 0 6rem; }
    .steps-grid { grid-template-columns: 1fr; }
    .step-cell { border-right: none; border-top: 1px solid var(--light-gray); }
    .step-cell:first-child { border-top: none; }
    .step-cell { padding: 2rem 1.8rem; }
    .step-num { font-size: 3rem; }

    /* ── Home Visit Strip ── */
    .home-visit-grid { grid-template-columns: 1fr; }
    .home-visit-img { min-height: 260px; }
    .home-visit-text { padding: 3rem 2rem; }
    .home-visit-text h2 { font-size: 1.7rem; }

    /* ── Disciplines: 2 columnas ── */
    .disciplines { padding: 5rem 0; }
    .disc-grid { grid-template-columns: repeat(2, 1fr); }

    /* ── Testimonials: 1 columna ── */
    .testimonials { padding: 5rem 0; }
    .testi-grid { grid-template-columns: 1fr; }

    /* ── CTA Band ── */
    .cta-band { padding: 5rem 0; }
    .cta-band p br { display: none; }
    .cta-btns { flex-direction: column; align-items: center; }
    .cta-btns .btn { width: 100%; max-width: 340px; justify-content: center; }

    /* ── Footer ── */
    .site-footer { padding-top: 4rem; }
    .footer-top { grid-template-columns: 1fr; gap: 2rem; }
    .footer-desc { max-width: 100%; }
    .footer-bottom { flex-direction: column; text-align: center; gap: .8rem; }
    .footer-bottom-links { justify-content: center; gap: 1rem; }

    /* ── Sobre Nosotros Tablet Estrecho (≤ 768px) ── */
    .rh-story-grid { grid-template-columns: 1fr; gap: 3rem; }
    .rh-story-badge { position: relative; bottom: auto; left: auto; right: auto; margin-top: 1rem; border-radius: var(--radius-sm); }
    .rh-manifesto-card { padding: 3rem 1.8rem; }
    .rh-manifesto-text { font-size: 1.35rem; }
    .rh-team-section { padding: 4.5rem 0 5rem; }
    .rh-team-card-founder { grid-template-columns: 1fr; }
    .rh-team-card-founder .rh-team-photo-wrap { min-height: 280px; max-height: 340px; }
    .rh-team-card-founder .rh-team-body { padding: 2rem 1.6rem; }
    .rh-team-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
    
    /* Conectados en Móvil / Tablet: Bloques completos apilados uno sobre el otro */
    .rh-connected-strip { padding: 3rem 0 4.5rem; }
    .rh-connected-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 2rem !important;
    }
    .rh-connected-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 2.8rem 1.8rem !important;
        box-sizing: border-box !important;
    }
    .rh-br-desktop { display: none !important; }
    .rh-connected-actions,
    .rh-domicilio-actions {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        margin-top: 1.6rem !important;
    }
    .rh-connected-actions .btn,
    .rh-domicilio-actions .btn {
        width: 100% !important;
        max-width: 320px !important;
        justify-content: center !important;
    }
}

/* ════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 480px)
════════════════════════════════════════════ */
@media (max-width: 480px) {

    .wrap { padding: 0 1rem; }

    /* Topbar: solo teléfono */
    .topbar-left { display: none; }
    .topbar-right { width: 100%; justify-content: center; }

    /* Hero */
    .hero { min-height: 65vh; }
    .hero-inner { padding: 4rem 0 6rem; }
    .hero h1 { font-size: clamp(1.45rem, 7.2vw, 2.1rem); line-height: 1.16; overflow-wrap: break-word; }
    .hero-eyebrow-line::before,
    .hero-eyebrow-line::after { display: none; }

    /* Trust: apilado */
    .trust-items { grid-template-columns: 1fr; }
    .trust-item { border-right: none; border-top: 1px solid var(--light-gray); }
    .trust-item:first-child { border-top: none; }

    /* Specialties tabs */
    .tab-controls { width: 100%; justify-content: center; }
    .tab-btn { padding: .6rem 1.2rem; font-size: .82rem; }

    /* Steps CTA row */
    .steps-cta-row { flex-direction: column; text-align: center; }
    .steps-cta-row .btn { width: 100%; justify-content: center; }

    /* Disciplines: 1 col */
    .disc-grid { grid-template-columns: 1fr; }

    /* Footer */
    .footer-bottom-links { flex-wrap: wrap; }

    /* ── Sobre Nosotros Mobile (≤ 480px) ── */
    .rh-story-content .section-title { font-size: 1.35rem !important; line-height: 1.28 !important; }
    .rh-story-lead { font-size: 1.02rem; }
    .rh-story-text { font-size: 0.94rem; }
    .rh-manifesto-card { padding: 2.2rem 1.2rem; }
    .rh-manifesto-text { font-size: clamp(1.1rem, 4.8vw, 1.35rem); }
    .rh-manifesto-icon { width: 32px; height: 32px; margin-bottom: 0.8rem; }
    .rh-story-features { gap: 0.8rem; }
    .rh-story-feature-item { padding: 0.85rem 0.95rem; }
    .rh-team-name { font-size: 1.15rem; }
    .rh-facility-title { font-size: 1.05rem; }
    
    /* Conectados en Mobile */
    .rh-connected-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 1.6rem !important;
    }
    .rh-connected-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 2.2rem 1.25rem !important;
    }
    .rh-connected-eyebrow {
        font-size: 0.72rem !important;
        letter-spacing: 1.2px !important;
    }
    .rh-connected-title {
        font-size: 1.3rem !important;
        line-height: 1.25 !important;
        margin-bottom: 0.8rem !important;
    }
    .rh-connected-desc {
        font-size: 0.92rem !important;
        line-height: 1.62 !important;
    }
    .rh-connected-actions .btn,
    .rh-domicilio-actions .btn {
        width: 100% !important;
        max-width: 100% !important;
    }
}
