/* DÍAZ & Co. Eventos + Marketing, sitio 2026
   Sistema tomado del Design Playbook 2026:
   - Rojo #A61219 (principal), gris #434142 (secundario), grises #666666, #999999, #E6E6E6.
   - Tipografía: Barlow sustituye a Flama en la web (misma familia DIN, licencia libre). Poppins como complementaria
     solo en botones y etiquetas.
   - Formas: el logo y los bloques de íconos van con esquinas rectas, como en el Playbook.
     Fotos y tarjetas: 16 a 28 px de radio. Botones y campos: 10 px.
*/

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }

:root {
  --rojo: #A61219;
  --rojo-hover: #8C0F15;
  --gris: #434142;
  --gris-oscuro: #2B2A2B;
  --gris-medio: #666666;
  --gris-claro: #E6E6E6;
  --gris-fondo: #F2F2F2;
  --blanco: #FFFFFF;

  --bg: #FFFFFF;
  --bg-alt: #F2F2F2;
  --surface: #FFFFFF;
  --text: #434142;
  --text-strong: #2B2A2B;
  --muted: #666666;
  --line: #E6E6E6;
  --field-border: #BDBDBD;
  --accent-text: #A61219;
  --logo-color: #A61219;
  --header-bg: rgba(255, 255, 255, 0.94);
  --shadow: 0 18px 40px -24px rgba(67, 65, 66, 0.45);

  --font: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-ui: "Poppins", "Barlow", "Segoe UI", system-ui, sans-serif;

  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --container: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --section-y: clamp(72px, 9vw, 128px);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1B1C;
    --bg-alt: #242324;
    --surface: #2A292A;
    --text: #E6E6E6;
    --text-strong: #F7F7F6;
    --muted: #B3B3B1;
    --line: #3A393A;
    --field-border: #5A595A;
    --accent-text: #F06A70;
    --logo-color: #FFFFFF;
    --header-bg: rgba(28, 27, 28, 0.92);
    --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4, .line__includes-title, .footer__title { margin: 0; color: var(--text-strong); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; }
p, li, dd { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; }

.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 {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--rojo); color: #fff; padding: 12px 18px; border-radius: var(--radius-sm);
  font-family: var(--font-ui); font-size: .9rem; text-decoration: none;
}
.skip:focus { top: 12px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

/* Tipografía */
.h2 { font-size: clamp(2rem, 3.7vw, 3.35rem); }
.h3 { font-size: clamp(1.6rem, 2.5vw, 2.25rem); }
.lead { font-size: clamp(1.125rem, 1.4vw, 1.3rem); line-height: 1.55; color: var(--text); }
.eyebrow {
  font-family: var(--font-ui); font-weight: 500; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text);
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .85rem 1.45rem;
  border: 1.5px solid transparent; border-radius: var(--radius-sm);
  font-family: var(--font-ui); font-weight: 500; font-size: 1rem; line-height: 1.1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--sm { min-height: 44px; padding: .6rem 1.1rem; font-size: .94rem; }
.btn--primary { background: var(--rojo); color: #fff; }
.btn--primary:hover { background: var(--rojo-hover); }
.btn--light { background: #fff; color: var(--rojo); }
.btn--light:hover { background: var(--gris-fondo); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .75); color: #fff; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.on-red :focus-visible { outline-color: #fff; }

/* Encabezado */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(0, 0, 0, .5); }
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; color: var(--logo-color); margin-right: auto; }
.brand svg { width: 150px; height: auto; }
.nav__list { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 32px); }
.nav__list a {
  font-family: var(--font-ui); font-weight: 500; font-size: .92rem;
  text-decoration: none; color: var(--text); white-space: nowrap;
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav__list a:hover, .nav__list a.is-active { color: var(--accent-text); border-bottom-color: currentColor; }
.nav__toggle {
  display: none; width: 44px; height: 44px; margin-left: 4px;
  align-items: center; justify-content: center;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: transparent; cursor: pointer;
}
.nav__toggle .icon { width: 20px; height: 20px; }
.nav__toggle .icon--close { display: none; }
.nav__toggle[aria-expanded="true"] .icon--open { display: none; }
.nav__toggle[aria-expanded="true"] .icon--close { display: block; }

@media (max-width: 1080px) {
  .nav { order: 3; }
  .nav__toggle { display: inline-flex; }
  .nav__list {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -30px rgba(0, 0, 0, .5);
    display: none;
  }
  .nav__list.is-open { display: flex; }
  .nav__list a { display: block; padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav__list a:hover, .nav__list a.is-active { border-bottom-color: var(--line); }
}
@media (max-width: 520px) {
  .btn { padding-inline: 1.05rem; font-size: .95rem; }
  .brand svg { width: 124px; }
  .header__cta { padding-inline: .85rem; font-size: .86rem; }
}

/* Portada */
.hero { position: relative; background: var(--rojo); color: #fff; overflow: hidden; }
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px);
  min-height: clamp(600px, calc(100dvh - var(--header-h)), 900px);
}
.hero__copy { align-self: center; padding-block: clamp(56px, 7vw, 96px); }
.hero .eyebrow { color: rgba(255, 255, 255, .86); margin-bottom: 22px; }
.hero__title { color: #fff; font-size: clamp(3rem, 6.3vw, 5.7rem); line-height: .96; letter-spacing: -0.03em; }
.hero__title span { display: block; }
.hero__lead { margin-top: 26px; max-width: 34ch; font-size: clamp(1.15rem, 1.55vw, 1.4rem); line-height: 1.5; color: rgba(255, 255, 255, .92); }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

.wall {
  /* contain: size evita que las columnas (muy altas) estiren la portada; el muro toma la altura de la fila */
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  min-height: 560px; overflow: hidden; contain: size;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 3%, #000 86%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 3%, #000 86%, transparent 100%);
}
.wall__col { position: relative; overflow: hidden; }
.wall__track { display: flex; flex-direction: column; gap: 14px; will-change: transform; }
.wall__track img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .12);
}
.wall__col:nth-child(2) .wall__track img { aspect-ratio: 3 / 4; }
@media (prefers-reduced-motion: no-preference) {
  .wall__track { animation: wall-scroll var(--dur, 70s) linear infinite; }
  .wall__col:nth-child(2) .wall__track { animation-direction: reverse; }
  .wall.is-paused .wall__track { animation-play-state: paused; }
}
@keyframes wall-scroll { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 7px)); } }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero__copy { padding-block: 56px 36px; }
  .wall { height: 380px; min-height: 0; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); gap: 10px; }
  .wall__track { gap: 10px; }
  @keyframes wall-scroll { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 5px)); } }
}

/* Secciones */
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section-head > :not(.line-links) { max-width: 780px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head .lead { margin-top: 20px; }

/* Clientes */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-bottom: clamp(48px, 6vw, 80px); }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; border-top: 2px solid var(--rojo); padding-top: 18px; }
.stat__num { display: block; margin: 0; font-size: clamp(2rem, 4.4vw, 4rem); white-space: nowrap; font-weight: 600; line-height: 1; letter-spacing: -0.03em; color: var(--accent-text); }
.stat__label { display: block; margin-top: 10px; color: var(--muted); font-size: 1rem; line-height: 1.4; max-width: 24ch; }
.clients__title { font-size: clamp(1.6rem, 2.6vw, 2.3rem); max-width: 26ch; }
.logos { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.logos li {
  flex: 0 0 calc((100% - 6 * 12px) / 7);
  display: grid; place-items: center; aspect-ratio: 16 / 9;
  background: #fff; border-radius: var(--radius-md); padding: 12px 16px;
}
.logos { --logo-scale: .88; }
.logos img { width: calc(var(--lw) * var(--logo-scale) * 1px); height: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .78; transition: filter .25s ease, opacity .25s ease; }
.logos li:hover img { filter: none; opacity: 1; }
@media (max-width: 1100px) {
  .logos { --logo-scale: 1.15; }
  .logos li { flex-basis: calc((100% - 2 * 12px) / 3); padding: 16px 22px; }
}
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .logos { --logo-scale: .82; }
}
@media (max-width: 520px) {
  .logos { gap: 8px; --logo-scale: .6; }
  .logos li { flex-basis: calc((100% - 2 * 8px) / 3); padding: 10px 12px; border-radius: 12px; }
}

/* Qué hacemos */
.line-links { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.line-links a {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-ui); font-weight: 500; font-size: .92rem; text-decoration: none; color: var(--text-strong);
  transition: border-color .2s ease, color .2s ease;
}
.line-links a:hover { border-color: var(--accent-text); color: var(--accent-text); }
.line-links .icon { color: var(--accent-text); }

.line { margin-top: clamp(64px, 8vw, 104px); }
.line + .line { padding-top: clamp(64px, 8vw, 104px); border-top: 1px solid var(--line); }
.line__head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; margin-bottom: 36px; }
.icon-tile { display: inline-grid; place-items: center; width: 56px; height: 56px; background: var(--rojo); color: #fff; }
.icon-tile .icon { width: 26px; height: 26px; }
.line__intro .icon-tile { margin-bottom: 22px; }
.line__intro p { margin-top: 16px; max-width: 58ch; }
.line__tag { display: block; margin-top: 8px; font-size: 1.05rem; color: var(--muted); font-weight: 500; }
.line__includes { background: var(--bg-alt); border-radius: var(--radius-md); padding: 26px 28px 28px; }
.line__includes-title { font-size: 1.1rem; letter-spacing: 0; margin-bottom: 14px; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; }
.checks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; line-height: 1.4; }
.checks .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--accent-text); }
.line__note { margin-top: 16px; font-size: .95rem; color: var(--muted); }
@media (max-width: 900px) {
  .line__head { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .checks { grid-template-columns: 1fr; }
  .line__includes { padding: 22px 20px; }
}

/* Galería justificada: cada foto conserva su proporción y las filas quedan parejas */
.gallery { --row-h: 230px; display: flex; flex-wrap: wrap; gap: 10px; }
.tile { position: relative; margin: 0; flex-basis: calc(var(--ar) * var(--row-h)); aspect-ratio: var(--ar); border-radius: var(--radius-md); overflow: hidden; background: var(--bg-alt); }
.tile__link { display: block; width: 100%; height: 100%; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.tile__link:hover img, .tile__link:focus-visible img { transform: scale(1.04); }
.tile__link:focus-visible { outline-offset: -3px; outline-color: #fff; }
.tile__cap {
  position: absolute; inset: auto 0 0 0; padding: 40px 14px 12px;
  background: linear-gradient(to top, rgba(20, 19, 20, .78), rgba(20, 19, 20, 0));
  color: #fff; pointer-events: none; line-height: 1.25;
}
.tile__cap strong { display: block; font-weight: 600; font-size: .98rem; }
.tile__cap span { display: block; margin-top: 2px; font-size: .84rem; color: rgba(255, 255, 255, .86); }
.tile--cta {
  /* Ocupa lo que sobra de la última fila; si no cabe, baja sola y se vuelve una franja horizontal */
  flex: 1000000 1 260px; aspect-ratio: auto; container-type: inline-size;
  background: var(--rojo); color: #fff; text-decoration: none;
  transition: background-color .2s ease;
}
.tile__inner {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  height: 100%; min-height: calc(var(--row-h) * .8); padding: 22px 24px;
}
@container (min-width: 640px) {
  .tile__inner { flex-direction: row; align-items: center; min-height: 0; padding: 30px 36px; }
  .tile__ask { max-width: none; }
}
.tile--cta:hover { background: var(--rojo-hover); }
.tile--cta:focus-visible { outline-color: var(--text-strong); }
.tile__ask { font-size: clamp(1.15rem, 1.6vw, 1.45rem); font-weight: 600; line-height: 1.2; max-width: 26ch; }
.tile__go { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-ui); font-weight: 500; font-size: .95rem; }
.tile__go .icon { width: 18px; height: 18px; transition: transform .2s ease; }
.tile--cta:hover .tile__go .icon { transform: translateX(3px); }
@media (max-width: 1100px) { .gallery { --row-h: 190px; } }
@media (max-width: 700px) {
  .gallery { --row-h: 100px; gap: 6px; }
  .tile { border-radius: 12px; }
  .tile__cap { padding: 28px 10px 8px; }
  .tile__cap strong { font-size: .84rem; }
  .tile__cap span { display: none; }
}

/* Cómo trabajamos */
.steps { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); position: relative; }
.steps::before { content: ""; position: absolute; left: 28px; right: 28px; top: 28px; height: 2px; background: var(--line); }
.step { position: relative; }
.step .icon-tile { position: relative; }
.step h3 { margin-top: 22px; font-size: clamp(1.25rem, 1.7vw, 1.5rem); }
.step p { margin-top: 10px; color: var(--text); }
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps::before { display: none; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Trayectoria */
.history { background: var(--gris); color: #fff; }
.history h2, .history h3 { color: #fff; }
.history .lead { color: rgba(255, 255, 255, .88); }
.history__head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.merge { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 18px; }
.merge__from { display: grid; gap: 10px; }
.merge__from li { border: 1.5px solid rgba(255, 255, 255, .28); padding: 12px 16px; }
.merge__from strong { display: block; font-weight: 600; font-size: 1.08rem; color: #fff; }
.merge__from span { display: block; font-size: .92rem; color: rgba(255, 255, 255, .78); }
.merge__arrow { width: 28px; height: 28px; fill: #fff; }
.merge__to svg { width: clamp(132px, 13vw, 176px); height: auto; --logo-bg: #A61219; --logo-fg: #FFFFFF; }
@media (max-width: 900px) {
  .history__head { grid-template-columns: 1fr; }
  .merge { grid-template-columns: 1fr; justify-items: start; }
  .merge__from { width: 100%; }
  .merge__arrow { transform: rotate(90deg); }
}

/* Cotiza */
.quote { background: var(--rojo); color: #fff; }
.quote__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
.quote h2 { color: #fff; font-size: clamp(2.3rem, 4.4vw, 3.8rem); line-height: 1; letter-spacing: -0.025em; }
.quote .lead { margin-top: 20px; color: rgba(255, 255, 255, .92); max-width: 40ch; }
.quote__prep { margin-top: 32px; }
.quote__prep > p { font-weight: 600; }
.quote__prep ul { margin-top: 12px; display: grid; gap: 8px; }
.quote__prep li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; color: rgba(255, 255, 255, .92); }
.quote__prep .icon { width: 16px; height: 16px; margin-top: 4px; }
.contacts { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.contact { border-top: 1.5px solid rgba(255, 255, 255, .35); padding-top: 16px; }
.contact__name { font-weight: 600; font-size: 1.15rem; }
.contact a { display: flex; align-items: center; gap: 10px; margin-top: 8px; text-decoration: none; color: rgba(255, 255, 255, .95); width: fit-content; }
.contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact .icon { width: 18px; height: 18px; }
.quote__address { margin-top: 24px; display: flex; gap: 10px; font-style: normal; color: rgba(255, 255, 255, .88); font-size: .98rem; }
.quote__address .icon { width: 18px; height: 18px; margin-top: 3px; }

.form { background: var(--surface); color: var(--text); border-radius: var(--radius-lg); padding: clamp(24px, 3.2vw, 40px); box-shadow: 0 30px 60px -30px rgba(40, 0, 0, .6); }
.form__title { font-size: 1.5rem; color: var(--text-strong); }
.form__intro { margin-top: 6px; color: var(--muted); font-size: .98rem; }
.form__grid { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.field { display: grid; gap: 6px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; color: var(--text-strong); }
.field .req { color: var(--accent-text); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  background: var(--bg); color: var(--text-strong);
  border: 1.5px solid var(--field-border); border-radius: var(--radius-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--rojo); box-shadow: 0 0 0 3px rgba(166, 18, 25, .2); }
.field [aria-invalid="true"] { border-color: var(--rojo); }
.field__error { font-size: .88rem; color: var(--accent-text); font-weight: 500; }
.field__error:empty { display: none; }
.consent { grid-column: 1 / -1; display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .92rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--rojo); }
.consent .field__error { grid-column: 2; }
.form__actions { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form__alt { background: none; border: 0; padding: 0; cursor: pointer; color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.form__status { margin-top: 14px; font-size: .95rem; color: var(--text); }
.form__status:empty { display: none; }
@media (max-width: 960px) {
  .quote__inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form__grid { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: 1fr; }
}

/* Pie de página */
.site-footer { background: var(--gris-oscuro); color: rgba(255, 255, 255, .82); padding-block: 64px 36px; font-size: .98rem; }
.footer__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.footer__logo { width: 170px; height: auto; color: #fff; }
.footer__brand p { margin-top: 18px; max-width: 32ch; }
.footer__title { font-family: var(--font-ui); font-weight: 500; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__links { display: grid; gap: 8px; }
.footer__links a { display: inline-flex; align-items: center; gap: 10px; width: fit-content; }
.footer__links .icon { width: 18px; height: 18px; }
.site-footer address { font-style: normal; }
.footer__legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .88rem; color: rgba(255, 255, 255, .62); }
.footer__legal { padding-right: 72px; }
.footer__legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer__legal a:hover { color: #fff; }
@media (max-width: 900px) { .footer__inner { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__inner { grid-template-columns: 1fr; } }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: clamp(14px, 2.5vw, 28px); bottom: clamp(14px, 2.5vw, 28px); z-index: 40;
  width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%;
  background: #1F9E55; color: #fff; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .55);
  transition: transform .2s ease, background-color .2s ease;
}
.wa-float:hover { transform: translateY(-2px); background: #188A49; }
.wa-float .icon { width: 28px; height: 28px; }

/* Visor de fotos */
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; overflow: hidden; }
.lightbox::backdrop { background: rgba(14, 13, 14, .94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__figure { margin: 0; display: grid; justify-items: center; gap: 14px; padding: 72px 76px 28px; max-width: 100%; max-height: 100%; }
.lightbox__figure img { max-width: min(1400px, 100%); max-height: calc(100dvh - 170px); width: auto; height: auto; border-radius: var(--radius-md); object-fit: contain; }
.lightbox__figure figcaption { text-align: center; font-size: 1.02rem; color: rgba(255, 255, 255, .9); }
.lightbox__figure figcaption strong { color: #fff; font-weight: 600; }
.lightbox__btn {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .22); cursor: pointer;
  transition: background-color .2s ease;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .24); }
.lightbox__btn .icon { width: 22px; height: 22px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
  .lightbox__figure { padding: 72px 12px 96px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; transform: none; }
  .lightbox__prev { left: calc(50% - 64px); }
  .lightbox__next { right: calc(50% - 64px); }
}

/* Aparición suave al hacer scroll (solo si el sistema no pide menos movimiento) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--delay, 0s); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
  .hero__copy > * { animation: rise .9s cubic-bezier(.16, 1, .3, 1) both; }
  .hero__copy > :nth-child(2) { animation-delay: .08s; }
  .hero__copy > :nth-child(3) { animation-delay: .16s; }
  .hero__copy > :nth-child(4) { animation-delay: .24s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

@media print {
  .site-header, .wa-float, .wall, .lightbox { display: none !important; }
  .hero, .quote, .history { background: #fff; color: #000; }
}

/* Página de política de tratamiento de datos */
.legal__inner { max-width: 760px; }
.legal h1 { margin-bottom: 18px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.legal p, .legal li, .legal dd { line-height: 1.6; }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 12px; }
.legal ul { display: grid; gap: 6px; padding-left: 1.2em; list-style: disc; }
.legal a:not(.btn) { color: var(--accent-text); }
.legal__terms { display: grid; gap: 12px; }
.legal__terms dt { font-weight: 600; color: var(--text-strong); }
.legal__terms dd { margin: 2px 0 0; }
.legal__version { margin: 40px 0 24px; font-size: .92rem; color: var(--muted); }
