/* ==========================================================================
   ISPBoss — hoja de estilos del sitio público
   Sistema propio: sin Bootstrap, sin AOS, sin fuentes de iconos.
   Tema único claro: la página se ve sobre blanco siempre, sin importar
   la preferencia de color del sistema operativo.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light; /* controles nativos y scrollbars siempre claros */

  /* Marca */
  --brand: #009cea;         /* bordes, iconos y trazos decorativos */
  --brand-700: #0069a8;     /* texto y enlaces: 6.6:1 sobre blanco */
  --brand-050: #e8f5fd;     /* fondo tenue de acento */
  --brand-100: #cfe9fa;     /* filete sobre el fondo de acento */

  /* Botones sólidos (texto blanco encima pasa AA) */
  --btn-solid: #007ac2;        /* 4.6:1 */
  --btn-solid-hover: #0069a8;  /* 5.9:1 */

  /* Tinta oscura: reservada al chrome del reproductor de video */
  --ink: #08202e;

  /* Superficies */
  --bg: #ffffff;
  --bg-soft: #f2f6f9;
  --surface: #ffffff;
  --surface-2: #f7fafc;
  --text: #0b2432;
  --text-2: #4a6472;
  --text-3: #5e7a88;
  --line: #dce6ec;
  --line-strong: #c3d4de;

  --shadow-sm: 0 1px 2px rgba(8, 32, 46, .06);
  --shadow-md: 0 1px 2px rgba(8, 32, 46, .06), 0 12px 32px -14px rgba(8, 32, 46, .28);
  --shadow-lg: 0 2px 4px rgba(8, 32, 46, .05), 0 28px 64px -24px rgba(8, 32, 46, .35);

  /* Tipografía */
  --font-display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --step--1: clamp(.8125rem, .79rem + .12vw, .875rem);
  --step-0: clamp(1rem, .97rem + .16vw, 1.0625rem);
  --step-1: clamp(1.0625rem, 1.02rem + .24vw, 1.1875rem);
  --step-2: clamp(1.25rem, 1.14rem + .52vw, 1.5rem);
  --step-3: clamp(1.625rem, 1.38rem + 1.1vw, 2.25rem);
  --step-4: clamp(2.125rem, 1.66rem + 2.1vw, 3.4rem);

  /* Espaciado / geometría */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --rail: 1200px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --header-h: 72px;
  --section-y: clamp(4rem, 8vw, 7.5rem);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  text-wrap: balance;
  margin: 0;
  color: var(--text);
}

p { margin: 0; }
ul { margin: 0; padding: 0; }

a { color: var(--brand-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--btn-solid-hover); }

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--btn-solid);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 200;
  background: var(--btn-solid);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

.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;
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.wrap {
  width: min(var(--rail), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head--center { margin-inline: auto; text-align: center; align-items: center; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-700);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--brand);
  flex: none;
}
.section-head--center .eyebrow { justify-content: center; }

h2.section-title { font-size: var(--step-3); }
.section-lede {
  font-size: var(--step-1);
  color: var(--text-2);
  max-width: 62ch;
}

/* Campo de nodos: motivo de topología de fibra, puro CSS */
.nodefield { position: relative; isolation: isolate; }
.nodefield::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at center, currentColor 1.1px, transparent 1.2px),
    linear-gradient(105deg, transparent 48.6%, currentColor 48.6%, currentColor 48.75%, transparent 48.75%),
    linear-gradient(255deg, transparent 62.6%, currentColor 62.6%, currentColor 62.72%, transparent 62.72%);
  background-size: 28px 28px, 100% 100%, 100% 100%;
  opacity: .14;
  color: var(--brand);
  -webkit-mask-image: radial-gradient(120% 90% at 70% 0%, #000 10%, transparent 72%);
  mask-image: radial-gradient(120% 90% at 70% 0%, #000 10%, transparent 72%);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   4. Botones
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--btn-solid);
  --btn-fg: #fff;
  --btn-bd: var(--btn-solid);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.btn:hover { --btn-bg: var(--btn-solid-hover); --btn-bd: var(--btn-solid-hover); color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn svg { width: 20px; height: 20px; flex: none; }

.btn--ghost {
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  --btn-bd: var(--line-strong);
}
.btn--ghost:hover { --btn-bg: var(--brand-050); --btn-bd: var(--brand); --btn-fg: var(--brand-700); }

.btn--wa { --btn-bg: #14833f; --btn-bd: #14833f; }
.btn--wa:hover { --btn-bg: #0f6831; --btn-bd: #0f6831; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(var(--rail), 100% - (var(--gutter) * 2));
}

.brand { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.brand img { height: 34px; width: auto; }

.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

/* :not(.btn) evita que el estilo de enlace pise el color del botón */
.main-nav a:not(.btn) {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: var(--step--1);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.main-nav a:not(.btn):hover { color: var(--text); background: var(--surface-2); }
.main-nav a:not(.btn)[aria-current="true"] { color: var(--brand-700); background: var(--brand-050); }

/* El CTA del menú existe solo para el cajón móvil.
   En escritorio ese lugar lo ocupa .header-actions, así que se oculta
   para no mostrar dos botones "Pedir una demo" al lado. */
.main-nav .nav-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.header-actions .btn { min-height: 42px; padding: 0 18px; font-size: var(--step--1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    margin: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 12px var(--gutter) 24px;
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a:not(.btn) { padding: 14px 12px; font-size: var(--step-0); }
  .main-nav .nav-cta { display: block; margin-top: 12px; }
  .main-nav .nav-cta .btn { width: 100%; }
  .header-actions { display: none; }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(3rem, 6vw, 5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(2rem, 3.5vw, 3.25rem);
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: var(--step-4); letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--brand-700); }
.hero-lede { font-size: var(--step-1); color: var(--text-2); max-width: 48ch; }
.hero-note { font-family: var(--font-mono); font-size: var(--step--1); color: var(--text-3); }

.hero-visual { position: relative; }

/* Marco de las capturas: filete, esquinas suaves y sombra. Sin cromo falso. */
.screen {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.screen img { width: 100%; height: auto; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}

/* --------------------------------------------------------------------------
   7. Banda de métricas
   -------------------------------------------------------------------------- */
.metrics { padding-block: clamp(2.5rem, 5vw, 3.75rem); }
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}
.metric {
  background: var(--surface);
  padding: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.metric b {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 2.6vw, 2.5rem);
  font-weight: 600;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.metric b span { color: var(--brand-700); }
.metric small { font-size: var(--step--1); color: var(--text-2); line-height: 1.45; }

@media (max-width: 980px) { .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .metrics-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   8. Cards de características
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(1.5rem, 2.4vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.feature::after {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--brand);
  opacity: 0;
  transition: opacity .18s ease;
}
.feature:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.feature:hover::after { opacity: 1; }

.feature-icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--brand-050);
  color: var(--brand-700);
  flex: none;
}
.feature-icon svg { width: 23px; height: 23px; }
.feature h3 { font-size: var(--step-1); letter-spacing: -.01em; }
.feature p { color: var(--text-2); font-size: var(--step--1); line-height: 1.6; }

/* --------------------------------------------------------------------------
   9. Pestañas de producto
   -------------------------------------------------------------------------- */
.tabs-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}
.tablist { display: flex; flex-direction: column; gap: 8px; }
.tab {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 18px 20px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-left: 3px solid var(--line);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}
.tab:hover { background: var(--surface-2); }
.tab strong {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
}
.tab span { font-size: var(--step--1); color: var(--text-2); line-height: 1.6; }
.tab[aria-selected="true"] {
  background: var(--surface);
  border-color: var(--line);
  border-left-color: var(--brand);
  box-shadow: var(--shadow-sm);
}
.tab[aria-selected="true"] strong { color: var(--brand-700); }

.tabpanel[hidden] { display: none; }
.tabpanel-media { position: sticky; top: calc(var(--header-h) + 32px); }
/* Las capturas se muestran enteras: nunca se recortan. */
.tabpanel-media .screen img { width: 100%; height: auto; }

@media (max-width: 900px) {
  .tabs-grid { grid-template-columns: 1fr; }
  .tabpanel-media { position: static; }
}

/* --------------------------------------------------------------------------
   10. Muro de clientes
   -------------------------------------------------------------------------- */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.logo-cell {
  display: grid;
  place-items: center;
  background: var(--surface);
  padding: 22px 18px;
  min-height: 108px;
}
.logo-cell img {
  max-height: 56px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .62;
  transition: filter .2s ease, opacity .2s ease;
}
.logo-cell:hover img { filter: none; opacity: 1; }

/* --------------------------------------------------------------------------
   11. Video (fachada de YouTube)
   -------------------------------------------------------------------------- */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  background: var(--ink);
}
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: var(--ink);
}
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.video-facade .play {
  position: absolute;
  display: grid;
  place-items: center;
  width: 78px; height: 78px;
  border-radius: 50%;
  background: var(--btn-solid);
  color: #fff;
  box-shadow: 0 10px 40px rgba(8, 32, 46, .55);
  transition: transform .18s ease;
}
.video-facade .play svg { width: 32px; height: 32px; }
.video-facade:hover .play { transform: scale(1.07); }
.video-facade .label {
  position: absolute;
  bottom: 18px; left: 20px;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: #fff;
  background: rgba(8, 32, 46, .78);
  padding: 6px 12px;
  border-radius: 100px;
}

/* --------------------------------------------------------------------------
   12. Preguntas frecuentes
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 10px; max-width: 56rem; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 11px; height: 11px;
  border-right: 2px solid var(--brand-700);
  border-bottom: 2px solid var(--brand-700);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq summary:hover { color: var(--brand-700); }
.faq .answer { padding: 0 22px 22px; color: var(--text-2); max-width: 68ch; }

/* --------------------------------------------------------------------------
   13. Banda CTA
   -------------------------------------------------------------------------- */
.cta-band {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  background: var(--brand-050);
  border-block: 1px solid var(--brand-100);
}
.cta-band .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.cta-band h2 { font-size: var(--step-3); max-width: 22ch; }
.cta-band p { color: var(--text-2); max-width: 46ch; margin-top: 12px; }
.cta-band .btn--ghost { --btn-bd: var(--brand-100); }

/* --------------------------------------------------------------------------
   14. Contacto
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info { display: flex; flex-direction: column; gap: 4px; }
.info-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.info-item:last-of-type { border-bottom: 0; }
.info-item .ico {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: var(--brand-050);
  color: var(--brand-700);
}
.info-item .ico svg { width: 20px; height: 20px; }
.info-item dt {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 3px;
}
.info-item dd { margin: 0; font-weight: 500; }
.info-item dd a { display: inline-block; padding-block: 3px; text-decoration: none; }
.info-item dd a:hover { text-decoration: underline; }

.map-embed {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
}
.map-embed iframe { width: 100%; height: 260px; border: 0; }

/* Formulario */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-md);
}
.form-card > header { margin-bottom: 24px; display: flex; flex-direction: column; gap: 8px; }
.form-card > header h3 { font-size: var(--step-2); }
.form-card > header p { color: var(--text-2); font-size: var(--step--1); }

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--step--1); font-weight: 600; color: var(--text); }
.field .hint { font-size: 12px; color: var(--text-3); font-weight: 400; }

/* Alcanza a los <input> que renderiza asp:TextBox */
.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="tel"],
.form-card input[type="number"],
.form-card textarea,
.form-card select {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: var(--step-0);
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-card input::placeholder { color: var(--text-3); }
.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus {
  outline: none;
  border-color: var(--btn-solid);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--btn-solid) 22%, transparent);
}
.form-card input:user-invalid { border-color: #c8372d; }

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.form-foot .legal { font-size: 12px; color: var(--text-3); max-width: 34ch; }

/* asp:Button renderiza <input type="submit"> */
.form-card input[type="submit"],
.form-card .btn-submit {
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid var(--btn-solid);
  border-radius: var(--radius-sm);
  background: var(--btn-solid);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 600;
  cursor: pointer;
  transition: background-color .16s ease;
}
.form-card input[type="submit"]:hover,
.form-card .btn-submit:hover { background: var(--btn-solid-hover); border-color: var(--btn-solid-hover); }

.form-message {
  display: block;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--brand-050);
  border: 1px solid var(--brand);
  color: var(--brand-700);
  font-weight: 600;
  font-size: var(--step--1);
}

@media (max-width: 560px) { .field-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  color: var(--text-2);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: var(--step--1);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand img { height: 34px; width: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 34ch; line-height: 1.6; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a {
  display: inline-block;
  padding-block: 4px;
  color: var(--text-2);
  text-decoration: none;
}
.footer-col a:hover { color: var(--brand-700); text-decoration: underline; }

.social { display: flex; gap: 10px; margin-top: 20px; }
.social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.social a:hover { background: var(--btn-solid); border-color: var(--btn-solid); color: #fff; }
.social svg { width: 19px; height: 19px; }

.footer-legal {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-2);
}
.footer-legal a { color: var(--text-2); }
.footer-legal a:hover { color: var(--brand-700); }

/* --------------------------------------------------------------------------
   16. Acciones flotantes
   -------------------------------------------------------------------------- */
.fab-stack {
  position: fixed;
  right: clamp(14px, 2.5vw, 26px);
  bottom: clamp(14px, 2.5vw, 26px);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.fab {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform .16s ease, opacity .2s ease, visibility .2s ease;
}
.fab:hover { transform: translateY(-2px); }
.fab svg { width: 26px; height: 26px; }
.fab--wa { background: #1faa54; color: #fff; }
.fab--top {
  width: 44px; height: 44px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--text-2);
  opacity: 0;
  visibility: hidden;
}
.fab--top svg { width: 20px; height: 20px; }
.fab--top.is-visible { opacity: 1; visibility: visible; }

/* --------------------------------------------------------------------------
   17. Aparición al hacer scroll
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s cubic-bezier(.22, .8, .3, 1), transform .55s cubic-bezier(.22, .8, .3, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   18. Impresión
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .fab-stack, .video-frame, .map-embed { display: none !important; }
  .reveal { opacity: 1; transform: none; }
  body { color: #000; background: #fff; }
}
