/* ==========================================================================
   ESTILOS — css/styles.css
   Los colores y tipografías se definen en js/config.js (apartado "theme").
   Los valores de :root son los de respaldo.
   Índice: 1 Base · 2 Botones · 3 Cabecera · 4 Portada · 5 Secciones
           6 Servicios · 7 Por qué · 8 Galería · 9 Presupuestos · 10 Contacto
           11 Pie · 12 WhatsApp flotante · 13 Páginas legales · 14 Movimiento
   ========================================================================== */

/* ---------- 1. BASE ---------- */
@font-face {
  font-family: 'Montserrat Variable';
  src: url('../assets/fonts/montserrat-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3 Variable';
  src: url('../assets/fonts/source-sans-3-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 900; font-style: normal; font-display: swap;
}

:root {
  --red: #AE0306; --red-deep: #5E0508;
  --gold: #E2A722; --gold-light: #F3C14A; --gold-ink: #7A5200;
  --ink: #000000; --text: #2A2A2A; --muted: #5A5F66;
  --paper: #FFFFFF; --mist: #F2F3F5; --line: #DADDE2; --footer: #160607;
  --wa: #14854A; --wa-dark: #0F6E3C;
  --font-head: 'Montserrat Variable', Montserrat, 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Source Sans 3 Variable', 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  --radius: 14px; --radius-lg: 22px;
  --header-h: 68px; --slant-h: clamp(40px, 6vw, 88px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); margin: 0; }
a { color: inherit; }
ul { padding: 0; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.container { width: min(100% - 40px, 1200px); margin-inline: auto; }
.container--narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; background: #fff; color: var(--ink); padding: 12px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.noscript { padding: 24px; text-align: center; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.hero :focus-visible, .quote :focus-visible, .footer :focus-visible { outline-color: #fff; }
.quote__card :focus-visible, .quote__card .input:focus-visible { outline-color: var(--ink); }

/* ---------- 2. BOTONES ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border: 2px solid transparent; border-radius: 12px;
  font: 700 .95rem/1.2 var(--font-head); text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, filter .2s;
}
.btn .icon { width: 22px; height: 22px; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .65; cursor: progress; transform: none; }
.btn--lg { min-height: 56px; padding: 15px 28px; font-size: 1rem; }
.btn--sm { min-height: 44px; padding: 9px 16px; font-size: .88rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover, .btn--wa:hover, .btn--gold:hover { filter: brightness(.92); }
.btn--gold { background: var(--gold-light); color: var(--ink); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { filter: brightness(.94); }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .75); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); }
.btn--outline { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }

/* ---------- 3. CABECERA ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  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 rgba(0, 0, 0, .06); }
.header__inner { display: flex; align-items: center; gap: 14px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand__emblem { width: 43px; height: 46px; flex: none; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font: 800 1.12rem/1.05 var(--font-head); color: var(--ink); letter-spacing: -.01em; white-space: nowrap; }
.brand__name2 { color: var(--gold); }
.brand__tag { display: none; margin-top: 3px; font: 600 .66rem/1.1 var(--font-head); color: var(--muted); white-space: nowrap; }

.nav { display: none; }
.header__call {
  margin-left: auto; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); color: #fff; text-decoration: none; flex: none;
}
.header__call .icon { width: 22px; height: 22px; }
.header__burger {
  width: 46px; height: 46px; border-radius: 12px; border: 2px solid var(--ink); background: #fff; color: var(--ink);
  display: grid; place-items: center; cursor: pointer; flex: none; padding: 0;
}
.header__burger .icon { width: 24px; height: 24px; }
.burger__close, .site-header.is-open .burger__open { display: none; }
.site-header.is-open .burger__close { display: block; }
.site-header.is-open .nav {
  display: flex; flex-direction: column; align-items: stretch; gap: 14px;
  position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 6px 20px 22px;
  border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(0, 0, 0, .12);
}
.nav__list { list-style: none; margin: 0; display: flex; flex-direction: column; }
.nav__link { display: block; padding: 15px 4px; border-bottom: 1px solid var(--line); font: 600 1.05rem var(--font-head); color: var(--ink); text-decoration: none; }
.nav__link[aria-current] { color: var(--red); }
.nav__cta { width: 100%; }

@media (min-width: 1024px) {
  :root { --header-h: 76px; }
  .brand__emblem { width: 47px; height: 50px; }
  .brand__name { font-size: 1.25rem; }
  .brand__tag { display: block; }
  .header__call, .header__burger { display: none; }
  .nav, .site-header.is-open .nav { display: flex; flex-direction: row; align-items: center; gap: 6px; position: static; margin-left: auto; padding: 0; background: none; border: 0; box-shadow: none; }
  .nav__list { flex-direction: row; gap: 2px; }
  .nav__link { padding: 10px 11px; border: 0; border-radius: 8px; font-size: .9rem; }
  .nav__link:hover { color: var(--red); }
  .nav__link[aria-current] { box-shadow: inset 0 -3px 0 var(--red); border-radius: 8px 8px 0 0; }
  .nav__cta { width: auto; margin-left: 10px; min-height: 46px; padding: 10px 18px; font-size: .9rem; }
}
@media (min-width: 1024px) and (max-width: 1180px) { .brand__tag { display: none; } }

/* ---------- 4. PORTADA ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--red-deep) url('../assets/img/circuit.svg') center top / 360px repeat;
  padding: clamp(36px, 6vw, 88px) 0 calc(var(--slant-h) + clamp(48px, 7vw, 96px));
}
.hero__grid { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; position: relative; z-index: 1; }
.hero__title { font-weight: 800; font-size: clamp(2.2rem, 1.2rem + 4.4vw, 4.1rem); line-height: 1.07; letter-spacing: -.02em; color: #fff; max-width: 15em; }
.hero__text { margin: 22px 0 32px; max-width: 34em; font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); line-height: 1.55; color: rgba(255, 255, 255, .92); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__highlights { list-style: none; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 14px 30px; }
.hero__highlights li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .98rem; color: rgba(255, 255, 255, .94); }
.hero__highlights .icon { width: 22px; height: 22px; color: var(--gold-light); }

.hero__visual { position: relative; width: min(72vw, 330px); aspect-ratio: 1; justify-self: center; margin: 12px 0 8px; }
.hero__disc {
  position: absolute; inset: 9%; display: grid; place-items: center; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 8px var(--gold), 0 0 0 22px rgba(174, 3, 6, .9), 0 30px 70px rgba(0, 0, 0, .45);
}
.hero__emblem { width: 68%; height: auto; }
.hero__chip {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-light); color: var(--ink); box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}
.hero__chip .icon { width: 26px; height: 26px; }
.hero__chip--1 { top: 0; left: 8%; }
.hero__chip--2 { top: 42%; right: -4%; }
.hero__chip--3 { bottom: 2%; left: 14%; }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  .hero__visual { width: min(100%, 430px); margin: 0; }
  .hero__chip { width: 64px; height: 64px; }
  .hero__chip .icon { width: 30px; height: 30px; }
}

@media (max-width: 520px) {
  .hero__actions .btn { width: 100%; }
  .header__inner { gap: 10px; }
  .brand { gap: 8px; }
  .brand__emblem { width: 38px; height: 41px; }
  .brand__name { font-size: 1.02rem; }
}

/* Cortes diagonales (inspirados en las cintas del logo) */
.slant { position: absolute; left: 0; width: 100%; height: var(--slant-h); overflow: visible; pointer-events: none; }
.slant--down { bottom: -1px; }
.slant--up { top: -1px; }
.slant__red { fill: var(--red); }
.slant__gold { fill: var(--gold); }

/* ---------- 5. SECCIONES ---------- */
.section { position: relative; padding: clamp(56px, 8vw, 104px) 0; }
.section--mist { background: var(--mist); }
.section--paper { background: var(--paper); }
.section__head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__title { font-weight: 800; font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.7rem); line-height: 1.12; letter-spacing: -.015em; }
.section__intro { margin: 14px 0 0; max-width: 40em; font-size: 1.15rem; color: var(--muted); }
.section__head--light .section__title { color: #fff; }
.section__head--light .section__intro { color: rgba(255, 255, 255, .9); }
.prose p { margin: 1em 0 0; max-width: 62ch; }

/* ---------- 6. SERVICIOS ---------- */
.services { list-style: none; margin: 0; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .services { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.service-card {
  display: flex; flex-direction: column; gap: 12px; padding: 26px 24px 24px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0, 0, 0, .09); border-color: var(--gold); }
.service-card__icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--ink); color: var(--gold-light); margin-bottom: 4px; transition: background-color .2s, color .2s;
}
.service-card__icon .icon { width: 28px; height: 28px; }
.service-card:hover .service-card__icon { background: var(--red); color: #fff; }
.service-card__title { font-weight: 700; font-size: 1.17rem; line-height: 1.25; }
.service-card__text { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.tags { list-style: none; margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 4px 11px; border-radius: 999px; background: var(--mist); color: var(--text); font: 600 .78rem var(--font-head); }
.service-card__actions { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.service-card__quick { display: flex; gap: 10px; }
.service-card__quick .btn { flex: 1; padding-inline: 10px; }

.service-card--urgent { background: var(--red); border-color: var(--red); }
.service-card--urgent:hover { border-color: var(--gold-light); }
.service-card--urgent .service-card__icon { background: var(--gold-light); color: var(--ink); }
.service-card--urgent:hover .service-card__icon { background: #fff; color: var(--red); }
.service-card--urgent .service-card__title { color: #fff; }
.service-card--urgent .service-card__text { color: rgba(255, 255, 255, .94); }
.service-card--urgent .btn--wa { border-color: #fff; }
.service-card--urgent :focus-visible { outline-color: #fff; }

/* ---------- 7. POR QUÉ ELEGIRNOS ---------- */
.why { display: grid; gap: clamp(28px, 6vw, 88px); align-items: start; }
.why__intro .section__intro { margin-bottom: 26px; }
.why__list { list-style: none; margin: 0; display: grid; gap: 0 44px; }
.why__item { display: flex; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.why__item h3 { font-weight: 700; font-size: 1.1rem; line-height: 1.25; margin-bottom: 4px; }
.why__item p { margin: 0; color: var(--muted); }
.why__icon { flex: none; width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--gold); color: var(--red); display: grid; place-items: center; background: #fff; }
.why__icon .icon { width: 24px; height: 24px; }
@media (min-width: 900px) {
  .why { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .why__intro { position: sticky; top: calc(var(--header-h) + 32px); }
}
@media (min-width: 700px) { .why__list { grid-template-columns: 1fr 1fr; } }

/* ---------- 8. GALERÍA ---------- */
.notice { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 24px; padding: 14px 16px; border-radius: 12px; background: #FFF3D1; color: #5A3E00; font-size: .98rem; }
.notice .icon { width: 22px; height: 22px; margin-top: 1px; }
.gallery { list-style: none; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .gallery { gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gallery__item { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: #d9dce1; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; text-align: left; color: #fff; font: 600 .88rem/1.25 var(--font-head); background: linear-gradient(to top, rgba(0, 0, 0, .74), rgba(0, 0, 0, 0)); }
.gallery__zoom { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .6); color: #fff; opacity: 0; transition: opacity .2s; }
.gallery__zoom .icon { width: 19px; height: 19px; }
.gallery__item:hover .gallery__zoom, .gallery__item:focus-visible .gallery__zoom { opacity: 1; }
@media (hover: none) { .gallery__zoom { opacity: 1; } }

.lightbox { width: min(94vw, 1100px); max-width: none; padding: 0; border: 0; background: transparent; overflow: visible; color: #fff; }
.lightbox::backdrop { background: rgba(14, 0, 2, .86); }
.lightbox__img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 12px; background: #000; }
.lightbox__caption { margin: 12px 0 0; text-align: center; font: 600 1rem var(--font-head); }
.lightbox__close { position: absolute; top: -18px; right: -4px; z-index: 2; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; box-shadow: 0 6px 16px rgba(0, 0, 0, .4); }
.lightbox__close .icon { width: 22px; height: 22px; }
.lightbox :focus-visible { outline-color: var(--gold-light); }

/* ---------- 9. PRESUPUESTOS Y FORMULARIO ---------- */
.quote {
  color: #fff; background: var(--red-deep) url('../assets/img/circuit.svg') center / 360px repeat;
  padding-top: calc(var(--slant-h) + clamp(40px, 6vw, 80px)); padding-bottom: calc(var(--slant-h) + clamp(48px, 7vw, 88px));
}
.quote__grid { position: relative; z-index: 1; display: grid; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (min-width: 960px) { .quote__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .quote__side { position: sticky; top: calc(var(--header-h) + 28px); } }
.wa-card { margin-top: 30px; padding: 24px; border: 1px solid rgba(255, 255, 255, .24); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .09); }
.wa-card h3 { color: #fff; font-weight: 800; font-size: 1.2rem; }
.wa-card p { margin: 6px 0 18px; color: rgba(255, 255, 255, .92); }
.wa-card .wa-card__selected { margin: 12px 0 0; min-height: 1.5em; color: var(--gold-light); font-weight: 700; }
.quote__urgent { margin: 22px 0 0; color: rgba(255, 255, 255, .94); }
.quote__urgent a { color: var(--gold-light); font-weight: 700; white-space: nowrap; }

.quote__card { background: #fff; color: var(--text); border-radius: var(--radius-lg); padding: clamp(22px, 3.5vw, 38px); box-shadow: 0 26px 60px rgba(0, 0, 0, .3); }
.quote__card-title { margin-bottom: 20px; font-weight: 800; font-size: 1.4rem; line-height: 1.2; }
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field__label { display: block; margin: 0 0 6px; padding: 0; font: 700 .9rem var(--font-head); color: var(--ink); }
.input {
  width: 100%; min-height: 50px; padding: 11px 14px; border: 1.5px solid #7C828B; border-radius: 10px;
  background: #fff; color: var(--text); font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
textarea.input { min-height: 120px; resize: vertical; }
.input::placeholder { color: #6B7078; }
.input:focus { border-color: var(--red); outline: 3px solid rgba(174, 3, 6, .25); outline-offset: 0; }
.has-error .input { border-color: #B00020; background: #FFF6F6; }
.field__error { margin: 6px 0 0; color: #A10019; font-weight: 700; font-size: .92rem; }
.input.is-flash { animation: flash 1.2s ease-out; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1.5px solid #7C828B; border-radius: 999px; background: #fff; color: var(--text); font: 600 .92rem var(--font-head); transition: background-color .2s, color .2s, border-color .2s; }
.pill:hover span { border-color: var(--ink); }
.pill input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill input:checked + span::before { content: '✓'; margin-right: 7px; color: var(--gold-light); }
.pill input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.has-error .pill span { border-color: #B00020; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .98rem; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__summary { margin: 0; padding: 12px 14px; border-radius: 10px; background: #FDECEC; color: #8A0014; font-weight: 700; }
.form__summary a { color: inherit; }
.privacy-info { margin: 0; padding: 14px 16px; display: grid; gap: 6px; border-radius: 12px; background: var(--mist); color: var(--muted); font-size: .88rem; line-height: 1.45; }
.privacy-info div { display: grid; gap: 2px 12px; }
.privacy-info dt { font: 700 .78rem var(--font-head); color: var(--ink); }
.privacy-info dd { margin: 0; }
.privacy-info a { color: var(--red); font-weight: 600; }
@media (min-width: 520px) { .privacy-info div { grid-template-columns: 112px 1fr; } }

.review, .done { display: grid; gap: 16px; }
.review__title, .done__title { font-weight: 800; font-size: 1.3rem; }
.review__intro, .done__text { margin: 0; color: var(--muted); }
.review__list { margin: 0; }
.review__list div { display: grid; gap: 2px 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.review__list dt { font: 700 .84rem var(--font-head); color: var(--muted); }
.review__list dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; color: var(--ink); font-weight: 600; }
@media (min-width: 520px) { .review__list div { grid-template-columns: 170px 1fr; } }
.review__info { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--mist); font-size: .96rem; }
.review__actions, .done__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.review__actions .btn { flex: 1 1 200px; }
.done { justify-items: start; }
.done__icon { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; }
.done__icon .icon { width: 30px; height: 30px; }
[hidden] { display: none !important; }

/* ---------- 10. CONTACTO ---------- */
.contact-grid { list-style: none; margin: 0; display: grid; gap: 18px; }
@media (min-width: 820px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact-item { container-type: inline-size; }
.contact-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 18px; align-items: center; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.contact-card:hover { border-color: var(--gold); box-shadow: 0 12px 28px rgba(0, 0, 0, .07); }
.contact-card__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--red); }
.contact-card--whatsapp .contact-card__icon { color: var(--wa); }
.contact-card__icon .icon { width: 28px; height: 28px; }
.contact-card h3 { font: 700 .9rem var(--font-head); color: var(--muted); }
.contact-card__value { display: block; margin-top: 2px; font: 700 1.14rem/1.3 var(--font-head); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.contact-card__value:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-card__btn { grid-column: 1 / -1; }
@container (min-width: 660px) {
  .contact-card { grid-template-columns: auto minmax(0, 1fr) auto; }
  .contact-card__btn { grid-column: auto; }
}

/* ---------- 11. PIE DE PÁGINA ---------- */
.footer { background: var(--footer); color: rgba(255, 255, 255, .84); padding: clamp(48px, 6vw, 72px) 0 104px; }
.footer__grid { display: grid; gap: 36px; }
@media (min-width: 820px) { .footer__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr) minmax(0, 1.4fr); gap: 48px; } }
.footer__logo { display: inline-block; padding: 14px 18px; border-radius: 16px; background: #fff; }
.footer__logo img { width: 150px; height: auto; }
.footer__title { margin: 0 0 14px; font: 700 .98rem var(--font-head); color: #fff; }
.footer__links { list-style: none; margin: 0; display: grid; gap: 4px; }
.footer__links a { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; color: rgba(255, 255, 255, .86); text-decoration: none; overflow-wrap: anywhere; }
.footer__links a:hover { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.footer__links--icons .icon { width: 19px; height: 19px; color: var(--gold-light); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .92rem; }
.footer__bottom p { margin: 0; }
.footer__legal { list-style: none; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer__legal a { display: inline-block; padding: 6px 0; color: rgba(255, 255, 255, .86); }
.footer__legal a:hover { color: var(--gold-light); }

/* ---------- 12. WHATSAPP FLOTANTE ---------- */
.wa-float { position: fixed; z-index: 60; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; pointer-events: none; }
.wa-float__btn { position: relative; pointer-events: auto; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .32); transition: transform .2s, background-color .2s; }
.wa-float__btn:hover { background: var(--wa-dark); transform: scale(1.07); }
.wa-float__btn .icon { width: 34px; height: 34px; }
.wa-float__btn:focus-visible { outline-color: var(--ink); box-shadow: 0 0 0 3px #fff, 0 10px 24px rgba(0, 0, 0, .32); }
.wa-float__bubble { order: -1; margin: 0; max-width: calc(100vw - 112px); padding: 10px 14px; border-radius: 12px; background: #fff; color: var(--ink); font: 700 .9rem/1.3 var(--font-head); box-shadow: 0 10px 24px rgba(0, 0, 0, .25); opacity: 0; transform: translateX(10px); transition: opacity .25s, transform .25s; }
.wa-float__bubble.is-visible, .wa-float:hover .wa-float__bubble, .wa-float:focus-within .wa-float__bubble { opacity: 1; transform: none; }

/* ---------- 13. PÁGINAS LEGALES ---------- */
.legal-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.legal-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.legal { padding: clamp(36px, 6vw, 72px) 0 96px; }
.legal h1 { font-weight: 800; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.8rem); line-height: 1.1; margin-bottom: 8px; }
.legal h2 { font-weight: 700; font-size: 1.3rem; margin: 2em 0 .5em; }
.legal p, .legal li { max-width: 72ch; }
.legal__meta { color: var(--muted); }
.legal__banner { margin: 22px 0 0; padding: 14px 16px; border-radius: 12px; background: #FFF3D1; color: #5A3E00; max-width: 72ch; }
mark.pending { background: #FFE08A; color: #4A3200; padding: 0 .3em; border-radius: 4px; font-weight: 700; }
.legal-dialog { width: min(94vw, 820px); max-height: 88vh; padding: 0; border: 0; border-radius: var(--radius-lg); overflow: auto; color: var(--text); }
.legal-dialog::backdrop { background: rgba(14, 0, 2, .78); }
.legal-dialog__bar { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--line); }
.legal-dialog__body { padding: 8px 24px 32px; }

/* ---------- 14. MOVIMIENTO ---------- */
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(226, 167, 34, .95); } 100% { box-shadow: 0 0 0 16px rgba(226, 167, 34, 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(20, 133, 74, .55); } 70%, 100% { box-shadow: 0 0 0 18px rgba(20, 133, 74, 0); } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .is-ready .hero__copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .is-ready .hero__copy > :nth-child(2) { animation-delay: .08s; }
  .is-ready .hero__copy > :nth-child(3) { animation-delay: .16s; }
  .is-ready .hero__copy > :nth-child(4) { animation-delay: .24s; }
  .is-ready .hero__visual { animation: pop .8s .2s cubic-bezier(.2, .7, .2, 1) both; }
  .wa-float__btn::after { content: ''; position: absolute; inset: 0; border-radius: 50%; animation: ring 3s ease-out 2s infinite; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
