/* SMPAS — propuesta FullWidth */
:root {
  --brand: #14504f;          /* verde azulado oscuro de la marca (títulos, fondos) */
  --deep: #0b3536;
  --brand-soft: #e4f2f2;
  --accent: #1f6b6b;         /* verde azulado SMPAS (#1F6B6B): botones y texto sobre blanco (AA) */
  --accent-dark: #14504f;
  --mint: #5fd3dd;           /* turquesa claro: solo sobre fondo oscuro */
  --accent-soft: #dff1f2;
  --ink: #14262a;
  --muted: #4e6165;
  --bg: #ffffff;
  --bg-tint: #f3f8f8;
  --line: #dce8e8;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 12px 32px -14px rgba(11, 53, 54, .28);
  --shadow-lg: 0 28px 64px -24px rgba(11, 53, 54, .45);
  --font-display: "Outfit", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.015em; font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h3 { font-size: 1.22rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 52px; padding: .8em 1.5em; border-radius: 999px; font: 700 1rem/1.1 var(--font-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 12px 24px -10px rgba(31, 107, 107, .7); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand); }
.btn-outline-light { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-outline-light:hover { background: #fff; color: var(--brand); }
.btn-text { background: none; color: var(--muted); padding-inline: .8em; }
.btn-sm { min-height: 44px; padding: .6em 1.15em; font-size: .95rem; }
.btn svg { flex: none; }

/* Barra superior */
.topbar { background: var(--deep); color: #cfe6e6; font-size: .9rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar p { margin: 0; display: flex; align-items: center; gap: 6px; }
.topbar-contact { gap: 20px !important; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.topbar a:hover { color: var(--mint); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0, 0, 0, .45); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--brand); }
.brand img { width: 56px; height: 56px; border-radius: 0; }
.brand-text { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; line-height: .95; display: flex; flex-direction: column; color: var(--brand); }
.brand-text small { font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a { color: var(--ink); text-decoration: none; font-weight: 500; position: relative; padding: 6px 0; }
.main-nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--accent); transform: scaleX(0); transition: transform .2s; }
.main-nav ul a:hover::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 48px; height: 48px; border: 0; background: var(--brand-soft); border-radius: 14px; cursor: pointer; padding: 13px 12px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 3px; border-radius: 3px; background: var(--brand); transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(120% 90% at 85% 10%, #2b8a8a 0%, transparent 55%), linear-gradient(160deg, var(--brand) 0%, var(--deep) 100%); padding: clamp(48px, 7vw, 88px) 0 clamp(110px, 12vw, 150px); }
.hero-cross { position: absolute; width: 360px; height: 360px; left: -110px; bottom: -120px; fill: rgba(95, 211, 221, .08); transform: rotate(12deg); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); padding: 6px 14px; border-radius: 999px; font-size: .92rem; font-weight: 500; color: #e6f6f6; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(95, 211, 221, .25); flex: none; }
.status-dot.is-open { background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .25); }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); font-weight: 800; margin: 18px 0 18px; }
.hl { color: var(--mint); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.2rem); color: #d5ecec; max-width: 34em; }
.lead strong { color: #fff; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.rating-chip { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: .98rem; }
.rating-chip:hover { color: #fff; }
.rating-chip .stars { color: #ffc93c; letter-spacing: 2px; }
.hero-media { position: relative; margin: 0; }
.photo-frame { border-radius: var(--radius); overflow: hidden; border: 6px solid rgba(255, 255, 255, .95); box-shadow: var(--shadow-lg); transform: rotate(1.5deg); }
.photo-frame img { width: 100%; aspect-ratio: 554 / 388; object-fit: cover; }
.float-card { position: absolute; left: -22px; bottom: -26px; display: flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); padding: 12px 18px 12px 12px; border-radius: 18px; box-shadow: var(--shadow-lg); font-size: .95rem; line-height: 1.25; }
.float-card strong { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--brand); }
.float-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.float-icon svg { width: 24px; height: 24px; }

/* Highlights */
.highlights { position: relative; z-index: 2; margin: -64px 0 0; padding: 22px; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.highlights li { display: flex; align-items: center; gap: 14px; padding: 10px 14px; line-height: 1.3; font-size: .95rem; color: var(--muted); }
.highlights li + li { border-left: 1px solid var(--line); }
.highlights svg { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); flex: none; }
.highlights strong { display: block; font-family: var(--font-display); font-size: 1.12rem; color: var(--brand); font-weight: 600; }

/* Secciones */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tint { background: var(--bg-tint); }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head p:last-child { color: var(--muted); font-size: 1.1rem; }
.kicker { display: inline-block; font: 600 .82rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.kicker-light { color: var(--mint); }
.summary { font-size: 1.12rem; color: var(--muted); }

/* Servicios */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 24px 20px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); margin-bottom: 16px; transition: background-color .25s, color .25s; }
.card:hover .card-icon { background: var(--accent); color: #fff; }
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.12rem; color: var(--brand); }
.card p { font-size: .95rem; color: var(--muted); margin: 0; }
.cards-cta { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin-top: 36px; }
.cards-cta p { margin: 0; font-weight: 500; }

/* Domicilio */
.domicilio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: none; }
.how li { display: flex; gap: 18px; align-items: flex-start; background: #fff; border-radius: var(--radius-sm); padding: 22px; box-shadow: var(--shadow); }
.how h3 { margin-bottom: .2em; color: var(--brand); }
.how p { margin: 0; color: var(--muted); }
.how-num { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font: 700 1.2rem/1 var(--font-display); flex: none; }
.how li:nth-child(2) .how-num { background: var(--accent); }
.how li:nth-child(3) .how-num { background: var(--deep); }

/* Nosotros */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.about-media { margin: 0; position: relative; }
.about-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.3; object-fit: cover; object-position: 60% center; }
.about-media::before { content: ""; position: absolute; inset: 24px -18px -18px 24px; border-radius: var(--radius); background: var(--accent-soft); z-index: -1; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--accent); color: #fff; flex: none; margin-top: 2px; }
.team-title { font-size: 1.1rem; color: var(--brand); margin-bottom: 14px; }
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.team li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; line-height: 1.25; font-size: .9rem; color: var(--muted); }
.team strong { display: block; color: var(--ink); font-size: 1rem; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font: 700 1rem/1 var(--font-display); flex: none; }
.team li:nth-child(even) .avatar { background: var(--accent); }

/* Opiniones */
.reviews { display: grid; grid-template-columns: .9fr 1fr 1fr 1fr; gap: 18px; align-items: stretch; }
.rating { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 30px 26px; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.rating p { margin: 0 0 6px; }
.rating-num { font: 800 4rem/1 var(--font-display); }
.rating .stars { color: #ffc93c; font-size: 1.4rem; letter-spacing: 3px; }
.link-arrow { color: #fff; font-weight: 700; margin-top: 12px; }
.link-arrow:hover { color: var(--mint); }
.review { margin: 0; background: #fff; border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.review::before { content: "“"; position: absolute; top: 4px; right: 20px; font: 800 5rem/1 var(--font-display); color: var(--accent-soft); }
.review p { position: relative; font-size: 1.02rem; }
.review footer { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.review cite { font-style: normal; font-weight: 400; color: var(--muted); }

/* Turnos */
.section-brand { background: linear-gradient(150deg, var(--brand) 0%, var(--deep) 100%); color: #fff; position: relative; overflow: hidden; }
.section-brand h2 { color: #fff; }
.section-brand .turnos-copy > p { color: #d5ecec; font-size: 1.1rem; }
.turnos-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.steps-legend { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 12px; counter-reset: s; }
.steps-legend li { counter-increment: s; display: flex; align-items: center; gap: 14px; font-weight: 500; color: #9fc9c9; transition: color .2s; }
.steps-legend li::before { content: counter(s); width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); display: grid; place-items: center; font: 700 1rem/1 var(--font-display); transition: background-color .2s, border-color .2s; }
.steps-legend li.is-active { color: #fff; }
.steps-legend li.is-active::before { background: var(--accent); border-color: var(--accent); }
.steps-legend li.is-done::before { content: "✓"; background: rgba(255, 255, 255, .15); border-color: transparent; }
.urgent { display: flex; gap: 12px; align-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); border-radius: var(--radius-sm); padding: 14px 18px; margin: 0; color: #fff; }
.urgent svg { color: var(--mint); flex: none; }
.urgent a { color: #fff; font-weight: 700; }
.quote-form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: clamp(24px, 4vw, 38px); box-shadow: var(--shadow-lg); }
.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step legend { font: 700 1.45rem/1.2 var(--font-display); color: var(--brand); margin-bottom: 18px; padding: 0; }
.quote-form label:not(.option), .group-label { display: block; font-weight: 700; margin: 18px 0 6px; font-size: .97rem; }
.opt { font-weight: 400; color: var(--muted); }
.quote-form input:not([type=radio]), .quote-form textarea { width: 100%; font: inherit; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg-tint); color: var(--ink); transition: border-color .2s, background-color .2s; }
.quote-form input:focus, .quote-form textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(31, 107, 107, .14); }
.quote-form [aria-invalid="true"] { border-color: #c62828 !important; }
.options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.options-col { grid-template-columns: 1fr 1fr; }
.option { position: relative; cursor: pointer; }
.option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.option span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 600; font-size: .96rem; transition: border-color .2s, background-color .2s, color .2s; }
.option:hover span { border-color: var(--brand); }
.option input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.option input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.step-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.fw-field-error, .options-error { display: block; color: #c62828; font-size: .88rem; margin-top: 6px; font-weight: 600; }
.fw-form-status { margin: 14px 0 0; font-weight: 600; color: var(--brand); min-height: 1.2em; }
.fw-form-status:empty { margin: 0; }
.fw-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Ubicación */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.location-card { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: start; margin: 8px 0 6px; }
.location-card img { border-radius: var(--radius-sm); box-shadow: var(--shadow); aspect-ratio: 383 / 510; object-fit: cover; }
.address { font-style: normal; display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.address svg, .contact-list svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 3px; }
.contact-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; line-height: 1.35; font-size: .95rem; color: var(--muted); }
.contact-list a { font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.note { font-size: .92rem; color: var(--muted); margin: 0; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 8px solid #fff; background: var(--brand-soft); }
.map iframe { display: block; width: 100%; height: 500px; border: 0; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 22px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 700; font-size: 1.06rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font: 700 1.3rem/1 var(--font-display); }
.faq details[open] summary::after { content: "–"; background: var(--accent); color: #fff; }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* Footer */
.site-footer { background: var(--deep); color: #c3dede; padding: 64px 0 0; font-size: .97rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--mint); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1fr; gap: 32px; }
.footer-title { font-size: 1.12rem; color: #fff; margin-bottom: 12px; }
.site-footer address { font-style: normal; }
.brand-footer { margin-bottom: 14px; }
.brand-footer .brand-text { color: #fff; }
.brand-footer .brand-text small { color: var(--mint); }
.social { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 48px; padding: 22px 0 96px; font-size: .9rem; }
.footer-bottom p { margin: 0; }

/* Flotantes */
.floating { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 12px; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s; }
.floating.is-visible, .no-js .floating { opacity: 1; transform: none; pointer-events: auto; }
.fab { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; color: #fff; box-shadow: 0 12px 26px -8px rgba(0, 0, 0, .45); transition: transform .2s; }
.fab:hover { transform: scale(1.07); color: #fff; }
.fab-wa { background: #25d366; color: #073b1c; }
.fab-wa:hover { color: #073b1c; }
.fab-call { background: var(--brand); display: none; }

/* Animaciones */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav ul { gap: 16px; }
}
@media (max-width: 940px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: flex; }
  .main-nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 16px; background: #fff; padding: 20px 16px 28px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .3); transform: translateY(-120%); visibility: hidden; transition: transform .3s ease, visibility .3s; }
  .site-header.is-scrolled .main-nav, .main-nav { top: var(--header-h); }
  .main-nav.is-open { transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .main-nav ul a::after { display: none; }
  .main-nav .btn { min-height: 52px; }
  .hero-grid, .about-grid, .turnos-grid, .location-grid, .domicilio-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 600px; margin: 8px auto 16px; width: 100%; }
  .highlights { grid-template-columns: 1fr 1fr; }
  .highlights li:nth-child(3) { border-left: 0; }
  .fab-call { display: grid; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .topbar-inner > p:first-child { display: none; }
  .topbar-inner { justify-content: center; }
  .cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card { padding: 18px 16px; }
  .reviews, .footer-grid, .team { grid-template-columns: 1fr; }
  .highlights { grid-template-columns: 1fr; padding: 10px 14px; }
  .highlights li + li { border-left: 0; border-top: 1px solid var(--line); }
  .hero-ctas .btn { width: 100%; }
  .float-card { left: 8px; bottom: -22px; }
  .photo-frame { transform: rotate(1deg); }
  .location-card { grid-template-columns: 1fr; }
  .location-card img { max-width: 200px; }
  .map iframe { height: 340px; }
  .options-col { grid-template-columns: 1fr; }
  .step-actions .btn-primary { flex: 1; }
  .fab { width: 56px; height: 56px; }
}
@media (max-width: 400px) {
  .cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== SMPAS: ajustes de marca y bloques propios ===== */
.hero .btn-primary, .section-brand .btn-primary, .page-hero .btn-primary { background: var(--mint); color: var(--deep); box-shadow: 0 12px 24px -10px rgba(95, 211, 221, .55); }
.hero .btn-primary:hover, .section-brand .btn-primary:hover, .page-hero .btn-primary:hover { background: #fff; color: var(--deep); }
.section-brand .quote-form .btn-primary { background: var(--accent); color: #fff; box-shadow: 0 12px 24px -10px rgba(31, 107, 107, .7); }
.section-brand .quote-form .btn-primary:hover { background: var(--accent-dark); color: #fff; }
h1, h2 { text-wrap: balance; }
.hero-media .photo-frame img { aspect-ratio: 3 / 2; object-position: 30% center; }
.highlights svg { background: var(--accent-soft); }
.logo-card { background: #fff; border-radius: 10px; }

/* Aseguradoras */
.insurers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.insurers li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); width: 176px; height: 84px; display: grid; place-items: center; padding: 14px 18px; }
.insurers img { max-height: 48px; width: auto; max-width: 100%; object-fit: contain; }
.insurers-note { text-align: center; color: var(--muted); font-size: .95rem; margin: 22px auto 0; max-width: 620px; }

/* Nosotros */
.about-media img { aspect-ratio: 1 / 1; object-position: center 20%; }
.about-name { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.about-name strong { font-family: var(--font-display); color: var(--brand); font-size: 1.15rem; display: block; line-height: 1.2; }
.about-name span { color: var(--muted); font-size: .95rem; }

/* Servicios: tarjeta entera clickeable */
.cards { grid-template-columns: repeat(4, 1fr); }
.card { position: relative; display: flex; flex-direction: column; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card h3 a:focus-visible { outline: none; }
.card:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.card-more { margin-top: auto; padding-top: 14px; font-weight: 700; font-size: .92rem; color: var(--accent); }
.card p { margin-bottom: 0; }

/* Cómo trabajamos */
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.how li:nth-child(4) .how-num { background: var(--accent-dark); }
.how { counter-reset: none; }
.how-side .lead { color: var(--muted); }
.how-side h2 { color: var(--ink); }

/* Banda de consulta (formulario por pasos) */
.quote-form legend { color: var(--brand); }
.option span { font-size: .93rem; }
.options-3 { grid-template-columns: repeat(2, 1fr); }

/* Page hero (páginas de servicio) */
.page-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(120% 90% at 85% 0%, #2b8a8a 0%, transparent 55%), linear-gradient(160deg, var(--brand) 0%, var(--deep) 100%); padding: clamp(36px, 5vw, 64px) 0 clamp(48px, 6vw, 80px); }
.page-hero .container { position: relative; }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; margin: 14px 0 16px; }
.crumbs { font-size: .92rem; color: #cfe6e6; margin: 0 0 6px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-icon { width: 56px; height: 56px; border-radius: 18px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); display: grid; place-items: center; color: var(--mint); }
.page-icon svg { width: 28px; height: 28px; }
.page-hero .photo-frame img { aspect-ratio: 3 / 2; }
.page-hero-card { display: grid; gap: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); padding: 28px; }
.page-hero-card p { margin: 0; color: #e1f1f1; }
.page-hero-card strong { color: #fff; font-family: var(--font-display); font-size: 1.15rem; display: block; margin-bottom: 4px; }

.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.panel + .panel { margin-top: 24px; }
.panel h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--brand); }
.panel > p { color: var(--muted); }
.cover-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cover-list li { display: flex; gap: 12px; align-items: flex-start; background: var(--bg-tint); border-radius: var(--radius-sm); padding: 14px 16px; line-height: 1.4; font-size: .97rem; color: var(--muted); }
.cover-list strong { display: block; color: var(--ink); font-size: 1rem; }
.cover-list svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--accent); color: #fff; flex: none; margin-top: 2px; }
.aside { position: sticky; top: calc(var(--header-h) + 18px); display: grid; gap: 16px; }
.aside-card { background: var(--deep); color: #d5ecec; border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-lg); }
.aside-card h2 { font-size: 1.4rem; color: #fff; }
.aside-card p { margin: 0 0 16px; }
.aside-card .btn { width: 100%; margin-top: 8px; }
.aside-card .btn-primary { background: var(--mint); color: var(--deep); }
.aside-card .btn-primary:hover { background: #fff; }
.aside-meta { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; font-size: .95rem; }
.aside-meta li { display: flex; gap: 10px; align-items: flex-start; }
.aside-meta svg { width: 20px; height: 20px; color: var(--mint); flex: none; margin-top: 3px; }
.aside-meta a { color: #fff; }
.aside-others { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.aside-others h2 { font-size: 1.1rem; color: var(--brand); }
.aside-others ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.aside-others a { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 500; }
.aside-others a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.aside-others svg { width: 20px; height: 20px; color: var(--accent); flex: none; }

/* Gracias / 404 */
.center-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.center-page .panel { max-width: 640px; }
.center-page .hero-ctas { justify-content: center; }

@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .page-grid { grid-template-columns: 1fr; }
  .aside { position: static; }
}
@media (max-width: 940px) {
  .how-grid, .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero .photo-frame, .page-hero-card { max-width: 560px; }
}
@media (max-width: 640px) {
  .cover-list { grid-template-columns: 1fr; }
  .insurers li { width: calc(50% - 7px); height: 76px; }
  .options-3 { grid-template-columns: 1fr; }
}
@media (max-width: 400px) { .insurers li { width: 100%; } }
@media (max-width: 400px) { .cards { grid-template-columns: 1fr; } }
.section { overflow-x: clip; }
