/* ==========================================================================
   RX Imagé – Hoja de estilos
   Código propio, sin frameworks ni dependencias externas.
   ========================================================================== */

/* ---------- Fuentes (auto-alojadas) ---------- */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Variables ---------- */
:root {
  --c-primary: #3368C6;
  --c-primary-dark: #2753a3;
  --c-brand-light: #3D8AE8;
  --c-navy: #031B4E;
  --c-navy-2: #0a2a6b;
  --c-text: #4A5573;
  --c-muted: #8A91AC;
  --c-bg: #ffffff;
  --c-tint: #F2F6FD;
  --c-border: #E2E8F4;
  --c-whatsapp: #1FAF54;
  --c-whatsapp-dark: #178a42;
  --c-accent: #E1007A;        /* magenta original: menú, botones principales, íconos */
  --c-accent-dark: #B80064;
  --c-green: #5CB85C;         /* botón "Descargar Orden" */
  --c-band: #063089;          /* franja azul de Nosotros */
  --c-desc: #6F7691;          /* descripciones (tono del #8A91AC original, con contraste AA) */
  --c-faq: #F2F6FD;

  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(3, 27, 78, .08);
  --shadow-lg: 0 18px 50px rgba(3, 27, 78, .16);
  --container: 1200px;
  --header-h: 84px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-primary-dark); }
h1, h2, h3, h4 { color: var(--c-navy); line-height: 1.2; margin: 0 0 .6em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--c-brand-light); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container--narrow { max-width: 860px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--c-navy); color: #fff; padding: .7rem 1.2rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; color: #fff; }

.icon { width: 1.1em; height: 1.1em; flex-shrink: 0; vertical-align: -.15em; }
.icon--lg { width: 2.4rem; height: 2.4rem; }
.icon--xl { width: 3.2rem; height: 3.2rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 800; font-size: .95rem; letter-spacing: .02em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn--primary { background: var(--c-primary); color: #fff; box-shadow: 0 8px 20px rgba(51, 104, 198, .3); }
.btn--primary:hover { background: var(--c-primary-dark); color: #fff; }
.btn--light { background: #fff; color: var(--c-navy); }
.btn--light:hover { background: var(--c-tint); color: var(--c-navy); }
.btn--outline { border-color: var(--c-primary); color: var(--c-primary); background: transparent; }
.btn--outline:hover { background: var(--c-primary); color: #fff; }
.btn--accent { background: var(--c-accent); color: #fff; box-shadow: 0 8px 20px rgba(225, 0, 122, .25); }
.btn--accent:hover { background: var(--c-accent-dark); color: #fff; }
.btn--navy { background: var(--c-navy); color: #fff; box-shadow: 0 10px 24px rgba(3, 27, 78, .3); }
.btn--navy:hover { background: var(--c-navy-2); color: #fff; }
.btn--whatsapp { background: var(--c-whatsapp); color: #fff; }
.btn--whatsapp:hover { background: var(--c-whatsapp-dark); color: #fff; }

.eyebrow { font-size: .85rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--c-primary); margin-bottom: .6rem; }
.eyebrow--light { color: #b9d3ff; }

.link-arrow { font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; text-transform: uppercase; font-size: .88rem; letter-spacing: .04em; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Topbar ---------- */
.topbar { background: var(--c-primary); color: #fff; font-size: .875rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: #dce8ff; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; padding-block: .35rem; }
.topbar__info { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.1rem; }
.topbar__info li { display: flex; align-items: center; gap: .45rem; white-space: nowrap; }
.topbar__num { display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--c-accent); color: #fff; font-size: .72rem; font-weight: 900; line-height: 1; flex-shrink: 0; }
.topbar__places { gap: .7rem !important; }
.topbar__city { display: flex; align-items: center; gap: .4rem; font-weight: 800; }
.topbar__addresses { display: grid; grid-template-columns: repeat(4, auto); align-items: center; gap: .2rem .5rem; line-height: 1.35; white-space: nowrap; }
.topbar__addresses li { display: contents; }
.topbar__branch { font-weight: 800; }
.topbar__addr:hover, .topbar__contact:hover { text-decoration: underline; }
.topbar__contact { display: inline-flex; align-items: center; gap: .3rem; padding-left: .55rem; border-left: 1px solid rgba(255, 255, 255, .35); }
.topbar__contact .icon { width: .95em; height: .95em; }
@media (max-width: 1180px) { .topbar__street { display: none; } }
@media (max-width: 760px) { .topbar__mail { display: none !important; } .topbar__addresses { grid-template-columns: repeat(3, auto); } }
.topbar__actions { display: flex; align-items: center; gap: 1.2rem; }
.topbar__download { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; background: var(--c-green); border: 2px solid #fff; padding: .25rem .9rem; white-space: nowrap; border-radius: 8px; }
.topbar__download:hover { background: #4cae4c; color: #fff !important; }
.social { display: flex; gap: .35rem; }
.social a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; transition: background-color .2s, color .2s; }
.topbar .social { background: #fff; padding: .2rem .6rem; }
.topbar .social a { color: var(--c-primary); }
.topbar .social a:hover { background: var(--c-tint); color: var(--c-accent); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--c-border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand img { height: 62px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav ul { display: flex; gap: .3rem; }
.main-nav ul a { display: block; padding: .55rem .9rem; color: var(--c-accent); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; text-decoration: none; border-radius: var(--radius-sm); position: relative; }
.main-nav ul a:hover { color: var(--c-accent-dark); }
.main-nav ul a::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .2rem; height: 3px; background: #3a3a3a; transform: scaleX(0); transition: transform .2s; }
.main-nav ul a:hover::after, .main-nav ul a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; border-radius: var(--radius-sm); }
.nav-toggle__bar { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--c-navy); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero (inicio) ---------- */
.hero { position: relative; isolation: isolate; min-height: min(78vh, 720px); display: grid; align-items: center; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(3, 27, 78, .82) 0%, rgba(3, 27, 78, .6) 50%, rgba(3, 27, 78, .35) 100%); }
.hero__content { padding-block: 5rem; max-width: var(--container); }
.hero h1 { color: #fff; max-width: 18ch; }
.hero__lead { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 40ch; color: #e3eafa; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero__actions--center { justify-content: center; }
.hero__note { margin-top: 1rem; font-size: .9rem; color: #c3d0ee; }

.highlight { background: linear-gradient(rgba(51, 104, 198, .88), rgba(51, 104, 198, .88)), url("../img/fondo-calidad.webp") center / cover; color: #fff; }
.highlight__inner { display: flex; align-items: center; gap: 1.5rem; padding-block: 2rem; }
.highlight__title { color: #fff; font-size: 1.5rem; margin-bottom: .2rem; }
.highlight p { margin: 0; color: #e6eeff; }

/* ---------- Page hero (internas) ---------- */
.page-hero { position: relative; background: var(--c-navy) center / cover no-repeat; padding-block: 4.5rem; color: #fff; text-align: center; }
.page-hero--monitor { background-image: url("../img/hero-monitor.webp"); }
.page-hero--mision { background-image: url("../img/fondo-mision.webp"); }
.page-hero--consultas { background-image: url("../img/fondo-consultas.webp"); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(3, 27, 78, .55); }
.page-hero .container { position: relative; }
.page-hero__box { display: inline-block; min-width: min(100%, 500px); background: rgba(51, 104, 198, .88); padding: 2rem 3rem; }
.page-hero h1 { color: #fff; margin-bottom: .4rem; font-size: clamp(2rem, 4vw, 2.8rem); }
.breadcrumb ol { display: flex; justify-content: center; gap: .5rem; font-weight: 600; color: #fff; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; opacity: .6; }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--tint { background: var(--c-tint); }
.section--navy { background: linear-gradient(rgba(6, 48, 137, .9), rgba(6, 48, 137, .9)), url("../img/fondo-mision.webp") center / cover; color: #d6def0; }
.section--navy h2 { color: #fff; }
.section--network { background: #F7FAFF url("../img/fondo-hexagonos.webp") center / cover no-repeat; }
.section__header { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section__header p:last-child { margin-bottom: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split__media { position: relative; }
.split__media img { position: relative; border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 1; object-fit: cover; }
.split__media--deco::before { content: ""; position: absolute; right: -28px; top: 12%; bottom: -24px; width: 45%; background: var(--c-primary); border-radius: var(--radius); }

.checklist { display: grid; gap: .55rem; margin: 1.5rem 0 2rem; }
.checklist--cols { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
.checklist li { position: relative; padding-left: 1.8rem; font-weight: 600; color: var(--c-navy); line-height: 1.45; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .15em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--c-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 75% no-repeat; }

/* ---------- Tarjetas ---------- */
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #000; }
.card__body { padding: 1.5rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { color: var(--c-primary); }
.card__body p { font-size: .98rem; color: var(--c-desc); }
.exam-grid .card__body { text-align: center; }
.exam-grid .card__body h3 { color: var(--c-navy); }
.card__body .link-arrow { margin-top: auto; }
.card:target { outline: 3px solid var(--c-primary); outline-offset: 4px; }

.services-home { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.cta-box { background: #2B70CA; color: #e3eafa; border-radius: var(--radius); padding: 2.5rem 2rem; display: flex; flex-direction: column; justify-content: center; box-shadow: var(--shadow-lg); }
.cta-box h2 { color: #fff; font-size: 1.7rem; }
.cta-box .btn { align-self: flex-start; margin-top: .5rem; }

.exam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.8rem; }

.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: .3rem; }
.cta-band p { margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Galería tipo acordeón (sólo CSS) ---------- */
.accordion-gallery { display: flex; gap: 12px; height: clamp(320px, 45vw, 480px); }
.accordion-gallery figure { margin: 0; flex: 1; min-width: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: flex .5s ease; box-shadow: var(--shadow); }
.accordion-gallery figure img { width: 100%; height: 100%; object-fit: cover; }
.accordion-gallery:not(:hover):not(:focus-within) figure:first-child,
.accordion-gallery figure:hover,
.accordion-gallery figure:focus-visible { flex: 4; }

/* ---------- Misión / Visión / Valores ---------- */
.quote { text-align: center; max-width: 26ch; margin: 0 auto 3rem; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; }
.mv-card { background: #fff; border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow-lg); }
.section--navy .mv-card h2 { color: var(--c-navy); }
.mv-card .icon { color: var(--c-accent); margin-bottom: 1rem; }
.mv-card p { margin: 0; color: var(--c-desc); }

.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.3rem; }
.value { background: #fff; border-radius: var(--radius); padding: 1.8rem 1.4rem; box-shadow: var(--shadow); text-align: center; }
.value .icon { color: #fff; margin: 0 auto 1rem; padding: .7rem; width: 3.4rem; height: 3.4rem; background: var(--c-primary); border-radius: 12px; }
.value:nth-child(1) .icon, .value:nth-child(2) .icon { background: #E58FC4; }
.value:nth-child(3) .icon, .value:nth-child(4) .icon { background: var(--c-primary); }
.value:nth-child(5) .icon { background: #4F4F9E; }
.value h3 { font-size: 1.1rem; }
.value p { font-size: .95rem; margin: 0; color: var(--c-desc); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .9rem; }
.faq { gap: .6rem; }
.faq details { background: var(--c-faq); border: 1px solid transparent; border-radius: 4px; transition: box-shadow .2s, border-color .2s, background-color .2s; }
.faq details[open] { background: #fff; border-color: var(--c-primary); box-shadow: var(--shadow); }
.faq__answer p { color: var(--c-desc); }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 3.5rem 1.15rem 1.4rem; font-weight: 800; color: var(--c-navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; translate: 0 -50%; width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border-radius: 50%; background: var(--c-tint); color: var(--c-primary); font-size: 1.3rem; line-height: 1; transition: transform .25s, background-color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--c-primary); color: #fff; }
.faq__answer { padding: 0 1.4rem 1.2rem; }
.faq__answer p { margin: 0; }
.faq__answer ul { margin: .6rem 0 0; padding-left: 1.2rem; list-style: disc; display: grid; gap: .4rem; color: var(--c-desc); }
.faq__more { text-align: center; margin-top: 2.5rem; }

/* ---------- Contacto ---------- */
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.info-card { background: #fff; border-radius: 4px; padding: 0 1.5rem 2rem; margin-top: 1.5rem; box-shadow: var(--shadow); }
.info-card .icon { color: #fff; background: var(--c-accent); width: 3.6rem; height: 3.6rem; padding: .85rem; margin: -1.5rem 0 1.3rem; }
.info-card h3 { color: var(--c-primary); font-weight: 600; }
.info-card p { margin: 0; color: var(--c-desc); font-size: .95rem; }
.info-card a { color: var(--c-desc); text-decoration: none; }
.info-card a:hover { color: var(--c-primary); }

.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: stretch; }
.contact-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-form-wrap { background: #fff; border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow); }
.contact-form { display: grid; gap: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-weight: 700; color: var(--c-navy); margin-bottom: .35rem; font-size: .95rem; }
.contact-form-wrap h2 { color: var(--c-primary); font-weight: 600; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--c-navy); padding: .8rem 1rem; border: 1px solid var(--c-muted); border-radius: 10px; background: #F5F5F5; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(51, 104, 198, .15); background: #fff; }
.field [aria-invalid="true"] { border-color: #c62f3d; }
.contact-form__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.form-error { color: #b4232f; font-weight: 700; margin: 0; }
.form-note { font-size: .88rem; color: var(--c-muted); margin: 0; }

/* ---------- Mapa ---------- */
.map { border: 6px solid #4070BE; }
.map iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- Prosa (política) ---------- */
.prose h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.prose__updated { color: var(--c-muted); font-size: .92rem; }
.big-404 { font-size: clamp(5rem, 16vw, 9rem); font-weight: 900; color: var(--c-tint); line-height: 1; margin: 0; -webkit-text-stroke: 2px var(--c-primary); }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-navy) url("../img/red-fondo.webp") right bottom / 900px auto no-repeat; background-blend-mode: soft-light; color: #fff; font-size: .97rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #8fb4ff; }
.site-footer__grid { display: grid; grid-template-columns: 1fr 1fr 1.4fr 1.3fr; gap: 2.5rem; padding-block: 4.5rem 3rem; }
.site-footer__brand img { width: 130px; margin-bottom: 1.5rem; }
.site-footer__title { color: #fff; font-size: 1.15rem; margin-bottom: 1.2rem; }
.site-footer__title--spaced { margin-top: 1.8rem; }
.site-footer p + .site-footer__contact { margin-top: 1.2rem; }
.site-footer__links { display: grid; gap: .55rem; }
.site-footer__contact { display: grid; gap: .8rem; }
.site-footer__contact li { display: flex; gap: .7rem; align-items: flex-start; line-height: 1.5; }
.site-footer__contact .icon { color: var(--c-primary); margin-top: .2em; }
.social--footer a { width: 34px; height: 34px; border-radius: 3px; background: #fff; color: var(--c-primary); }
.social--footer li:first-child a { background: var(--c-primary); color: #fff; }
.social--footer a:hover { background: var(--c-accent); color: #fff; }
.site-footer .btn--primary { border-radius: 2px; box-shadow: none; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; }
.site-footer__bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; padding-block: 1.3rem; }
.site-footer__bottom p { margin: 0; }

.whatsapp-float { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90; }
.whatsapp-float summary { list-style: none; cursor: pointer; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--c-whatsapp); color: #fff; box-shadow: 0 10px 25px rgba(0, 0, 0, .25); transition: transform .2s; }
.whatsapp-float summary::-webkit-details-marker { display: none; }
.whatsapp-float summary:hover { transform: scale(1.08); }
.whatsapp-float summary .icon { width: 30px; height: 30px; }
.whatsapp-float__menu { position: absolute; right: 0; bottom: calc(100% + .7rem); min-width: 250px; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: .5rem; display: grid; gap: .25rem; }
.whatsapp-float__menu p { margin: .2rem .6rem .3rem; font-size: .82rem; font-weight: 700; color: var(--c-muted); }
.whatsapp-float__menu a { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border-radius: 6px; color: var(--c-navy); text-decoration: none; line-height: 1.25; }
.whatsapp-float__menu a:hover { background: var(--c-tint); }
.whatsapp-float__menu .icon { color: var(--c-whatsapp); width: 1.3rem; height: 1.3rem; flex-shrink: 0; }
.whatsapp-float__menu small { display: block; color: var(--c-desc); font-size: .85rem; }

/* ---------- Sucursales ---------- */
.branch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.branch-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.6rem 1.8rem; border-top: 4px solid var(--c-accent); }
.branch-card h3 { color: var(--c-primary); font-weight: 700; margin-bottom: .9rem; display: flex; align-items: center; gap: .6rem; }
.branch-card__num { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--c-accent); color: #fff; font-size: .95rem; font-weight: 900; }
.branch-card ul { display: grid; gap: .6rem; margin: 0; }
.branch-card li { display: flex; gap: .65rem; align-items: flex-start; color: var(--c-desc); }
.branch-card .icon { color: var(--c-accent); margin-top: .2em; flex-shrink: 0; }
.branch-card a { color: var(--c-desc); text-decoration: none; }
.branch-card a:hover { color: var(--c-primary); text-decoration: underline; }
.info-grid--2 { grid-template-columns: 1fr 1fr; margin-top: 1.5rem; }

.maps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.maps-grid figure { margin: 0; }
.map.maps-grid { border: 0; background: #4070BE; padding: 6px; gap: 6px; }
.map.maps-grid figcaption { color: #fff; font-weight: 700; margin: .3rem .5rem .4rem; }
.map.maps-grid iframe { display: block; width: 100%; height: 380px; border: 0; }
.contact-maps { display: grid; gap: 1.2rem; align-content: start; }
.contact-maps figcaption { font-weight: 700; color: var(--c-navy); margin-bottom: .5rem; display: flex; align-items: center; gap: .5rem; }
.contact-maps figure { margin: 0; }
.contact-maps iframe { display: block; width: 100%; height: 280px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.field select { width: 100%; font: inherit; font-size: 1rem; color: var(--c-navy); padding: .8rem 1rem; border: 1px solid var(--c-muted); border-radius: 10px; background: #F5F5F5; }
.field select:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(51, 104, 198, .15); background: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .values { grid-template-columns: repeat(3, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .brand img { height: 52px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 1rem;
    background: #fff; padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid var(--c-border); box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; }
  .main-nav ul a { padding: .8rem .6rem; border-bottom: 1px solid var(--c-border); border-radius: 0; }
  .main-nav ul a::after { display: none; }
  .split, .contact-split, .mv-grid { grid-template-columns: 1fr; }
  .services-home { grid-template-columns: 1fr 1fr; }
  .services-home .cta-box { grid-column: 1 / -1; }
  .hide-sm { display: none !important; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .topbar__inner { flex-direction: column; align-items: flex-start; gap: .3rem; }
  .topbar__actions { width: 100%; justify-content: space-between; }
  .services-home, .values, .info-grid, .field-row, .branch-grid, .maps-grid, .checklist--cols, .site-footer__grid { grid-template-columns: 1fr; }
  .accordion-gallery { flex-direction: column; height: 620px; }
  .highlight__inner { flex-direction: column; text-align: center; }
  .hero__actions .btn { width: 100%; }
  .contact-map iframe { min-height: 320px; }
  .map.maps-grid iframe { height: 300px; }
}

@media print {
  .topbar, .site-header, .whatsapp-float, .map, .contact-map, .contact-maps { display: none; }
}
