/* =========================================================================
   Velogen · Genética Molecular Veterinaria
   Hoja de estilos principal
   -------------------------------------------------------------------------
   Todos los colores, tipografías y medidas clave están en :root.
   Cuando llegue el logo definitivo, basta con cambiar los valores de abajo.
   ========================================================================= */

:root {
  /* ---- Paleta de marca (azul clínico) ------------------------------------ */
  --color-primary:        #0B5CAB;   /* azul principal */
  --color-primary-dark:   #084A8C;   /* hover / textos sobre claro */
  --color-primary-darker: #063A6E;
  --color-primary-light:  #E8F1FA;   /* fondos suaves */
  --color-primary-tint:   #F5F9FD;
  --color-accent:         #1E88C7;   /* azul secundario / detalles */

  --color-ink:            #1C2B39;   /* texto principal */
  --color-body:           #33424F;   /* texto de párrafo */
  --color-muted:          #5D6B78;   /* texto secundario */
  --color-line:           #E2E8EF;   /* bordes y separadores */
  --color-bg:             #FFFFFF;
  --color-bg-soft:        #F4F8FB;   /* secciones alternas */
  --color-bg-deep:        #0E2A44;   /* footer / bloques oscuros */

  --color-success:        #1F8A5B;
  --color-danger:         #C0392B;

  /* ---- Tipografía ------------------------------------------------------- */
  --font-base: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  --font-head: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;

  --fs-base: 1.0625rem;      /* 17px */
  --lh-base: 1.65;

  /* ---- Medidas --------------------------------------------------------- */
  --container: 1180px;
  --container-narrow: 780px;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 42, 67, .06), 0 2px 8px rgba(16, 42, 67, .06);
  --shadow-md: 0 8px 30px rgba(16, 42, 67, .10);
  --shadow-lg: 0 24px 60px rgba(11, 92, 171, .16);
  --header-h: 78px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* =========================================================================
   Reset y base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 20px);
  overflow-x: clip;               /* corta el desbordamiento del menú móvil sin romper el sticky */
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-body);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;   /* iOS <= 15 y navegadores viejos */
  overflow-x: clip;     /* resto: no crea contenedor de scroll, no afecta al sticky */
}

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--color-ink);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 800;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.15rem); }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.45rem); }
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0 0 1.1em; }
a { color: var(--color-primary-dark); text-decoration-color: rgba(11,92,171,.35); text-underline-offset: 3px; }
a:hover { color: var(--color-primary); }

strong, b { font-weight: 700; color: var(--color-ink); }

ul, ol { padding-left: 1.25em; margin: 0 0 1.2em; }
li { margin-bottom: .5em; }

hr { border: 0; border-top: 1px solid var(--color-line); margin: 2.5rem 0; }

::selection { background: var(--color-primary); color: #fff; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: .8rem 1.2rem;
  z-index: 999;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* =========================================================================
   Utilidades de layout
   ========================================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.2rem);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(2.5rem, 1.6rem + 4.2vw, 6rem); }
.section--soft { background: var(--color-bg-soft); }
.section--tint { background: var(--color-primary-tint); }
.section--deep { background: var(--color-bg-deep); color: #cfe0ef; }
.section--deep h2, .section--deep h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: .9rem;
}
.section--deep .eyebrow { color: #7fc0ec; }
.lead { font-size: 1.16rem; color: var(--color-muted); }
.section--deep .lead { color: #b9cee0; }

.grid { display: grid; gap: clamp(1.1rem, .6rem + 1.6vw, 1.8rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1.1rem; }

/* =========================================================================
   Botones
   ========================================================================= */
.btn {
  --btn-bg: var(--color-primary);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .98rem;
  line-height: 1;
  padding: .95em 1.5em;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s;
  box-shadow: 0 6px 18px rgba(11, 92, 171, .28);
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(11,92,171,.34); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--color-primary-dark);
  border-color: rgba(11, 92, 171, .28);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--color-primary-light); color: var(--color-primary-dark); box-shadow: none; }

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--color-primary-dark);
  box-shadow: 0 6px 18px rgba(3, 20, 40, .18);
}
.btn--light:hover { color: var(--color-primary-darker); }

.btn--on-dark.btn--ghost { --btn-fg: #fff; border-color: rgba(255,255,255,.4); }
.btn--on-dark.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

.btn--sm { padding: .7em 1.15em; font-size: .88rem; }
.btn--block { display: flex; width: 100%; justify-content: center; }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.btn-row.center { justify-content: center; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-weight: 700;
  font-family: var(--font-head);
  text-decoration: none;
  color: var(--color-primary-dark);
}
.arrow-link svg { transition: transform .2s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }

/* =========================================================================
   Cabecera / navegación
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand__mark {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: #fff;
  padding: 3px;
  object-fit: contain;
  border: 1px solid var(--color-line);
  box-shadow: 0 2px 10px rgba(11, 92, 171, .16);
}
.site-footer .brand__mark { border-color: rgba(255, 255, 255, .16); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--color-ink); letter-spacing: -.02em; }
.brand__tag { font-size: .72rem; color: var(--color-muted); font-weight: 500; letter-spacing: .02em; }

.main-nav { display: flex; align-items: center; gap: .3rem; }
.main-nav > ul {
  display: flex;
  align-items: center;
  gap: .2rem;
  list-style: none;
  margin: 0; padding: 0;
}
.main-nav a {
  display: block;
  padding: .6rem .85rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  color: var(--color-ink);
  text-decoration: none;
  border-radius: 8px;
}
.main-nav a:hover,
.main-nav .current > a { color: var(--color-primary); background: var(--color-primary-light); }

.has-sub { position: relative; }
.has-sub > a::after {
  content: "";
  display: inline-block;
  width: .42em; height: .42em;
  margin-left: .45em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: .6;
}
.sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 288px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: .5rem;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.has-sub:hover > .sub-menu,
.has-sub:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sub-menu a { padding: .6rem .8rem; font-weight: 500; font-size: .92rem; border-radius: 8px; }
.sub-menu a small { display: block; font-weight: 400; color: var(--color-muted); font-size: .8rem; margin-top: .1rem; }

.header-cta { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--color-line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform .2s var(--ease), opacity .2s;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(6px); position: relative; top: -2px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: rotate(-45deg); top: -2px; }

@media (max-width: 1040px) {
  :root { --header-h: 64px; }

  /* Sin backdrop-filter en la cabecera: si no, se convierte en el bloque
     contenedor del menú fijo y este no ocupa toda la altura de la pantalla */
  .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: #fff;
  }

  .nav-toggle { display: inline-flex; }
  .header-cta .btn:not(.nav-toggle) { display: none; }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 auto;
    width: min(380px, 88vw);
    height: auto;
    z-index: 95;                        /* por encima del fondo oscuro (90) */
    background: #fff;
    border-left: 1px solid var(--color-line);
    box-shadow: var(--shadow-lg);
    padding: 1.2rem 1.1rem 2.5rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    visibility: hidden;                 /* fuera del orden de tabulación cuando está cerrado */
    transition: transform .3s var(--ease), visibility .3s;
    display: block;
  }
  body.nav-open .main-nav { transform: translateX(0); visibility: visible; }
  body.nav-open { overflow: hidden; }

  .main-nav > ul { flex-direction: column; align-items: stretch; gap: .1rem; }
  .main-nav a { padding: .85rem .8rem; font-size: 1rem; }
  .has-sub > a::after { float: right; margin-top: .5em; }
  .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--color-primary-light);
    border-radius: 0;
    margin: .1rem 0 .5rem .6rem;
    padding: .2rem 0 .2rem .4rem;
    min-width: 0;
  }
  .main-nav .mobile-cta { margin-top: 1rem; display: flex; flex-direction: column; gap: .6rem; }
  .main-nav .mobile-cta .btn { display: flex; }
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 42, 68, .4);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s;
  z-index: 90;
}
body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }

@media (min-width: 1041px) {
  .main-nav .mobile-cta { display: none; }
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--color-primary-tint), #fff 70%);
  padding-block: clamp(2.2rem, 1.4rem + 4vw, 6.5rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(30,136,199,.16), transparent 62%);
  border-radius: 50%;
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
  position: relative;
}
.hero h1 { margin-bottom: .35em; }
.hero__lead { font-size: 1.2rem; color: var(--color-muted); max-width: 46ch; }
.hero .btn-row { margin-top: 1.8rem; }
.hero__trust { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; }
.hero__trust span { font-size: .86rem; color: var(--color-muted); display: flex; align-items: center; gap: .45rem; font-weight: 600; }
.hero__trust svg { color: var(--color-primary); flex-shrink: 0; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  /* en móvil el titular va primero; la ilustración (decorativa) queda debajo */
  .hero__media { max-width: 420px; margin-inline: auto; width: 100%; }
  .hero .btn-row { margin-top: 1.5rem; }
  .hero__trust { margin-top: 1.6rem; }
}

/* Ilustración SVG del hero / tarjetas visuales */
.figure-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.4rem;
}
.figure-card svg { border-radius: var(--radius); width: 100%; height: auto; }
.figure-card__caption { margin-top: 1rem; font-size: .85rem; color: var(--color-muted); text-align: center; }

/* =========================================================================
   Tarjetas
   ========================================================================= */
.card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .2s var(--ease), border-color .2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
a.card { text-decoration: none; color: inherit; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(11,92,171,.3); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--color-muted); font-size: .96rem; margin-bottom: 1rem; }
.card .arrow-link { margin-top: auto; }
.card__icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: grid; place-items: center;
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 26px; height: 26px; }

.card--species { text-align: left; }
.card--species .card__icon { background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); color: #fff; }

/* Lista de items con check */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 1.9rem; margin-bottom: .8rem; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .15em;
  width: 1.25rem; height: 1.25rem;
  border-radius: 50%;
  background: var(--color-primary-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230B5CAB' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Pasos numerados */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.4rem; }
.steps li { position: relative; padding-left: 3.4rem; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 0; top: -.1rem;
  width: 2.4rem; height: 2.4rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
}
.steps li h4 { margin-bottom: .2rem; }
.steps li p { color: var(--color-muted); margin-bottom: 0; font-size: .95rem; }

/* =========================================================================
   Bloque CTA (GENETVET, presupuesto)
   ========================================================================= */
.cta-band {
  background: linear-gradient(120deg, var(--color-primary), var(--color-primary-darker));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 1.2rem + 2vw, 3rem);
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 52ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 1.5rem; }

.genetvet-box {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  background: var(--color-primary-light);
  border: 1px solid rgba(11,92,171,.18);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  margin-block: 2rem;
}
.genetvet-box p { margin: 0; font-size: .95rem; color: var(--color-primary-darker); }
.genetvet-box strong { color: var(--color-primary-darker); }

/* =========================================================================
   Contenido de artículo (páginas de servicio, legales)
   ========================================================================= */
.page-hero {
  background: linear-gradient(180deg, var(--color-primary-tint), #fff);
  padding-block: clamp(1.9rem, 1.2rem + 3vw, 4.2rem);
  border-bottom: 1px solid var(--color-line);
}
.breadcrumbs { font-size: .84rem; color: var(--color-muted); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--color-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs span { margin-inline: .4rem; opacity: .5; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul li::marker { color: var(--color-primary); }
.prose .faq { border-top: 1px solid var(--color-line); margin-top: 2.4rem; }
.prose .faq h3 { font-size: 1.15rem; }

.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: start;
}
.sidebar-card {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 1.4rem;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.sidebar-card h4 { margin-bottom: .8rem; }
.sidebar-card ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.sidebar-card li { margin-bottom: .5rem; }
.sidebar-card a { font-size: .92rem; text-decoration: none; font-weight: 500; }

@media (max-width: 900px) {
  .content-layout { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
}

.tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  padding: .3em .8em;
  border-radius: 999px;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  margin: 0 .3rem .3rem 0;
}

/* Tabla sencilla */
.table-wrap { overflow-x: auto; margin-block: 1.5rem; }
table.data { border-collapse: collapse; width: 100%; font-size: .93rem; }
table.data th, table.data td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--color-line); }
table.data th { background: var(--color-bg-soft); font-family: var(--font-head); color: var(--color-ink); }

/* =========================================================================
   Formularios
   ========================================================================= */
.form-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.5rem, 1rem + 2vw, 2.6rem);
}
.field { margin-bottom: 1.3rem; }
.field > label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  color: var(--color-ink);
  margin-bottom: .4rem;
}
.field .req { color: var(--color-danger); }
.field .hint { font-weight: 400; color: var(--color-muted); font-size: .84rem; }

.input, .select, .textarea {
  width: 100%;
  font-family: var(--font-base);
  font-size: 1rem;
  color: var(--color-ink);
  background: #fff;
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: .8rem .95rem;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-light);
}
.textarea { min-height: 130px; resize: vertical; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235D6B78' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  padding-right: 2.6rem;
}
.field-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .field-2col { grid-template-columns: 1fr; } }

.check-field {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-size: .9rem;
  color: var(--color-body);
}
.check-field input { margin-top: .2rem; width: 1.1rem; height: 1.1rem; flex-shrink: 0; accent-color: var(--color-primary); }

.form-note { font-size: .85rem; color: var(--color-muted); margin-top: 1rem; }
.hp-field { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

.form-fallback {
  margin-top: 1.4rem;
  padding: 1rem 1.2rem;
  background: var(--color-primary-tint);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  font-size: .9rem;
}

/* Campo "Especifica cuál" que aparece al elegir Otros */
.reveal-field[hidden] { display: none; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  background: var(--color-bg-deep);
  color: #a9c1d6;
  padding-block: 3.5rem 2rem;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: #a9c1d6; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__tag { color: #7f9bb4; }
.footer-brand p { color: #8ba7be; max-width: 34ch; margin-top: 1rem; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact svg { flex-shrink: 0; margin-top: .2rem; color: #6fb1e0; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.6rem;
  font-size: .84rem;
  color: #7f9bb4;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   Botón flotante de WhatsApp
   ========================================================================= */
.wa-float {
  position: fixed;
  right: clamp(1rem, 2vw, 1.8rem);
  bottom: clamp(1rem, 2vw, 1.8rem);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  padding: .85rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(11, 92, 171, .4);
  transition: transform .18s var(--ease), box-shadow .2s, bottom .25s var(--ease);
}
.wa-float:hover { transform: translateY(-2px) scale(1.02); color: #fff; box-shadow: 0 16px 38px rgba(11,92,171,.5); }
@media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } }
.wa-float svg { width: 22px; height: 22px; flex-shrink: 0; }
.wa-float__label { white-space: nowrap; }
@media (max-width: 560px) {
  .wa-float__label { display: none; }
  .wa-float { padding: .95rem; }
}
/* En pantallas estrechas el aviso de cookies ocupa el ancho: el botón sube por encima */
@media (max-width: 900px) {
  .wa-float { bottom: calc(clamp(1rem, 2vw, 1.8rem) + var(--wa-lift, 0px)); }
}

/* =========================================================================
   Banner de cookies
   ========================================================================= */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(680px, calc(100vw - 2rem));
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.3rem 1.4rem;
  z-index: 120;
  font-size: .9rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0 0 1rem; color: var(--color-body); }
.cookie-banner .btn-row { gap: .7rem; }
.cookie-banner a { font-weight: 600; }

/* En móvil: hoja inferior a todo el ancho; el botón de WhatsApp se aparta solo (--wa-lift) */
@media (max-width: 560px) {
  .cookie-banner {
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    border-radius: var(--radius) var(--radius) 0 0;
    border-left: 0;
    border-right: 0;
    padding: 1rem 1.1rem calc(1rem + env(safe-area-inset-bottom, 0px));
    font-size: .86rem;
  }
  .cookie-banner p { margin-bottom: .85rem; }
  .cookie-banner .btn-row .btn { flex: 1 1 auto; justify-content: center; }
}

/* =========================================================================
   Avisos / mensajes
   ========================================================================= */
.notice {
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-size: .93rem;
  border: 1px solid var(--color-line);
  background: var(--color-bg-soft);
}
.notice--success { background: #eaf6f0; border-color: #bfe4d1; color: #16613f; }

.big-check {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: #eaf6f0;
  color: var(--color-success);
  display: grid; place-items: center;
  margin: 0 auto 1.5rem;
}

/* =========================================================================
   Franja de logos / datos
   ========================================================================= */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat-row .num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.7rem); color: var(--color-primary); line-height: 1; }
.stat-row .lbl { font-size: .88rem; color: var(--color-muted); margin-top: .4rem; }
@media (max-width: 700px) { .stat-row { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; } }

/* =========================================================================
   Animación de entrada (respetando reduce-motion)
   ========================================================================= */
/* El contenido es visible por defecto. La animación de entrada solo se activa
   si el navegador ejecuta JavaScript (clase .js en <html>), de modo que sin JS
   nada queda oculto. */
@media (prefers-reduced-motion: no-preference) {
  :root.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  :root.js .reveal.is-visible { opacity: 1; transform: none; }
}

/* =========================================================================
   Ajustes finos para móvil
   ========================================================================= */
@media (max-width: 700px) {
  /* Áreas de toque más cómodas */
  .footer-bottom { gap: .8rem; }
  .footer-bottom nav { gap: .1rem 1.1rem; }
  .footer-bottom nav a { display: inline-block; padding-block: .45rem; }
  .sidebar-card ul { margin-bottom: .4rem; }
  .sidebar-card li { margin-bottom: 0; }
  .sidebar-card a { display: block; padding: .55rem 0; }

  /* La ilustración del hero ocupa menos alto */
  .hero .figure-card { padding: 1rem; }
  .hero .figure-card__caption { margin-top: .7rem; }

  /* El recuadro GENETVET se lee mejor apilado */
  .genetvet-box { flex-direction: column; align-items: flex-start; gap: .9rem; }
}

@media (max-width: 520px) {
  /* Los botones de acción principales, a todo el ancho */
  .hero .btn-row .btn,
  .page-hero .btn-row .btn,
  .cta-band .btn-row .btn { width: 100%; justify-content: center; }
  .hero .btn-row,
  .page-hero .btn-row,
  .cta-band .btn-row { gap: .7rem; }

  h1 { hyphens: auto; }
  .section-head { margin-bottom: 1.8rem; }
}

/* Tablas (páginas legales) en móvil: cada fila se apila como una ficha */
@media (max-width: 640px) {
  table.data thead {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
  }
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: auto; }
  table.data tr {
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    background: var(--color-bg-soft);
    padding: .35rem 0;
    margin-bottom: 1rem;
  }
  table.data td {
    border: 0;
    padding: .5rem 1rem;
    font-size: .92rem;
  }
  table.data td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .74rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: .1rem;
  }
  table.data code { overflow-wrap: anywhere; }
}

/* Print */
@media print {
  .site-header, .site-footer, .wa-float, .cookie-banner, .btn { display: none !important; }
  body { color: #000; }
}
