/* ==========================================================================
   Atelier Villar — hoja de estilos a medida
   Paleta y tipografías heredadas del diseño original; layout reescrito.
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */
:root {
  --background:        oklch(97.7% .008 85);
  --foreground:        oklch(24.5% .017 45);
  --muted-foreground:  oklch(46% .022 55);   /* oscurecido vs. original: contraste AA */
  --border:            oklch(88.5% .018 80);
  --lino:              oklch(93% .022 84);
  --champagne:         oklch(80% .055 76);   /* oscurecido vs. original: legible sobre claro */
  --champagne-claro:   oklch(86% .05 76);
  --primary:           oklch(28% .02 40);
  --primary-foreground:oklch(97.7% .008 85);
  --verde:             oklch(42% .03 145);
  --verde-hover:       oklch(36% .03 145);
  --error:             oklch(52% .18 27);

  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-body:    "Karla", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 2px;
  --shadow-soft: 0 24px 60px -30px oklch(35% .03 50 / .35);
  --shadow-header: 0 1px 0 0 var(--border), 0 12px 28px -24px oklch(30% .03 50 / .5);

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-h: 68px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

@media (min-width: 900px) {
  :root { --header-h: 88px; }
}

/* --- 2. Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, blockquote, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* --- 3. Utilidades ------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--soft {
  background: var(--lino);
  border-block: 1px solid var(--border);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.eyebrow--light { color: oklch(97.7% .008 85 / .7); }

.section__title,
.split__body h2,
h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.rule-thin {
  display: block;
  width: 6rem;
  height: 1px;
  margin-inline: auto;
  background: linear-gradient(to right, transparent, var(--champagne), transparent);
}

.link-underline {
  position: relative;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--champagne);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .4s var(--ease);
}
.link-underline:hover::after,
.link-underline:focus-visible::after { transform: scaleX(1); }

.skip-link {
  position: absolute;
  top: -100px; left: 1rem;
  z-index: 200;
  padding: .75rem 1.25rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* --- 4. Botones ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: 1rem 2rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .ico { width: 1.05rem; height: 1.05rem; flex: none; }

.btn--solid { background: var(--primary); color: var(--primary-foreground); }
.btn--solid:hover { background: oklch(35% .025 42); }

.btn--light { background: var(--background); color: var(--foreground); }
.btn--light:hover { background: var(--champagne-claro); }

.btn--ghost { border-color: oklch(97.7% .008 85 / .35); color: var(--primary-foreground); }
.btn--ghost:hover { border-color: var(--champagne); color: var(--champagne); }

.btn--whatsapp { background: var(--verde); color: #fff; }
.btn--whatsapp:hover { background: var(--verde-hover); }

.btn--sm { padding: .7rem 1.4rem; font-size: .7rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* --- 5. Cabecera --------------------------------------------------------- */
/* Siempre con fondo translúcido: el original era transparente sobre la foto
   y el menú resultaba ilegible. */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  /* Por encima del panel móvil (110) y de su fondo (105): así el botón
     hamburguesa sigue visible y sirve de aspa para cerrar. */
  z-index: 120;
  background: oklch(93% .022 84 / .88);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease),
              box-shadow .35s var(--ease);
}
.site-header.is-scrolled {
  background: oklch(93% .022 84 / .97);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-header);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: .5rem var(--gutter);
  min-height: var(--header-h);
}

.site-header__logo img {
  width: auto;
  height: 44px;
  object-fit: contain;
  transition: height .35s var(--ease);
}
@media (min-width: 900px) {
  .site-header__logo img { height: 62px; }
  .site-header.is-scrolled .site-header__logo img { height: 50px; }
}

/* Navegación de escritorio: +23% de tamaño, más peso y menos tracking
   que el original (0.65rem / .22em), que era el fallo señalado. */
.nav-desktop { display: none; }
@media (min-width: 900px) {
  .nav-desktop { display: block; }
  .nav-desktop ul { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 2.5rem); }
}

.nav-link {
  position: relative;
  display: block;
  padding-block: .4rem;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--foreground);
  transition: color .25s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--champagne);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .35s var(--ease);
}
.nav-link:hover::after { transform: scaleX(1); }
/* Sección activa mientras se hace scroll */
.nav-link.is-active { color: oklch(38% .035 55); }
.nav-link.is-active::after { transform: scaleX(1); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tel-link {
  display: none;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .08em;
  white-space: nowrap;
  transition: color .25s var(--ease);
}
.tel-link svg { width: 1rem; height: 1rem; }
.tel-link:hover { color: oklch(38% .035 55); }
@media (min-width: 1100px) { .tel-link { display: inline-flex; } }

.nav-cta { display: none; }
@media (min-width: 900px) { .nav-cta { display: inline-flex; } }

/* Hamburguesa: en el original NO existía menú móvil */
.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  margin-right: -.5rem;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
@media (min-width: 900px) { .burger { display: none; } }

.burger__box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 26px; height: 18px;
}
.burger__line {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--foreground);
  transition: transform .35s var(--ease), opacity .2s var(--ease), width .35s var(--ease);
}
.burger[aria-expanded="true"] .burger__line:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger[aria-expanded="true"] .burger__line:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* --- 6. Panel móvil ------------------------------------------------------ */
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 110;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: min(86vw, 380px);
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2.5rem;
  background: var(--lino);
  border-left: 1px solid var(--border);
  box-shadow: -30px 0 60px -40px oklch(30% .03 50 / .6);
  transform: translateX(100%);
  transition: transform .45s var(--ease);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer[hidden] { display: flex; }          /* [hidden] lo gestiona el JS con .is-open */
.drawer.is-open { transform: translateX(0); }

.drawer__nav ul { display: flex; flex-direction: column; gap: .25rem; }

.drawer__link {
  display: block;
  padding: .9rem 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 300;
  transition: color .25s var(--ease), padding-left .25s var(--ease);
}
.drawer__link:hover,
.drawer__link.is-active { color: oklch(45% .06 60); padding-left: .4rem; }

.drawer__foot { display: grid; gap: 1rem; margin-top: 2.5rem; }
.drawer__tel {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: .03em;
  text-align: center;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: oklch(24.5% .017 45 / .45);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.drawer-backdrop[hidden] { display: block; pointer-events: none; }
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* --- 7. Hero ------------------------------------------------------------- */
.hero {
  display: grid;
  min-height: 100svh;
  padding-top: var(--header-h);
}
@media (min-width: 1000px) {
  .hero {
    grid-template-columns: 1fr 1.05fr;
    align-items: center;
    padding-top: 0;
  }
}

.hero__text {
  order: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 7vw, 5rem) var(--gutter);
}
@media (min-width: 1000px) {
  .hero__text {
    order: 1;
    padding: 4rem clamp(2rem, 5vw, 5rem);
    padding-top: calc(var(--header-h) + 2rem);
  }
}

.hero__title {
  margin-top: 1.75rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.hero__title em { font-style: italic; color: oklch(62% .07 68); }

.hero__lede {
  max-width: 34ch;
  margin-top: 1.75rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-top: 2.75rem;
}

.hero__media { order: 1; height: 58svh; }
@media (min-width: 1000px) { .hero__media { order: 2; height: 100svh; } }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* --- 8. Banda de cita ---------------------------------------------------- */
.band {
  background: var(--lino);
  border-block: 1px solid var(--border);
}
.band__inner {
  max-width: 48rem;
  margin-inline: auto;
  padding: clamp(4rem, 8vw, 6.5rem) var(--gutter);
  text-align: center;
}
.band blockquote {
  margin-top: 2.25rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.55rem, 3.2vw, 2.3rem);
  line-height: 1.38;
  text-wrap: balance;
}
.band blockquote::before { content: "\201C"; }
.band blockquote::after  { content: "\201D"; }
.band .eyebrow { margin-top: 2.25rem; }

/* --- 9. Bloques imagen + texto ------------------------------------------- */
.split {
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.75rem);
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; align-items: center; }
}
.split--services { padding-inline: 0; }
@media (min-width: 900px) {
  .split--services { grid-template-columns: 1fr .9fr; }
}

.split__img { width: 100%; object-fit: cover; box-shadow: var(--shadow-soft); }
.split__body h2 { margin-top: 1.5rem; }
.split__body p {
  margin-top: 1.5rem;
  color: var(--muted-foreground);
  line-height: 1.75;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.facts dd {
  margin-top: .5rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
}

/* --- 10. Proceso --------------------------------------------------------- */
.steps {
  display: grid;
  gap: 1px;
  margin-top: 3.5rem;
  background: var(--border);
  border: 1px solid var(--border);
}
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step { padding: clamp(1.75rem, 3vw, 2.25rem); background: var(--background); }
.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: oklch(70% .07 70);
}
.step h3 {
  margin-top: 1.4rem;
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.step p {
  margin-top: 1rem;
  font-size: .93rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

/* --- 11. Servicios ------------------------------------------------------- */
.split--services > .split__body { padding-inline: var(--gutter); }

.services { margin-top: 2.75rem; }
.services li {
  padding-block: 1.6rem;
  border-top: 1px solid var(--border);
}
.services li:last-child { border-bottom: 1px solid var(--border); }
.services h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.25;
}
.services p { margin-top: .4rem; font-size: .93rem; color: var(--muted-foreground); }

.duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  padding-inline: var(--gutter);
}
.duo img { width: 100%; height: 100%; object-fit: cover; }
.duo__a { margin-top: clamp(1.5rem, 4vw, 2.5rem); }

/* --- 12. Contacto -------------------------------------------------------- */
.contacto {
  background: var(--primary);
  color: var(--primary-foreground);
  border-top: 1px solid var(--border);
}
.contacto__grid { display: grid; gap: clamp(3rem, 6vw, 4.5rem); }
@media (min-width: 1000px) {
  .contacto__grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

.contacto__title {
  margin-top: 1.5rem;
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
}
.contacto__lede {
  max-width: 42ch;
  margin-top: 1.5rem;
  line-height: 1.75;
  color: oklch(97.7% .008 85 / .72);
}
.contacto__tel {
  display: inline-block;
  margin-top: 2.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  letter-spacing: .04em;
  transition: color .25s var(--ease);
}
.contacto__tel:hover { color: var(--champagne); }

.contacto__botones {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.contacto__dir {
  display: grid;
  gap: .5rem;
  margin-top: 3rem;
  font-size: .88rem;
  font-style: normal;
  color: oklch(97.7% .008 85 / .7);
}

/* --- 13. Formulario ------------------------------------------------------ */
.form {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: oklch(97.7% .008 85 / .06);
  border: 1px solid oklch(97.7% .008 85 / .16);
  border-radius: var(--radius);
}
.form__intro {
  margin-bottom: 1.75rem;
  font-size: .9rem;
  color: oklch(97.7% .008 85 / .72);
}

.field { margin-bottom: 1.25rem; }
.field-row { display: grid; gap: 0 1.25rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field label {
  display: block;
  margin-bottom: .5rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: oklch(97.7% .008 85 / .82);
}
.field label span { color: var(--champagne); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .85rem 1rem;
  background: oklch(97.7% .008 85 / .07);
  color: var(--primary-foreground);
  border: 1px solid oklch(97.7% .008 85 / .22);
  border-radius: var(--radius);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 7.5rem; line-height: 1.6; }
.field input::placeholder,
.field textarea::placeholder { color: oklch(97.7% .008 85 / .4); }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: oklch(97.7% .008 85 / .38); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--champagne);
  background: oklch(97.7% .008 85 / .11);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--champagne); outline-offset: 1px; }

.field select { appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 1.25rem, calc(100% - .8rem) 1.25rem;
  background-size: .35rem .35rem, .35rem .35rem;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
.field select option { background: var(--primary); color: var(--primary-foreground); }

/* El icono nativo del date picker es negro sobre fondo oscuro */
.field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1) opacity(.65); cursor: pointer; }

.field__help {
  margin-top: .45rem;
  font-size: .76rem;
  color: oklch(97.7% .008 85 / .55);
}
.field__error {
  margin-top: .45rem;
  font-size: .78rem;
  color: oklch(78% .12 30);
  min-height: 0;
}
.field__error:empty { display: none; }

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: oklch(70% .15 28); }

.field--check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .25rem .75rem;
  align-items: start;
  margin-top: 1.75rem;
  margin-bottom: 1.75rem;
}
.field--check input {
  width: 1.15rem; height: 1.15rem;
  margin-top: .15rem;
  accent-color: var(--champagne);
  cursor: pointer;
}
.field--check label {
  margin: 0;
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.55;
  color: oklch(97.7% .008 85 / .78);
  cursor: pointer;
}
.field--check label a { text-decoration: underline; text-underline-offset: 3px; }
.field--check label a:hover { color: var(--champagne); }
.field--check .field__error { grid-column: 1 / -1; }

/* Trampa anti-spam: invisible para personas, presente para bots */
.hp {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.form__status {
  margin-top: 1.25rem;
  padding: .9rem 1.1rem;
  border-radius: var(--radius);
  font-size: .88rem;
  line-height: 1.55;
  display: none;
}
.form__status.is-ok {
  display: block;
  background: oklch(55% .09 150 / .22);
  border: 1px solid oklch(70% .12 150 / .5);
}
.form__status.is-error {
  display: block;
  background: oklch(55% .15 28 / .2);
  border: 1px solid oklch(70% .15 28 / .5);
}

.form__legal {
  margin-top: 1.5rem;
  font-size: .72rem;
  line-height: 1.6;
  color: oklch(97.7% .008 85 / .5);
}
.form__legal a { text-decoration: underline; text-underline-offset: 2px; }

/* --- 14. Pie ------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); }
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding-block: clamp(2.75rem, 6vw, 3.75rem);
  text-align: center;
}
.site-footer__logo { height: 56px; width: auto; object-fit: contain; }
.site-footer__data { font-size: .82rem; color: var(--muted-foreground); }
.site-footer__data a:hover { color: var(--foreground); }

.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.site-footer__legal a {
  font-size: .78rem;
  color: var(--muted-foreground);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color .25s var(--ease);
}
.site-footer__legal a:hover { color: var(--foreground); }
.site-footer__copy { font-size: .62rem; }

/* --- 15. Botón flotante de WhatsApp -------------------------------------- */
/* En el original tapaba el texto en móvil: aquí se reduce a círculo. */
.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  width: 54px; height: 54px;
  background: var(--verde);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 12px 28px -12px oklch(35% .05 145 / .7);
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.wa-float:hover { transform: scale(1.06); background: var(--verde-hover); }
.wa-float svg { width: 26px; height: 26px; }
.wa-float__txt { display: none; }
@media (min-width: 640px) {
  .wa-float {
    right: 1.5rem; bottom: 1.5rem;
    width: auto; height: auto;
    padding: .95rem 1.4rem;
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .14em;
  }
  .wa-float svg { width: 20px; height: 20px; }
  .wa-float__txt { display: inline; }
}

/* --- 16. Páginas legales ------------------------------------------------- */
.legal { padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem)); }
.legal__inner { max-width: 46rem; }
.legal h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.1rem, 5vw, 3rem);
  line-height: 1.1;
  margin-top: 1.25rem;
}
.legal h2 {
  margin-top: 2.75rem;
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
}
.legal p, .legal li {
  margin-top: 1rem;
  font-size: .95rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}
.legal ul { list-style: disc; padding-left: 1.25rem; }
.legal li { margin-top: .5rem; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--foreground); }
.legal table {
  width: 100%;
  margin-top: 1.5rem;
  border-collapse: collapse;
  font-size: .9rem;
}
.legal th, .legal td {
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.legal th { background: var(--lino); font-weight: 500; }
.legal td { color: var(--muted-foreground); }
.legal__vuelta { display: inline-block; margin-top: 3rem; }

/* --- 17. Animaciones ----------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Sin JS, todo visible */
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
