/* ==========================================================================
   Manitas Coruña · Hoja de estilos
   1. Tokens  2. Base  3. Utilidades  4. Botones  5. Cabecera y navegación
   6. Secciones  7. Componentes  8. Formularios  9. Pie  10. Flotantes  11. Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --navy: #16324f;
  --navy-900: #0d2136;
  --navy-100: #e4ebf2;
  --accent: #b4472f;
  --accent-700: #963923;
  --accent-100: #f7e5df;
  --wa: #157a43;
  --wa-700: #0f6436;
  --stone: #f5f2ec;
  --stone-200: #e8e2d7;
  --ink: #1c2430;
  --ink-soft: #4a5565;
  --white: #fff;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-base: 1.0625rem;
  --fs-sm: .9375rem;
  --fs-h1: clamp(2rem, 1.4rem + 3vw, 3.25rem);
  --fs-h2: clamp(1.6rem, 1.25rem + 1.6vw, 2.35rem);
  --fs-h3: 1.25rem;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(13, 33, 54, .06), 0 8px 24px rgba(13, 33, 54, .08);
  --container: 1160px;
  --header-h: 72px;
  --space: clamp(3.5rem, 2.5rem + 4vw, 6rem);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.15; color: var(--navy-900); margin: 0 0 .6em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 800; }
h3 { font-size: var(--fs-h3); font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--accent-700); text-underline-offset: .18em; }
a:hover { color: var(--accent); }
ul { padding-left: 1.2em; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 3. Utilidades ------------------------------------------------------------ */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; 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: -4rem; z-index: 100; background: var(--navy); color: var(--white); padding: .7rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; color: var(--white); }
.sprite { display: none; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.muted { color: var(--ink-soft); }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 62ch; }
.eyebrow { display: inline-block; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-700); margin-bottom: .6rem; }
.pending { background: #fff3c4; color: #6b4e00; padding: 0 .3em; border-radius: 4px; }
.section { padding-block: var(--space); }
.section--stone { background: var(--stone); }
.section--navy { background: var(--navy); color: var(--navy-100); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section__head { max-width: 720px; margin-bottom: 2.5rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p { color: var(--ink-soft); font-size: 1.125rem; }
.section--navy .section__head p { color: var(--navy-100); }
.section--navy .eyebrow, .highlight .eyebrow { color: #f0b9a8; }
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: center; gap: clamp(2rem, 4vw, 4rem); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* 4. Botones --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .75rem 1.35rem;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-700); color: var(--white); }
.btn--wa { background: var(--wa); color: var(--white); }
.btn--wa:hover { background: var(--wa-700); color: var(--white); }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy-900); }
.btn--light:hover { background: var(--stone); color: var(--navy-900); }
.btn--lg { min-height: 56px; padding: .9rem 1.6rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; text-decoration: none; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* 5. Cabecera y navegación ------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s, border-color .2s;
}
.site-header.is-scrolled { border-color: var(--stone-200); box-shadow: 0 4px 18px rgba(13, 33, 54, .07); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy-900); }
.brand:hover { color: var(--navy-900); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.brand__tag { font-size: .75rem; color: var(--ink-soft); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 0; border-radius: var(--radius-sm);
  background: var(--stone); color: var(--navy-900); cursor: pointer;
}
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav__list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.site-nav__link, .site-nav__sub a {
  display: block; padding: .55rem .75rem; border-radius: var(--radius-sm);
  font: inherit; font-weight: 600; font-size: .975rem; color: var(--ink); text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.site-nav__link:hover, .site-nav__sub a:hover { background: var(--stone); color: var(--navy-900); }
.site-nav a[aria-current="page"] { color: var(--accent-700); }
.site-nav__sub-toggle::after {
  content: ""; display: inline-block; width: .45em; height: .45em; margin-left: .45em; vertical-align: .2em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.has-sub { position: relative; }
.site-nav__sub {
  list-style: none; margin: 0; padding: .5rem; min-width: 250px;
  position: absolute; top: calc(100% + .35rem); left: 0;
  background: var(--white); border: 1px solid var(--stone-200); border-radius: var(--radius); box-shadow: var(--shadow);
  display: none;
}
.site-nav__sub-toggle[aria-expanded="true"] + .site-nav__sub { display: block; }
@media (min-width: 961px) and (hover: hover) {
  .has-sub:hover .site-nav__sub { display: block; }
  /* puente invisible para que el submenú no se cierre al bajar el ratón */
  .has-sub:hover::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: .5rem; }
}
.site-nav__cta { min-height: 44px; padding: .6rem 1.1rem; }

/* 6. Secciones ------------------------------------------------------------- */
.hero { background: linear-gradient(180deg, var(--stone) 0%, var(--white) 100%); padding-block: clamp(2.5rem, 2rem + 4vw, 5.5rem); }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 span { color: var(--accent); }
.hero .lead { margin-bottom: 1.75rem; }
.hero__proof { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1.5rem 0 0; padding: 0; list-style: none; font-size: var(--fs-sm); color: var(--ink-soft); }
.hero__proof li { display: inline-flex; align-items: center; gap: .4rem; }
.hero__proof .icon { color: var(--wa); }
.hero__art { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); background: var(--navy); }
.stars { display: inline-flex; color: #e0a100; }
.stars .icon { width: 1.05em; height: 1.05em; }

.page-hero { background: var(--stone); padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.page-hero .lead { margin-bottom: 1.5rem; }
.breadcrumb { font-size: var(--fs-sm); margin-bottom: 1rem; color: var(--ink-soft); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--stone-200); }

.trust { background: var(--navy); color: var(--white); }
.trust ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; list-style: none; margin: 0; padding: 1.25rem 0; }
.trust li { display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: var(--fs-sm); }
.trust .icon { color: #f0b9a8; width: 1.5em; height: 1.5em; }

/* 7. Componentes ----------------------------------------------------------- */
.card {
  display: flex; flex-direction: column; gap: .4rem;
  background: var(--white); border: 1px solid var(--stone-200); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow); height: 100%;
}
.card h3 { margin-bottom: .2rem; }
.card p { color: var(--ink-soft); }
.card ul { margin: 0 0 1.25rem; padding: 0; list-style: none; }
.card .card__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; }
.card__icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: .75rem;
  border-radius: 14px; background: var(--accent-100); color: var(--accent-700);
}
.card__icon .icon { width: 30px; height: 30px; }

.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .55rem; }
.checklist li { display: flex; gap: .6rem; align-items: flex-start; }
.checklist li::before {
  content: ""; flex: none; width: 1.3rem; height: 1.3rem; margin-top: .2rem; border-radius: 50%;
  background: var(--wa) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.checklist--cross li::before {
  background: #8a93a0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E") center / 62% no-repeat;
}

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 1.75rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 1rem;
  border-radius: 50%; background: var(--accent); color: var(--white); font-weight: 800; font-size: 1.2rem;
}
.steps h3 { margin-bottom: .35rem; }
.steps p { margin: 0; color: var(--ink-soft); }

.highlight { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 24px; overflow: hidden; background: var(--navy); color: var(--navy-100); }
.highlight__body { padding: clamp(2rem, 4vw, 3.5rem); }
.highlight h2 { color: var(--white); }
.highlight .checklist li::before { background-color: var(--accent); }
.highlight__art { background: var(--navy-900); display: grid; place-items: center; }

.rating-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem;
  padding: clamp(1.75rem, 3vw, 2.5rem); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow);
}
.rating-box__score { font-size: 3.5rem; font-weight: 800; line-height: 1; color: var(--navy-900); }
.rating-box__score small { font-size: 1.25rem; color: var(--ink-soft); font-weight: 600; }
.rating-box p { margin: .35rem 0 0; color: var(--ink-soft); }
.rating-box .stars .icon { width: 1.5rem; height: 1.5rem; }
.rating-box__cta { margin-left: auto; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.chips li { padding: .4rem .9rem; border-radius: 999px; background: var(--white); border: 1px solid var(--stone-200); font-weight: 600; font-size: var(--fs-sm); }
.section--stone .chips li { background: var(--white); }

.map {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: var(--navy-100); border: 1px solid var(--stone-200);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__consent {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem;
  padding: 1.5rem; text-align: center;
  background: linear-gradient(135deg, var(--navy-100), var(--stone));
}
.map__consent .icon { width: 48px; height: 48px; color: var(--accent); }
.map__consent p { margin: 0; max-width: 34ch; font-size: var(--fs-sm); color: var(--ink-soft); }
.map__consent strong { color: var(--navy-900); font-size: 1.05rem; }

.faq { display: grid; gap: .75rem; max-width: 820px; }
.faq details { background: var(--white); border: 1px solid var(--stone-200); border-radius: var(--radius-sm); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem; font-weight: 700; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 1.25rem 1.1rem; color: var(--ink-soft); }
.faq details > div p:last-child { margin: 0; }

.price-groups { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.price-group h3 { display: flex; align-items: center; gap: .5rem; }
.price-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.price-table th, .price-table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--stone-200); vertical-align: top; }
.price-table thead th { background: var(--navy); color: var(--white); font-size: var(--fs-sm); }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; font-weight: 700; }
.price-table tr:last-child td { border-bottom: 0; }
/* Calculadora de precios */
.calc { max-width: 920px; }
.qty-groups { display: grid; gap: 1.5rem; }
.qty-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.qty-group legend { padding: 0; margin-bottom: .5rem; font-size: 1.15rem; font-weight: 800; color: var(--navy-900); }
.qty-row {
  display: grid; grid-template-columns: 1fr 180px; gap: .75rem 1.25rem; align-items: center;
  padding: .9rem 0; border-bottom: 1px solid var(--stone-200);
}
.qty-group .qty-row:last-child { border-bottom: 0; }
.qty-row__text { display: grid; gap: .1rem; }
.qty-row__text label { font-weight: 700; }
.qty-row__hint { font-size: .875rem; color: var(--ink-soft); }
.qty-row__price { font-size: .875rem; font-weight: 600; color: var(--accent-700); }
.qty-row__field { gap: .25rem; }
.qty-input { display: flex; align-items: center; border: 2px solid var(--stone-200); border-radius: var(--radius-sm); background: var(--white); transition: border-color .2s; }
.qty-input:focus-within { border-color: var(--navy); }
.field.is-invalid .qty-input { border-color: #b3261e; }
.field .qty-input input { border: 0; min-height: 44px; text-align: right; -moz-appearance: textfield; }
.field .qty-input input:focus { outline: none; }
.qty-input input::-webkit-outer-spin-button, .qty-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input span { padding: 0 .9rem 0 .25rem; font-weight: 700; color: var(--ink-soft); min-width: 3.2rem; }
.calc__estimate { margin: 0; padding: 1rem 1.25rem; border-radius: var(--radius-sm); background: var(--navy); color: var(--white); font-weight: 700; }
@media (max-width: 520px) {
  .qty-row { grid-template-columns: 1fr; }
}

.note { padding: 1rem 1.25rem; border-left: 4px solid var(--accent); background: var(--accent-100); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.works { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.work { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.work[hidden] { display: none; }
.work__body { padding: 1.1rem 1.25rem 1.35rem; }
.work__body h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.work__body p { margin: 0; color: var(--ink-soft); font-size: var(--fs-sm); }
.work__meta { font-size: .8125rem !important; font-weight: 700; color: var(--accent-700) !important; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .35rem !important; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.filter { min-height: 44px; padding: .5rem 1.1rem; border-radius: 999px; border: 2px solid var(--stone-200); background: var(--white); font: inherit; font-weight: 600; cursor: pointer; }
.filter.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* Comparador antes / después */
.ba { --pos: 50%; position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone-200); user-select: none; }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.ba__after::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 1;
  width: 3px; margin-left: -1.5px; background: var(--white); box-shadow: 0 0 6px rgba(0, 0, 0, .35);
}
.ba__tag { position: absolute; top: .75rem; z-index: 2; padding: .2rem .6rem; border-radius: 999px; background: rgba(13, 33, 54, .75); color: var(--white); font-size: .75rem; font-weight: 700; }
.ba__tag--before { left: .75rem; }
.ba__tag--after { right: .75rem; }
.ba__range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba__range:focus-visible { opacity: .01; }
.ba:has(.ba__range:focus-visible) { outline: 3px solid var(--accent); outline-offset: -3px; }

.empty { padding: 2rem; border: 2px dashed var(--stone-200); border-radius: var(--radius); background: var(--white); max-width: 760px; }
.empty .btn-row { margin: 1.25rem 0 0; }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.25rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul { margin: 0 0 1em; }

.h3-size { font-size: 1.4rem; margin-bottom: .3rem; }
.rating-box p:first-child { margin-top: 0; }

.media-card { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }

/* 8. Formularios ----------------------------------------------------------- */
.form { display: grid; gap: 1.1rem; padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.form__row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 700; font-size: var(--fs-sm); }
.field .hint { font-size: .875rem; color: var(--ink-soft); margin: 0; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem;
  font: inherit; color: var(--ink); background: var(--white);
  border: 2px solid var(--stone-200); border-radius: var(--radius-sm);
  transition: border-color .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #b3261e; }
.field__error { color: #b3261e; font-size: .875rem; font-weight: 600; margin: 0; }
.field__error:empty { display: none; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--fs-sm); }
.check input { width: 22px; height: 22px; margin-top: .1rem; flex: none; accent-color: var(--navy); }
.form__status { margin: 0; font-weight: 600; }
.form__status:empty { display: none; }
.form__status--ok { color: var(--wa-700); }
.form__status--error { color: #b3261e; }
.form small { color: var(--ink-soft); }

.contact-cards { display: grid; gap: 1rem; }
.contact-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.35rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-card .card__icon { margin: 0; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.contact-card p { margin: 0; color: var(--ink-soft); }
.contact-card--wa .card__icon { background: #dff3e7; color: var(--wa); }

/* CTA final */
.cta-final { background: var(--accent); color: var(--white); padding-block: clamp(2.5rem, 2rem + 3vw, 4rem); }
.cta-final__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-final h2 { color: var(--white); margin-bottom: .3rem; }
.cta-final p { margin: 0; font-size: 1.125rem; }
.cta-final .btn--wa { background: var(--navy-900); }
.cta-final .btn--wa:hover { background: var(--navy); }

/* 9. Pie ------------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: #c7d2de; padding-top: 3.5rem; font-size: var(--fs-sm); }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2.5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer__title { font-size: .875rem; color: var(--white); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.brand--footer { color: var(--white); margin-bottom: 1rem; }
.brand--footer:hover { color: var(--white); }
.site-footer__rating { display: flex; align-items: center; gap: .4rem; }
.site-footer__rating .icon { color: #e0a100; }
.site-footer__social { display: flex !important; gap: 1rem !important; margin-top: 1rem !important; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.site-footer__bottom p { margin: 0; }
@media (min-width: 641px) { .site-footer__bottom { padding-right: 88px; } } /* deja sitio al botón flotante */
.site-footer__bottom ul { display: flex; gap: 1.25rem; }

/* 10. Flotantes ------------------------------------------------------------ */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
  display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%;
  background: var(--wa); color: var(--white); box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  transition: transform .2s, background-color .2s;
}
.wa-float:hover { transform: scale(1.06); background: var(--wa-700); color: var(--white); }
.wa-float .icon { width: 34px; height: 34px; }
.wa-float.is-pulsing { animation: pulse 2s ease-out 2; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(21, 122, 67, .55), 0 8px 24px rgba(0, 0, 0, .25); }
  100% { box-shadow: 0 0 0 18px rgba(21, 122, 67, 0), 0 8px 24px rgba(0, 0, 0, .25); }
}
.wa-bubble {
  position: fixed; right: 1.25rem; bottom: 6rem; z-index: 60;
  display: flex; align-items: center; gap: .5rem; max-width: 260px;
  padding: .75rem .5rem .75rem 1rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  font-weight: 600; font-size: var(--fs-sm);
}
.wa-bubble[hidden] { display: none; }
.wa-bubble p { margin: 0; }
.wa-bubble__close { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--stone); cursor: pointer; color: var(--ink); flex: none; }
.mobile-bar { display: none; }

/* 11. Responsive ----------------------------------------------------------- */
@media (max-width: 1080px) {
  .site-nav__link, .site-nav__sub a { padding-inline: .55rem; }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1.25rem 1.25rem 6rem; overflow-y: auto;
    background: var(--white); border-top: 1px solid var(--stone-200);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s linear .2s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__link, .site-nav__sub a { padding: .9rem .5rem; font-size: 1.1rem; border-bottom: 1px solid var(--stone); border-radius: 0; width: 100%; text-align: left; }
  .site-nav__sub { position: static; box-shadow: none; border: 0; padding: 0 0 0 1rem; min-width: 0; display: block; }
  .site-nav__sub-toggle { pointer-events: none; color: var(--ink-soft); font-size: .875rem; text-transform: uppercase; letter-spacing: .06em; }
  .site-nav__sub-toggle::after { display: none; }
  .site-nav__cta { min-height: 52px; }
  body.nav-open { overflow: hidden; }

  .hero__grid, .highlight { grid-template-columns: 1fr; }
  .hero__art { max-width: 560px; }
  .trust ul { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --fs-base: 1.0625rem; }
  .brand__tag { display: none; }
  .form__row { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .rating-box__cta { margin-left: 0; }
  .hero .btn-row .btn { width: 100%; }

  /* Barra de contacto inferior en móvil */
  body { padding-bottom: 64px; }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: 1fr 1fr;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .12);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 60px;
    font-weight: 700; text-decoration: none; background: var(--navy); color: var(--white);
  }
  .mobile-bar a.mobile-bar__wa { background: var(--wa); }
  .wa-float { display: none; }
  .wa-bubble { bottom: 76px; right: .75rem; left: .75rem; max-width: none; }
}
@media print {
  .site-header, .wa-float, .wa-bubble, .mobile-bar, .cta-final, .map { display: none !important; }
}
