/* =============================================
   ENFERMERÍA EXPRESS — Design System v2
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

/* ── Variables ──────────────────────────────── */
:root {
    --bg:       #FAF8F5;
    --bg-1:     #F3EFE9;
    --bg-2:     #FFFFFF;
    --text:     #1E2C25;
    --muted:    #5A6860;
    --dim:      #8F9C95;
    --accent:   #B86B52;
    --accent2:  #2D4A3E;
    --hover-bg: #EAE3DA;
    --wa:       #276749;
    --border:   #E2DCD3;
    --border-s: #D5CEC2;
    --r:        4px;
    --r-lg:     10px;
    --r-pill:   50px;
    --shadow-sm: 0 2px 12px rgba(30,44,37,.05);
    --shadow-md: 0 8px 28px rgba(30,44,37,.08);
    --shadow-lg: 0 20px 50px rgba(30,44,37,.12);
    --nav-h:    72px;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body:    'Lato', system-ui, sans-serif;
    --ease:     cubic-bezier(.25,.46,.45,.94);
}

/* ── Reset ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── NAVBAR ─────────────────────────────────── */
.site-header { position: relative; z-index: 9999; }

#mainNav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 9999;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 0 3.5rem;
    height: var(--nav-h);
    background: rgba(250,248,245,.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
#mainNav.scrolled {
    box-shadow: 0 4px 24px rgba(30,44,37,.08);
    background: rgba(250,248,245,.98);
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.05rem; font-weight: 600; letter-spacing: .02em;
    color: var(--text); text-decoration: none;
    display: flex; align-items: center; gap: .55rem;
    flex-shrink: 0; justify-self: start;
    line-height: 1.2;
}
.nav-logo-text { text-transform: none; }
.nav-logo-text em {
    font-style: italic; font-weight: 700; color: var(--accent);
}
.nav-logo-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent); flex-shrink: 0;
    animation: dotPulse 3s ease-in-out infinite;
}
@keyframes dotPulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50% { opacity: .6; transform: scale(.75); }
}

.nav-links-wrap { justify-self: center; min-width: 0; }
.nav-links {
    display: flex; align-items: center; gap: 1.5rem;
    list-style: none; flex-wrap: nowrap;
}
.nav-links a {
    font-size: .76rem; font-weight: 700; letter-spacing: .09em;
    color: var(--muted); text-decoration: none; text-transform: uppercase;
    position: relative; transition: color .2s; padding: .25rem 0;
    white-space: nowrap;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 0; height: 1px;
    background: var(--accent); transition: width .3s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:focus-visible {
    outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px;
}

.nav-urgencia {
    display: inline-flex !important; align-items: center; gap: .35rem;
    color: var(--accent) !important;
    border: 1px solid currentColor !important;
    padding: .35rem .9rem !important;
    border-radius: var(--r-pill) !important;
    transition: background .25s, color .25s, border-color .25s !important;
    white-space: nowrap;
}
.nav-urgencia:hover, .nav-urgencia.active {
    background: var(--accent) !important;
    color: #fff !important;
}
.nav-urgencia::after { display: none !important; }

.nav-actions {
    display: flex; align-items: center; gap: .6rem;
    justify-self: end; flex-shrink: 0;
}
.nav-phone { padding: .5rem .85rem !important; font-size: .74rem !important; }

.nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center;
    align-items: center; gap: 5px;
    width: 42px; height: 42px; padding: 0;
    background: transparent; border: 1px solid var(--border-s);
    border-radius: var(--r); cursor: pointer; color: var(--text);
    transition: border-color .2s, background .2s, color .2s;
    -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover { border-color: var(--text); background: var(--hover-bg); }
.nav-toggle:focus-visible {
    outline: 2px solid var(--accent); outline-offset: 2px;
}
.nav-toggle-bar {
    display: block; width: 18px; height: 2px;
    background: currentColor; border-radius: 1px;
    transition: transform .25s var(--ease), opacity .2s, width .25s var(--ease);
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
    opacity: 0; width: 0;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 992px) and (max-width: 1199px) {
    #mainNav { padding: 0 2rem; gap: .75rem; }
    .nav-links { gap: 1.1rem; }
    .nav-links a { font-size: .7rem; letter-spacing: .07em; }
    .nav-phone-text { display: none; }
    .nav-phone { padding: .5rem .65rem !important; }
}

@media (min-width: 1200px) {
    .nav-phone { padding: .55rem 1rem !important; }
}

/* ── BUTTONS ────────────────────────────────── */
.btn-pill, .btn-primary, .btn-secondary, .btn-wa {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    font-family: var(--font-body); font-size: .82rem;
    font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    padding: .7rem 1.75rem; min-height: 44px;
    border-radius: var(--r);
    text-decoration: none;
    transition: all .25s var(--ease);
    white-space: nowrap; cursor: pointer; border: 1px solid transparent;
    -webkit-tap-highlight-color: transparent;
}
.btn-pill-ghost {
    border: 1px solid var(--border-s); background: transparent; color: var(--text);
}
.btn-pill-ghost:hover { border-color: var(--text); background: var(--text); color: #fff; }

.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--text); }
.btn-secondary:hover { background: var(--text); color: var(--bg); }

.btn-wa, .btn-pill-wa { background: var(--wa); color: #fff; border-radius: var(--r-pill); }
.btn-wa:hover, .btn-pill-wa:hover { background: #1B4A33; color: #fff; box-shadow: var(--shadow-md); }
.btn-wa-lg { padding: 1rem 2.5rem; font-size: .9rem; }
.btn-pill-wa { padding: .55rem 1.25rem; font-size: .78rem; }

.btn { /* generic wrapper */
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: var(--font-body); font-size: .82rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; padding: .7rem 1.75rem; min-height: 44px;
    border-radius: var(--r);
    text-decoration: none; cursor: pointer; transition: all .25s; border: 1px solid transparent;
    -webkit-tap-highlight-color: transparent;
}
.btn-outline-secondary {
    background: transparent; color: var(--muted); border-color: var(--border-s);
}
.btn-outline-secondary:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.w-100, .btn-primary.w-100, .btn-wa.w-100, .btn-whatsapp.w-100 { width: 100%; }
.btn-lg { padding: 1rem 2.5rem; font-size: .9rem; }

.btn-whatsapp {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    background: var(--wa); color: #fff;
    font-family: var(--font-body); font-size: .82rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    padding: .7rem 1.75rem; min-height: 44px; border-radius: var(--r);
    text-decoration: none; transition: all .25s; white-space: nowrap;
}
.btn-whatsapp:hover { background: #1B4A33; color: #fff; box-shadow: var(--shadow-md); }
.btn-whatsapp-lg { padding: 1rem 2.5rem; font-size: .9rem; }

.btn-outline-light {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--font-body); font-size: .82rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    padding: .7rem 1.75rem; min-height: 44px; border-radius: var(--r);
    background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55);
    text-decoration: none; transition: all .25s;
}
.btn-outline-light:hover { background: rgba(255,255,255,.15); border-color: #fff; color: #fff; }

/* ── MOBILE MENU ────────────────────────────── */
#mobileMenu {
    position: fixed;
    top: var(--nav-h); right: 0;
    width: min(340px, 90vw);
    height: calc(100dvh - var(--nav-h));
    z-index: 9998;
    background: var(--bg-2);
    border-left: 1px solid var(--border);
    box-shadow: -12px 0 40px rgba(30,44,37,.12);
    transform: translateX(105%);
    transition: transform .32s var(--ease);
    padding: 1rem 1.25rem 1.5rem;
    display: flex; flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
#mobileMenu.open {
    transform: translateX(0);
}
#mobileMenu[hidden] { display: none !important; }

.mobile-menu-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1rem; padding-bottom: .75rem;
    border-bottom: 1px solid var(--border);
}
.mobile-menu-title {
    font-family: var(--font-heading);
    font-size: 1.15rem; font-weight: 600; color: var(--text);
}

.mobile-urgencia {
    display: flex; align-items: center; gap: .85rem;
    margin-bottom: 1.25rem; padding: 1rem 1rem;
    text-decoration: none; color: var(--text);
    background: linear-gradient(135deg, rgba(184,107,82,.12), rgba(184,107,82,.04));
    border: 1px solid rgba(184,107,82,.35);
    border-radius: var(--r-lg);
    transition: background .2s, border-color .2s, transform .2s;
}
.mobile-urgencia:hover {
    background: rgba(184,107,82,.16);
    border-color: var(--accent);
}
.mobile-urgencia.active {
    background: var(--accent); border-color: var(--accent); color: #fff;
}
.mobile-urgencia.active .mobile-urgencia-icon { background: rgba(255,255,255,.2); color: #fff; }
.mobile-urgencia.active small { color: rgba(255,255,255,.85); }
.mobile-urgencia-icon {
    flex-shrink: 0; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(184,107,82,.15); color: var(--accent);
    border-radius: 50%; font-size: 1.1rem;
}
.mobile-urgencia-copy {
    flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem;
}
.mobile-urgencia-copy strong { font-size: .92rem; line-height: 1.3; }
.mobile-urgencia-copy small { font-size: .75rem; color: var(--muted); line-height: 1.35; }
.mobile-urgencia-arrow { color: var(--accent); font-size: 1rem; flex-shrink: 0; }
.mobile-urgencia.active .mobile-urgencia-arrow { color: #fff; }

.mobile-menu-links {
    display: flex; flex-direction: column;
}
.mobile-menu-links a {
    color: var(--muted); text-decoration: none; font-size: .95rem;
    font-weight: 500;
    padding: .9rem 0; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: .65rem;
    transition: color .2s, padding-left .2s;
    -webkit-tap-highlight-color: transparent;
}
.mobile-menu-links a:hover,
.mobile-menu-links a.active {
    color: var(--text); padding-left: .25rem;
}
.mobile-menu-links a i { color: var(--accent); width: 20px; text-align: center; }
.mobile-menu-links a:last-child { border-bottom: none; }

#mobileMenu .menu-actions {
    display: flex; gap: .5rem; margin-top: auto; padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}
#mobileMenu .menu-actions a { flex: 1; justify-content: center; }

/* Overlay */
#menuOverlay {
    position: fixed; inset: 0;
    z-index: 9998;
    background: rgba(30,44,37,.35);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s var(--ease);
}
#menuOverlay.open {
    opacity: 1;
    pointer-events: auto;
}
#menuOverlay[hidden] { display: block !important; opacity: 0; pointer-events: none; }

body.nav-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
    #mainNav, #mobileMenu, #menuOverlay, .nav-toggle-bar, .nav-logo-dot {
        transition: none !important; animation: none !important;
    }
}

/* ── CONTAINER / GRID ───────────────────────── */
.container { max-width: 1240px; margin: 0 auto; width: 100%; padding: 0 24px; }
.row { display: flex; flex-wrap: wrap; margin: -16px; }
.row > * { padding: 16px; }
.align-items-center { align-items: center; }
.align-items-end { align-items: flex-end; }
.col-lg-6 { flex: 0 0 auto; width: 50%; }
.col-lg-5 { flex: 0 0 auto; width: 41.6666%; }
.col-lg-7 { flex: 0 0 auto; width: 58.3333%; }
.col-lg-4 { flex: 0 0 auto; width: 33.3333%; }
.col-md-6 { flex: 0 0 auto; width: 50%; }
.col-md-4 { flex: 0 0 auto; width: 33.3333%; }
.col-md-7 { flex: 0 0 auto; width: 58.3333%; }
.col-md-5 { flex: 0 0 auto; width: 41.6666%; }
.col-4  { flex: 0 0 auto; width: 33.3333%; }
.col-6  { flex: 0 0 auto; width: 50%; }
.col-8  { flex: 0 0 auto; width: 66.6667%; }
.col-12 { flex: 0 0 auto; width: 100%; }
.ms-auto { margin-left: auto; }
.g-4 > * { padding: 1.25rem; }
.g-3 > * { padding: .875rem; }
.g-5 > * { padding: 2rem; }
.g-0 > * { padding: 0; }
.ratio::before { content: ""; display: block; width: 100%; padding-top: 75%; }
.ratio { position: relative; width: 100%; }
.ratio > * { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ── HERO ───────────────────────────────────── */
.hero {
    min-height: 100svh;
    display: flex; flex-direction: column; justify-content: center;
    padding: calc(var(--nav-h) + 5rem) 3.5rem 5rem;
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--bg) 60%, rgba(234,227,218,.55) 100%);
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 80% at 70% 40%, rgba(184,107,82,.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: .72rem; font-weight: 700; letter-spacing: .16em;
    text-transform: uppercase; color: var(--accent);
    margin-bottom: 1.5rem;
    display: inline-flex; align-items: center; gap: .8rem;
}
.hero-eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--accent); }

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 5.5vw, 5rem);
    font-weight: 600;
    letter-spacing: -.02em; line-height: 1.07;
    color: var(--text); margin-bottom: 1.75rem;
}
.hero h1 .hi { font-style: italic; color: var(--accent2); font-weight: 400; }

.hero-desc {
    font-size: 1.08rem; color: var(--muted);
    line-height: 1.8; margin-bottom: 2.5rem;
    max-width: 480px; font-weight: 300;
}

.hero-actions {
    display: flex; gap: 1rem; flex-wrap: wrap;
    margin-bottom: 3rem; align-items: center;
}

.hero-stats {
    display: flex; gap: 2.5rem; align-items: flex-start;
    border-top: 1px solid var(--border); padding-top: 1.75rem;
    flex-wrap: wrap;
}
.hero-stat-num {
    font-family: var(--font-heading);
    font-size: 1.85rem; font-weight: 400; color: var(--accent);
    display: block; line-height: 1; margin-bottom: .4rem;
}
.hero-stat-label {
    font-size: .68rem; color: var(--muted);
    font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}

/* ── FORM CARD ──────────────────────────────── */
.hero-form-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-top: 3px solid var(--text);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    position: relative;
}
.hero-form-card h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem; font-weight: 600; margin-bottom: .4rem;
}
.hero-form-card p { font-size: .95rem; color: var(--muted); margin-bottom: 1.75rem; }

.form-control, .form-select {
    width: 100%; background: transparent;
    border: none; border-bottom: 1px solid var(--border-s);
    border-radius: 0; color: var(--text);
    font-size: .95rem; padding: .75rem 0;
    font-family: inherit;
    transition: border-color .25s;
    -webkit-appearance: none;
}
.form-control:focus, .form-select:focus {
    border-bottom-color: var(--accent); outline: none;
}
.form-label {
    font-size: .7rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--text);
    display: block; margin-bottom: .15rem;
}
.form-group { margin-bottom: 1.4rem; }

/* ── SECTIONS ───────────────────────────────── */
.section { padding: 7rem 3.5rem; }
.section-sm { padding: 5rem 3.5rem; }
.section-dark {
    background: var(--bg-1);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.section-border { border-top: 1px solid var(--border); }

.section-label {
    font-family: var(--font-body);
    font-size: .72rem; font-weight: 700; letter-spacing: .16em;
    text-transform: uppercase; color: var(--accent);
    display: inline-flex; align-items: center; gap: .75rem;
    margin-bottom: 1.25rem;
}
.section-label::before { content: ''; width: 36px; height: 1px; background: var(--accent); }

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    font-weight: 400; letter-spacing: -.01em;
    line-height: 1.1; color: var(--text);
    margin-bottom: 1.25rem;
}
.section-body { font-size: 1.08rem; color: var(--muted); line-height: 1.8; font-weight: 300; }

.section-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--accent); background: rgba(184,107,82,.1);
    border: 1px solid rgba(184,107,82,.3);
    padding: .38rem 1rem; border-radius: 50px;
    margin-bottom: 1.25rem;
}

/* ── SERVICE CARDS ──────────────────────────── */
.service-card {
    display: flex; flex-direction: column;
    background: var(--bg-2);
    border: 1px solid var(--border);
    padding: 2.5rem;
    text-decoration: none; color: inherit;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
    height: 100%;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}
.service-icon { font-size: 1.75rem; margin-bottom: 1.5rem; color: var(--accent); }
.service-card h3 {
    font-family: var(--font-heading); font-size: 1.3rem;
    font-weight: 600; margin-bottom: .85rem;
}
.service-card p {
    font-size: .95rem; color: var(--muted); line-height: 1.75;
    margin-bottom: 1.5rem; font-weight: 300; flex: 1;
}
.service-arrow {
    display: inline-flex; align-items: center; gap: .45rem;
    font-family: var(--font-body); font-size: .75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
    color: var(--text); transition: .3s; margin-top: auto;
}
.service-card:hover .service-arrow { color: var(--accent); transform: translateX(4px); }
.service-arrow i { font-size: .85em; transition: transform .25s var(--ease); }
.service-card:hover .service-arrow i { transform: translateX(3px); }

/* ── SERVICES SECTION (index) ───────────────── */
.services-header {
    display: flex; flex-wrap: wrap; align-items: flex-end;
    justify-content: space-between; gap: 2rem 2.5rem;
    margin-bottom: 3rem;
}
.services-header-copy { flex: 1 1 420px; max-width: 680px; }
.services-intro { margin-bottom: 0; margin-top: .5rem; }
.services-header-actions {
    display: flex; flex-wrap: wrap; gap: .65rem;
    flex-shrink: 0;
}

.services-bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.services-group { margin-bottom: 2.5rem; }
.services-group-head {
    display: flex; flex-wrap: wrap; align-items: baseline;
    justify-content: space-between; gap: .75rem 2rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.services-group-title {
    font-family: var(--font-heading);
    font-size: 1.35rem; font-weight: 600; color: var(--text);
    margin: 0;
}
.services-group-desc {
    font-size: .92rem; color: var(--muted); font-weight: 300;
    margin: 0; max-width: 480px; line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.service-tag {
    display: inline-block;
    font-size: .65rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--accent);
    background: rgba(184,107,82,.1);
    border: 1px solid rgba(184,107,82,.25);
    padding: .28rem .65rem; border-radius: var(--r-pill);
    margin-bottom: 1.25rem;
    align-self: flex-start;
}

.service-card--featured {
    padding: 2rem 2rem 1.75rem;
    min-height: 220px;
}
.service-card--featured .service-card-top {
    display: flex; align-items: flex-start; gap: 1rem;
    margin-bottom: .85rem;
}
.service-card--featured .service-icon {
    margin-bottom: 0; font-size: 1.6rem;
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(184,107,82,.1);
    border-radius: var(--r);
    flex-shrink: 0;
}
.service-card--featured h3 {
    font-size: 1.35rem; margin-bottom: 0;
    line-height: 1.25;
}

.service-card--compact {
    padding: 1.5rem;
    min-height: 200px;
}
.service-card--compact .service-icon {
    font-size: 1.4rem; margin-bottom: 1rem;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(184,107,82,.08);
    border-radius: var(--r);
}
.service-card--compact h3 {
    font-size: 1.1rem; margin-bottom: .5rem;
}
.service-card--compact p {
    font-size: .88rem; margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.services-footer {
    display: flex; flex-wrap: wrap; align-items: center;
    justify-content: space-between; gap: 1.25rem 2rem;
    padding: 1.5rem 1.75rem;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
}
.services-footer-copy {
    display: flex; flex-direction: column; gap: .25rem;
    font-size: .92rem; color: var(--muted); font-weight: 300;
}
.services-footer-copy strong {
    font-family: var(--font-heading);
    font-size: 1.05rem; font-weight: 600; color: var(--text);
}
.services-footer-links {
    display: flex; flex-wrap: wrap; gap: .5rem;
}
.services-footer-link {
    display: inline-flex; align-items: center; gap: .45rem;
    font-size: .75rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; text-decoration: none;
    color: var(--text);
    padding: .6rem 1rem;
    border: 1px solid var(--border-s);
    border-radius: var(--r-pill);
    transition: all .2s var(--ease);
    white-space: nowrap;
}
.services-footer-link:hover {
    border-color: var(--text); background: var(--text); color: #fff;
}
.services-footer-link--urgent {
    color: var(--accent); border-color: var(--accent);
    background: rgba(184,107,82,.06);
}
.services-footer-link--urgent:hover {
    background: var(--accent); border-color: var(--accent); color: #fff;
}

@media (max-width: 1199px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .services-header { margin-bottom: 2rem; }
    .services-header-actions { width: 100%; flex-direction: column; align-items: stretch; gap: 0.75rem; }
    .services-header-actions .btn-secondary,
    .services-header-actions .btn-wa { flex: 1; justify-content: center; width: 100%; margin: 0; }
    .services-bento { grid-template-columns: 1fr; margin-bottom: 2rem; }
    .services-grid { grid-template-columns: 1fr; }
    .services-group-head { flex-direction: column; align-items: flex-start; }
    .services-footer { flex-direction: column; align-items: stretch; }
    .services-footer-links { flex-direction: column; }
    .services-footer-link { justify-content: center; }
}

/* ── BENEFIT LIST ───────────────────────────── */
.benefit-row {
    display: flex; gap: 1.25rem; align-items: flex-start;
    padding: 1.75rem 0; border-bottom: 1px solid var(--border);
}
.benefit-dot {
    width: 22px; height: 22px; border: 1px solid var(--accent); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    margin-top: 4px;
}
.benefit-dot::before { content: ''; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
.benefit-title {
    font-family: var(--font-heading); font-size: 1.2rem;
    font-weight: 600; color: var(--text); margin-bottom: .4rem;
}
.benefit-desc { font-size: .95rem; color: var(--muted); line-height: 1.7; font-weight: 300; }

/* ── STEPS ──────────────────────────────────── */
.step-card {
    background: transparent; border: none;
    border-top: 2px solid var(--border);
    padding: 1.75rem 0; height: 100%; text-align: left;
    transition: border-color .3s;
}
.step-card:hover { border-color: var(--accent); }
.step-num {
    font-family: var(--font-heading); font-size: 2.25rem;
    font-weight: 400; color: var(--accent); display: block; margin-bottom: .4rem;
}
.step-title {
    font-size: 1.25rem; font-family: var(--font-heading);
    font-weight: 600; color: var(--text); margin-bottom: .85rem;
}
.step-desc { font-size: .95rem; color: var(--muted); line-height: 1.7; font-weight: 300; }

/* ── TESTIMONIALS ───────────────────────────── */
.testimonial {
    background: var(--bg-1); border: 1px solid var(--border);
    padding: 2.5rem; height: 100%;
    transition: box-shadow .3s, border-color .3s;
}
.testimonial:hover { box-shadow: var(--shadow-sm); border-color: var(--border-s); }
.testimonial-stars { color: var(--accent); font-size: 1rem; margin-bottom: 1.25rem; letter-spacing: .2em; }
.testimonial-text {
    font-family: var(--font-heading); font-size: 1.1rem;
    color: var(--text); line-height: 1.8;
    margin-bottom: 1.75rem; font-style: italic;
}
.testimonial-name { font-size: .88rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text); }
.testimonial-zone { font-size: .78rem; color: var(--muted); }

/* ── ZONA CHIPS ─────────────────────────────── */
.zona-chip {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    color: var(--text); background: transparent;
    border: 1px solid var(--border-s);
    padding: .65rem 1.25rem; text-decoration: none;
    transition: all .25s; border-radius: var(--r);
    min-height: 44px;
}
.zona-chip i { color: var(--accent); }
.zona-chip:hover { border-color: var(--text); background: var(--text); color: var(--bg); }

/* ── CTA STRIP ──────────────────────────────── */
.cta-strip {
    background: var(--accent2);
    padding: 5rem 3.5rem;
    display: flex; flex-wrap: wrap;
    align-items: center; justify-content: space-between;
    gap: 2.5rem; position: relative; overflow: hidden;
}
.cta-strip::after {
    content: ''; position: absolute; right: -8%; top: -50%;
    width: 45%; height: 200%;
    background: rgba(255,255,255,.03); transform: rotate(15deg);
    pointer-events: none;
}
.cta-strip h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.5vw, 3.25rem);
    font-weight: 400; color: #fff; margin-bottom: .75rem; line-height: 1.1;
}
.cta-strip p { font-size: 1.08rem; color: rgba(255,255,255,.72); font-weight: 300; }
.cta-strip .btn-secondary { color: #fff; border-color: rgba(255,255,255,.45); }
.cta-strip .btn-secondary:hover { background: #fff; color: var(--accent2); border-color: #fff; }

/* ── FOOTER ─────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 5rem 3.5rem 2.5rem; background: var(--bg); }
.footer-top {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem; padding-bottom: 3.5rem;
    border-bottom: 1px solid var(--border); margin-bottom: 2.5rem;
}
.footer-logo {
    font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700;
    letter-spacing: .05em; color: var(--text); margin-bottom: 1.25rem; text-transform: uppercase;
}
.footer-tagline {
    font-size: .95rem; color: var(--muted); line-height: 1.8;
    max-width: 300px; margin-bottom: 1.75rem; font-weight: 300;
}
.footer-col-title {
    font-size: .72rem; font-weight: 700; letter-spacing: .15em;
    text-transform: uppercase; color: var(--text); margin-bottom: 1.5rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .85rem; }
.footer-links a { font-size: .9rem; color: var(--muted); text-decoration: none; transition: color .25s; }
.footer-links a:hover { color: var(--accent); }
.footer-contact-row {
    display: flex; gap: .85rem; font-size: .9rem; color: var(--muted);
    margin-bottom: 1rem; align-items: flex-start;
}
.footer-contact-row i { color: var(--accent); flex-shrink: 0; margin-top: 5px; font-size: .95rem; }
.footer-contact-row a { color: var(--muted); text-decoration: none; transition: color .25s; }
.footer-contact-row a:hover { color: var(--accent); }
.footer-bottom {
    display: flex; justify-content: space-between; flex-wrap: wrap;
    gap: .75rem; font-size: .8rem; color: var(--dim);
    text-transform: uppercase; letter-spacing: .05em;
}

/* ── SEO PAGES ──────────────────────────────── */
.seo-hero {
    padding: calc(var(--nav-h) + 5rem) 3.5rem 5rem;
    background: var(--bg-1);
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.seo-hero--left { text-align: left; }
.seo-hero--left .seo-hero-lead { margin-left: 0; margin-right: 0; }
.seo-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 5.5vw, 4.25rem); font-weight: 400;
    color: var(--text); margin-bottom: 1.25rem;
    line-height: 1.08;
}
.seo-hero h1 .hi { font-style: italic; color: var(--accent); }
.seo-hero-lead {
    font-size: 1.05rem; color: var(--muted); max-width: 520px;
    margin: 1rem auto 1.75rem; line-height: 1.75; font-weight: 300;
}
.seo-hero p { font-size: 1.1rem; color: var(--muted); max-width: 580px; margin: 0 auto; font-weight: 300; }

.btn-pill-round { padding: .8rem 1.75rem !important; border-radius: var(--r-pill) !important; }

.seo-trust-card {
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: 1.75rem;
    text-align: left; box-shadow: var(--shadow-sm);
}
.seo-trust-label {
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; color: var(--muted); margin-bottom: .75rem;
}
.seo-trust-rating {
    font-family: var(--font-heading); font-size: 1.75rem;
    font-weight: 400; color: var(--text); letter-spacing: -.02em;
    margin-bottom: .35rem;
}
.seo-trust-rating span { font-size: .85rem; color: var(--accent); letter-spacing: .05em; }
.seo-trust-meta { font-size: .78rem; color: var(--muted); margin: 0 0 1.25rem; }
.seo-trust-divider { border: none; border-top: 1px solid var(--border); margin: 0 0 1.25rem; }
.seo-trust-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: .5rem;
}
.seo-trust-stats strong {
    display: block; font-family: var(--font-heading);
    font-size: 1.2rem; font-weight: 400; color: var(--text);
}
.seo-trust-stats span { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.seo-trust-stats > div:nth-child(2) {
    border-left: 1px solid var(--border); border-right: 1px solid var(--border);
}

.seo-h2 {
    font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600;
    color: var(--text); margin: 0 0 1rem; letter-spacing: -.01em;
}

/* ── ZONAS HUB (enfermeria-queretaro) ───────── */
.zonas-hub { display: flex; flex-direction: column; gap: 2.5rem; }
.zonas-intro p {
    font-size: 1.05rem; color: var(--muted); line-height: 1.8;
    margin: 0; font-weight: 300;
}

.zonas-principales {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
.zona-card {
    display: flex; align-items: flex-start; gap: 1rem;
    padding: 1.35rem 1.5rem; text-decoration: none; color: inherit;
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: var(--r-lg); transition: all .25s var(--ease);
}
.zona-card:hover {
    border-color: var(--accent); box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.zona-card-icon {
    flex-shrink: 0; width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(184,107,82,.1); color: var(--accent);
    border-radius: var(--r); font-size: 1.2rem;
}
.zona-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .25rem; }
.zona-card-body strong { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; }
.zona-card-body span { font-size: .88rem; color: var(--muted); line-height: 1.5; font-weight: 300; }
.zona-card-arrow { color: var(--accent); margin-top: .35rem; flex-shrink: 0; transition: transform .2s; }
.zona-card:hover .zona-card-arrow { transform: translateX(4px); }

.zonas-map-block {
    display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem;
    align-items: center; padding: 2rem;
    background: var(--bg-1); border: 1px solid var(--border);
    border-radius: var(--r-lg);
}
.zonas-map-copy p { color: var(--muted); font-size: .95rem; line-height: 1.75; margin-bottom: 1.25rem; }
.zonas-map-stats {
    list-style: none; display: flex; gap: 1.5rem; flex-wrap: wrap;
    padding: 0; margin: 0 0 .75rem;
}
.zonas-map-stats li { display: flex; flex-direction: column; gap: .15rem; }
.zonas-map-stats strong {
    font-family: var(--font-heading); font-size: 1.5rem; font-weight: 400; color: var(--text);
}
.zonas-map-stats span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.zonas-map-note { font-size: .75rem; color: var(--dim); margin: 0; line-height: 1.5; }
.zonas-map-embed {
    position: relative;
    border-radius: var(--r); overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 4 / 3;
    min-height: 280px;
    box-shadow: var(--shadow-sm);
    background: var(--bg-1);
}
.zonas-map-embed iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%; border: 0; display: block;
    filter: grayscale(70%) sepia(15%) contrast(90%);
}
.zonas-map-link {
    position: absolute; bottom: .75rem; right: .75rem; z-index: 2;
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .72rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; text-decoration: none;
    color: var(--text); background: rgba(255,255,255,.95);
    border: 1px solid var(--border); padding: .45rem .75rem;
    border-radius: var(--r-pill);
    box-shadow: var(--shadow-sm);
    transition: all .2s;
}
.zonas-map-link:hover {
    border-color: var(--accent); color: var(--accent);
}

.zonas-region-title {
    font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600;
    color: var(--text); margin: 0 0 1rem;
    padding-bottom: .65rem; border-bottom: 1px solid var(--border);
}
.zonas-region { margin-bottom: .5rem; }
.zonas-region-grid {
    display: flex; flex-wrap: wrap; gap: .5rem;
}
.zona-chip--compact {
    padding: .5rem .9rem; min-height: auto;
    font-size: .76rem; letter-spacing: .04em;
    border-radius: var(--r-pill);
}

.zonas-servicios-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem;
}
.zona-servicio-link {
    display: flex; align-items: center; gap: .5rem;
    padding: .85rem 1rem; text-decoration: none; color: var(--text);
    font-size: .82rem; font-weight: 600;
    background: var(--bg-1); border: 1px solid var(--border);
    border-radius: var(--r); transition: all .2s;
}
.zona-servicio-link i { color: var(--accent); }
.zona-servicio-link:hover {
    border-color: var(--accent); background: var(--bg-2);
}

.zonas-pasos {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.zonas-paso {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1.25rem; background: var(--bg-1);
    border: 1px solid var(--border); border-radius: var(--r);
}
.zonas-paso-num {
    font-family: var(--font-heading); font-size: 1.5rem;
    color: var(--accent); line-height: 1; flex-shrink: 0;
}
.zonas-paso strong { display: block; font-size: .92rem; margin-bottom: .25rem; }
.zonas-paso p { font-size: .85rem; color: var(--muted); margin: 0; line-height: 1.55; }

.zonas-cta-inline {
    display: flex; flex-wrap: wrap; align-items: center;
    justify-content: space-between; gap: 1rem 2rem;
    padding: 1.5rem 1.75rem; background: var(--bg-1);
    border: 1px solid var(--border); border-radius: var(--r-lg);
}
.zonas-cta-inline strong { display: block; font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: .25rem; }
.zonas-cta-inline p { margin: 0; font-size: .9rem; color: var(--muted); }

@media (max-width: 991px) {
    .zonas-principales { grid-template-columns: 1fr; }
    .zonas-map-block { grid-template-columns: 1fr; padding: 1.5rem; }
    .zonas-servicios-grid { grid-template-columns: repeat(2, 1fr); }
    .zonas-pasos { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .seo-hero--left { text-align: left; }
    .seo-hero-lead { max-width: 100%; }
    .zonas-servicios-grid { grid-template-columns: 1fr; }
    .zonas-cta-inline { flex-direction: column; align-items: stretch; }
    .zonas-cta-inline .d-flex { flex-direction: column; }
    .zonas-cta-inline .btn-wa,
    .zonas-cta-inline .btn-secondary { justify-content: center; }
}

/* ── FAB WHATSAPP ───────────────────────────── */
.fab-wa {
    position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 9990;
    background: var(--wa); color: #fff;
    border-radius: 50px; padding: .78rem 1.35rem;
    display: inline-flex; align-items: center; gap: .55rem;
    text-decoration: none; font-size: .8rem; font-weight: 700;
    font-family: var(--font-body); text-transform: uppercase; letter-spacing: .08em;
    box-shadow: 0 4px 20px rgba(39,103,73,.35);
    transition: all .3s var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.fab-wa:hover { background: #1B4A33; transform: translateY(-3px); box-shadow: 0 8px 28px rgba(39,103,73,.4); }
.fab-wa i { font-size: 1.15rem; }

/* ── CARD ───────────────────────────────────── */
.card {
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: var(--r-lg); overflow: hidden;
}
.card-body { padding: 1.75rem; display: flex; flex-direction: column; height: 100%; }

/* ── SIDEBAR / CONTACT CARDS ────────────────── */
.sidebar-card {
    background: var(--bg-2); border: 1px solid var(--border);
    border-top: 3px solid var(--accent); padding: 1.75rem;
}
.sidebar-card h5 {
    font-family: var(--font-heading); font-size: 1.15rem;
    font-weight: 600; color: var(--text); margin-bottom: 1.25rem;
}
.contact-card {
    background: var(--bg-2); border: 1px solid var(--border);
    border-top: 4px solid var(--text); padding: 2.5rem;
}
.contact-card h3 {
    font-family: var(--font-heading); font-size: 1.45rem; font-weight: 600;
    color: var(--text); margin-bottom: .4rem;
}

/* ── CTA SECTION (interior) ─────────────────── */
.cta-section {
    background: var(--accent2); padding: 4rem 3rem;
    border-radius: var(--r-lg); text-align: center;
    position: relative; overflow: hidden;
}
.cta-section::after {
    content: ''; position: absolute; right: -5%; top: -60%;
    width: 40%; height: 220%;
    background: rgba(255,255,255,.04); transform: rotate(18deg); pointer-events: none;
}
.cta-section h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 400; color: #fff; margin-bottom: .65rem; line-height: 1.2;
}
.cta-section p { color: rgba(255,255,255,.8); font-weight: 300; margin-bottom: 1.5rem; font-size: 1rem; }

/* ── HERO CARD ──────────────────────────────── */
.hero-card {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    padding: 1.75rem 2rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--r-lg);
}
.hero-card h5 {
    font-family: var(--font-heading); font-size: 1.15rem;
    font-weight: 600; color: #fff; margin-bottom: .85rem;
}

/* ── BREADCRUMB ─────────────────────────────── */
.breadcrumb-bar {
    padding: .6rem 3.5rem;
    background: var(--bg-1); border-bottom: 1px solid var(--border);
}
.breadcrumb-bar .container { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; list-style: none; }
.breadcrumb-item { font-size: .76rem; color: var(--muted); }
.breadcrumb-item + .breadcrumb-item::before { content: '/'; margin: 0 .45rem; color: var(--dim); }
.breadcrumb-item.active { color: var(--dim); }
.breadcrumb-item a { color: var(--muted); text-decoration: none; transition: color .2s; }
.breadcrumb-item a:hover { color: var(--accent); }

/* ── FAQ ────────────────────────────────────── */
.faq-section { border-top: 1px solid var(--border); }
.faq-item    { border-bottom: 1px solid var(--border); }
.faq-btn {
    width: 100%; background: none; border: none; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.25rem 0; text-align: left;
    font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600;
    color: var(--text); transition: color .2s;
    min-height: 48px;
}
.faq-btn:hover, .faq-btn.open { color: var(--accent); }
.faq-btn .icon { font-size: 1.2rem; flex-shrink: 0; transition: transform .3s; margin-left: 1rem; }
.faq-btn.open .icon { transform: rotate(45deg); }
.faq-body { display: none; padding: 0 0 1.25rem; font-size: .95rem; color: var(--muted); line-height: 1.8; }
.faq-body.open { display: block; }

/* ── CHECK LIST ─────────────────────────────── */
.check-list { list-style: none; padding: 0; }
.check-list li {
    position: relative; padding-left: 1.5rem;
    margin-bottom: .6rem; font-size: .95rem; color: var(--muted); line-height: 1.65;
}
.check-list li::before {
    content: ''; position: absolute; left: 0; top: .55rem;
    width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}

/* ── ACCORDION ──────────────────────────────── */
.accordion-item {
    border: 1px solid var(--border); border-radius: var(--r-lg);
    margin-bottom: .65rem; overflow: hidden;
}
.accordion-button {
    width: 100%; background: var(--bg-2); border: none; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.2rem 1.5rem; text-align: left;
    font-family: var(--font-body); font-size: .95rem; font-weight: 600;
    color: var(--text); transition: all .2s; min-height: 48px;
}
.accordion-button::after {
    content: '+'; font-size: 1.4rem; font-weight: 300; line-height: 1;
    flex-shrink: 0; margin-left: 1rem; transition: transform .3s;
}
.accordion-button:not(.collapsed) { color: var(--accent); background: var(--bg-1); }
.accordion-button:not(.collapsed)::after { transform: rotate(45deg); }
.accordion-collapse { display: none; }
.accordion-collapse.show { display: block; }
.accordion-body { padding: 1.25rem 1.5rem; font-size: .92rem; color: var(--muted); line-height: 1.8; background: var(--bg-1); }

/* ── SPACING ────────────────────────────────── */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-3 { margin-top: 1rem; }
.mt-auto { margin-top: auto; }
.me-2 { margin-right: .5rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.px-3 { padding-left: 1rem; padding-right: 1rem; }
.p-4  { padding: 1.75rem; }
.pb-5 { padding-bottom: 3rem; }
.g-3  { gap: 1rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: 1rem; }

/* ── TYPOGRAPHY UTILS ───────────────────────── */
.small        { font-size: .875rem; line-height: 1.6; }
.fw-bold      { font-weight: 700; }
.fw-semibold  { font-weight: 600; }
.fs-4         { font-size: 1.5rem; }
.fs-5         { font-size: 1.1rem; }
.text-muted   { color: var(--muted); }
.text-white   { color: #fff; }
.text-center  { text-align: center; }
.text-md-end  { text-align: right; }
.text-primary { color: var(--accent2) !important; }
.text-success { color: var(--wa) !important; }
.text-danger  { color: #c62828 !important; }

/* ── LAYOUT UTILS ───────────────────────────── */
.d-none { display: none !important; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }
.flex-lg-row-reverse { flex-direction: row-reverse; }
.justify-content-center { justify-content: center; }
.h-100 { height: 100%; }
.w-100 { width: 100%; }
.sticky-top { position: sticky; top: calc(var(--nav-h) + 1rem); }
.overflow-hidden { overflow: hidden; }
.flex-shrink-0 { flex-shrink: 0; }

/* ── COLOR UTILS ────────────────────────────── */
.bg-white { background: #fff; }
.bg-light { background: var(--bg-1); }
.bg-primary-soft { background: rgba(45,74,62,.08); }
.bg-success-soft { background: rgba(39,103,73,.08); }
.rounded-xl { border-radius: var(--r-lg); }
.shadow-sm  { box-shadow: var(--shadow-sm); }
.border-0   { border: none !important; }
.border-bottom { border-bottom: 1px solid var(--border); }
.display-1  { font-family: var(--font-heading); font-size: clamp(4rem, 10vw, 7rem); font-weight: 400; color: var(--accent); line-height: 1; }

/* ── RESPONSIVE: Tablet (≤991px) ───────────── */
@media (max-width: 991px) {
    :root { --nav-h: 68px; }
    #mainNav {
        padding: 0 2rem;
        display: flex;
        justify-content: space-between;
    }
    .nav-links-wrap { display: none; }
    .hero { padding: calc(var(--nav-h) + 3.5rem) 2rem 3.5rem; }
    .hero-stats { gap: 1.5rem; }
    .section { padding: 5.5rem 2rem; }
    .section-sm { padding: 4rem 2rem; }
    .seo-hero { padding: calc(var(--nav-h) + 3.5rem) 2rem 4rem; }
    .footer { padding: 4rem 2rem 2rem; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 3rem; }
    .cta-strip { padding: 4rem 2rem; flex-direction: column; align-items: flex-start; }
    .breadcrumb-bar { padding: .6rem 2rem; }
}

/* ── RESPONSIVE: Mobile (≤767px) ───────────── */
@media (max-width: 767px) {
    :root { --nav-h: 64px; }
    #mainNav { padding: 0 1.25rem; }

    /* Hero */
    .hero { padding: calc(var(--nav-h) + 2.5rem) 1.25rem 3rem; min-height: auto; }
    .hero h1 { font-size: clamp(2.1rem, 8vw, 3rem); margin-bottom: 1.25rem; }
    .hero-desc { font-size: 1rem; margin-bottom: 2rem; max-width: 100%; }
    .hero-actions { gap: .75rem; }
    .hero-actions .btn-pill, .hero-actions .btn-primary, .hero-actions .btn-secondary {
        width: 100%; justify-content: center;
    }
    .hero-stats {
        display: grid; grid-template-columns: 1fr 1fr;
        gap: 1.25rem; padding-top: 1.5rem;
    }
    .hero-stat-num { font-size: 1.6rem; }

    /* Grid */
    .col-lg-6, .col-lg-5, .col-lg-7,
    .col-md-6, .col-md-4, .col-md-7, .col-md-5,
    .col-lg-4, .col-4, .col-8 { width: 100%; flex: 0 0 auto; }
    .row { margin: -10px; }
    .row > * { padding: 10px; }
    .flex-lg-row-reverse { flex-direction: column; }
    .text-md-end { text-align: left; }

    /* Sections */
    .section { padding: 4rem 1.25rem; }
    .section-sm { padding: 3rem 1.25rem; }
    .section-title { font-size: clamp(1.9rem, 7vw, 2.6rem); }
    .seo-hero { padding: calc(var(--nav-h) + 2.5rem) 1.25rem 3rem; }
    .seo-hero h1 { font-size: clamp(2rem, 8vw, 3rem); }

    /* Cards */
    .hero-form-card { padding: 2rem 1.25rem; }
    .service-card { padding: 1.75rem; }
    .testimonial { padding: 1.75rem; }
    .contact-card { padding: 1.75rem; }
    .cta-section { padding: 2.5rem 1.5rem; }

    /* Service grid: 2 columns on wider phones */
    @media (min-width: 480px) {
        .col-lg-4 { width: 50% !important; }
    }

    /* Footer */
    .footer { padding: 3.5rem 1.25rem 2rem; }
    .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-tagline { max-width: 100%; }
    .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }

    /* CTA strip */
    .cta-strip { padding: 3.5rem 1.25rem; }

    /* Breadcrumb */
    .breadcrumb-bar { padding: .55rem 1.25rem; }

    /* Form card */
    .form-control, .form-select { font-size: 1rem; } /* prevent iOS zoom */

    /* FAB — icono sólo en móvil */
    .fab-wa { border-radius: 50%; width: 52px; height: 52px; padding: 0; justify-content: center; bottom: 1.25rem; right: 1.25rem; }
    .fab-wa span { display: none; }
    .fab-wa i { font-size: 1.3rem; }

    /* Benefit rows */
    .benefit-row { gap: 1rem; padding: 1.4rem 0; }
    .benefit-title { font-size: 1.1rem; }

    /* Steps: horizontal scroll */
    .col-md-4 { width: 100%; }

    /* CTA strip: full-width buttons */
    .cta-strip .btn-wa, .cta-strip .btn-secondary { width: 100%; justify-content: center; }
}

/* ── RESPONSIVE: Small phones (≤400px) ─────── */
@media (max-width: 400px) {
    .hero h1 { font-size: 1.9rem; }
    .section-title { font-size: 1.75rem; }
    .nav-logo { font-size: .95rem; }
    .nav-logo-text em { display: inline; }
}

/* ── RESPONSIVE: show/hide helpers ─────────── */
@media (min-width: 576px)  { .d-sm-inline { display: inline !important; } }
@media (min-width: 768px)  { .d-md-inline-flex { display: inline-flex !important; } }
@media (min-width: 992px)  { .d-lg-none { display: none !important; } }
@media (max-width: 991px)  { .d-md-none { display: none !important; } }

/* ── PREMIUM AESTHETICS & UI/UX REFINEMENT ─── */

/* Premium hover effects */
.btn-primary, .btn-secondary, .btn-wa, .service-card, .testimonial {
    transition: transform .3s cubic-bezier(.25,.46,.45,.94), box-shadow .3s cubic-bezier(.25,.46,.45,.94), border-color .3s ease, background-color .3s ease;
}
.btn-primary:hover, .btn-secondary:hover, .btn-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30,44,37,.15);
}
.service-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 16px 40px rgba(30,44,37,.1);
}

/* Micro-animations for buttons */
.btn-primary:active, .btn-secondary:active, .btn-wa:active {
    transform: translateY(1px);
    box-shadow: 0 4px 12px rgba(30,44,37,.1);
}

/* Form disclaimers */
.form-disclaimer {
    font-size: .75rem; color: var(--dim); text-align: center; margin-top: 1rem; margin-bottom: 0;
    display: flex; align-items: center; justify-content: center; gap: .35rem;
}

/* Testimonial Avatar */
.testimonial-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--hover-bg), var(--border));
    border: 1px solid var(--border-s); color: var(--accent);
    font-size: .95rem; flex-shrink: 0; font-family: var(--font-heading);
    font-weight: 700; display: flex; align-items: center; justify-content: center;
}

/* Maps container */
.map-container {
    border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
    box-shadow: var(--shadow-md); transition: box-shadow .3s var(--ease);
}
.map-container:hover { box-shadow: var(--shadow-lg); }
.map-iframe {
    border: 0; filter: grayscale(40%) sepia(10%) saturate(80%);
    transition: filter .5s var(--ease);
}
.map-container:hover .map-iframe { filter: grayscale(0%) sepia(0%) saturate(100%); }

/* ── URGENCY SECTION (Atención Inmediata) ──── */
.urgency-section {
    background: linear-gradient(135deg, var(--accent2) 0%, #1a2f26 100%);
    border-color: transparent;
    color: #fff;
    position: relative; overflow: hidden;
}
.urgency-section::before {
    content: ''; position: absolute; top: -50%; right: -20%; width: 60%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    pointer-events: none;
}
.urgency-label {
    display: inline-flex; align-items: center; gap: .75rem;
    font-size: .75rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
    color: rgba(255,255,255,.65); margin-bottom: 1.5rem;
}
.urgency-label span { width: 36px; height: 1px; background: rgba(255,255,255,.4); }
.urgency-title {
    font-family: var(--font-heading); font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 400; line-height: 1.1; margin-bottom: 1.25rem;
}
.urgency-title .hi { font-style: italic; color: rgba(255,255,255,.75); font-weight: 300; }
.urgency-desc {
    font-size: 1.15rem; color: rgba(255,255,255,.75); line-height: 1.8;
    font-weight: 300; margin-bottom: 3rem; max-width: 520px;
}

.urgency-steps { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 3rem; }
.urgency-step { display: flex; gap: 1.25rem; align-items: flex-start; }
.urgency-step-icon {
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: #fff; font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.urgency-step-text { flex: 1; }
.urgency-step-num {
    font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: rgba(255,255,255,.5); margin-bottom: .25rem;
}
.urgency-step-title { font-weight: 600; font-size: 1.05rem; margin-bottom: .25rem; }
.urgency-step-desc { font-size: .9rem; color: rgba(255,255,255,.6); line-height: 1.6; }

.btn-urgency-action {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    background: #fff; color: var(--accent2); font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; padding: 1rem 2.5rem; font-size: .9rem;
    border-radius: var(--r); text-decoration: none;
    transition: all .3s var(--ease);
}
.btn-urgency-action:hover {
    background: var(--hover-bg); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

.urgency-card {
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
    padding: 3rem 2.5rem; border-radius: var(--r-lg); backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0,0,0,.2);
}
.urgency-map-preview {
    background: rgba(0,0,0,.3); border-radius: var(--r); overflow: hidden;
    margin-bottom: 2rem; position: relative; height: 180px;
    display: flex; align-items: center; justify-content: center;
}
.urgency-map-bg {
    position: absolute; inset: 0; background: url('../img/map-preview.png') center/cover no-repeat; opacity: .15;
}
.urgency-map-content { position: relative; z-index: 2; text-align: center; }
.urgency-map-pin {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin: 0 auto .75rem;
    box-shadow: 0 0 0 8px rgba(184,107,82,.25), 0 0 0 16px rgba(184,107,82,.1);
    animation: pinPulse 2s infinite;
}
@keyframes pinPulse {
    0% { box-shadow: 0 0 0 0 rgba(184,107,82,.4); }
    70% { box-shadow: 0 0 0 15px rgba(184,107,82,0); }
    100% { box-shadow: 0 0 0 0 rgba(184,107,82,0); }
}
.urgency-map-label {
    font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: rgba(255,255,255,.7);
}

.urgency-stats {
    display: grid; grid-template-columns: repeat(3,1fr); gap: .75rem; margin-bottom: 2rem;
}
.urgency-stat-box {
    text-align: center; padding: 1rem .5rem; background: rgba(255,255,255,.05); border-radius: var(--r);
}
.urgency-stat-num {
    font-family: var(--font-heading); font-size: 1.35rem; font-weight: 600; line-height: 1; margin-bottom: .4rem;
}
.urgency-stat-label {
    font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.5);
}

.urgency-services-label {
    font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: rgba(255,255,255,.5); margin-bottom: 1rem;
}
.urgency-services-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.urgency-chip {
    font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: rgba(255,255,255,.8); background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.15);
    padding: .4rem .85rem; border-radius: var(--r-pill);
    transition: background .2s;
}
.urgency-chip:hover { background: rgba(255,255,255,.15); }

.urgency-divider { height: 1px; background: rgba(255,255,255,.1); margin: 2rem 0; }
.btn-wa-block { width: 100%; justify-content: center; padding: 1rem; font-size: .95rem; }

/* Mobile responsiveness for new urgency section */
@media (max-width: 991px) {
    .urgency-section { padding: 4rem 1.25rem; }
    .urgency-card { padding: 2rem 1.5rem; margin-top: 2rem; }
    .urgency-stats { gap: .5rem; }
    .urgency-stat-num { font-size: 1.15rem; }
    .btn-urgency-action { width: 100%; }
}
