/* ==========================================================================
   Centro EBM — hoja de estilos
   Sistema de diseño calcado del sitio actual (Elementor kit-92):
   Marcellus + Poppins · negro sobre blanco · azul #C2D2DC · crema #FFFBEF
   · acento dorado #D9AB52 · contenedor 1170px
   ========================================================================== */

:root {
  --ink: #000000;
  --ink-soft: #3a3a3a;
  --grey: #656565;
  --grey-light: #8d9fab;
  --paper: #ffffff;
  --paper-soft: #f5f5f5;
  --blue: #c2d2dc;
  --blue-deep: #a9bdc9;
  --cream: #fffbef;
  --gold: #d9ab52;
  --gold-dark: #b98f3e;
  --line: rgba(0, 0, 0, 0.14);

  --font-display: "Marcellus", "Playfair Display", Georgia, serif;
  --font-body: "Poppins", "Helvetica Neue", Arial, sans-serif;

  --container: 1170px;
  --container-wide: 1400px;
  --header-h: 104px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.25px;
  font-weight: 300;
  overflow-x: hidden;
}
img, svg, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--gold); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--ink); }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 0.6em;
  letter-spacing: 0.2px;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.35rem, 2.1vw, 1.85rem); }
h4 { font-size: clamp(1.15rem, 1.5vw, 1.4rem); }
p { margin: 0 0 1.4em; }
p:last-child { margin-bottom: 0; }

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

/* ---------- utilidades ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container--wide { max-width: var(--container-wide); }
.section { padding: clamp(64px, 8vw, 118px) 0; }
.section--tight { padding: clamp(48px, 5vw, 76px) 0; }
.section--soft { background: var(--paper-soft); }
.section--blue { background: var(--blue); }
.section--cream { background: var(--cream); }
.section--ink { background: #0b0b0b; color: #f2f2f2; }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0 0 18px;
  line-height: 1.7;
}
.section--ink .eyebrow { color: var(--blue); }
.lead { font-size: clamp(1.02rem, 1.35vw, 1.15rem); color: var(--ink-soft); line-height: 1.95; }
.muted { color: var(--grey); }
.center { text-align: center; }
.measure { max-width: 62ch; }
.measure-tight { max-width: 48ch; }
.center .measure, .center .measure-tight { margin-inline: auto; }

.rule {
  width: 54px;
  height: 1px;
  background: var(--gold);
  border: 0;
  margin: 0 0 26px;
}
.center .rule { margin-inline: auto; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn--solid { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--solid:hover, .btn--solid:focus-visible { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn--ghost { color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--ink); color: #fff; }
.btn--light { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn--light:hover, .btn--light:focus-visible { background: #fff; color: var(--ink); border-color: #fff; }
.btn__ico { width: 16px; height: 16px; flex: none; }

.cta-note {
  font-size: 13px;
  color: var(--grey);
  letter-spacing: 0.4px;
  margin: 16px 0 0;
  line-height: 1.7;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.center .btn-row { justify-content: center; }

/* ---------- cabecera ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  padding: 18px 24px 0;
  transition: padding 0.35s var(--ease);
}
.header__inner {
  max-width: var(--container-wide);
  margin-inline: auto;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(140%) blur(6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 26px;
  transition: padding 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.header.is-stuck { padding-top: 0; }
.header.is-stuck .header__inner { padding: 6px 26px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); }

.brand { display: inline-flex; align-items: center; }
.brand img {
  width: auto;
  height: 66px;
  transition: height 0.35s var(--ease);
}
.header.is-stuck .brand img { height: 52px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  position: relative;
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 0;
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: var(--gold); }

.nav__item { position: relative; }
.nav__panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 254px;
  background: #fff;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.13);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
}
.nav__item:hover .nav__panel,
.nav__item:focus-within .nav__panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__panel a {
  display: block;
  padding: 11px 24px;
  font-size: 11.5px;
  letter-spacing: 1.4px;
}
.nav__panel a::after { display: none; }
.nav__panel a:hover { background: var(--paper-soft); color: var(--gold); }

.header__cta { display: inline-flex; }
.header__cta .btn { padding: 12px 22px; min-height: 44px; }

.burger {
  display: none;
  width: 46px; height: 46px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.burger span {
  display: block;
  position: relative;
  width: 24px; height: 1px;
  background: var(--ink);
  transition: background 0.2s;
}
.burger span::before, .burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px; height: 1px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger span::after { transform: translateY(-7px) rotate(-45deg); }

/* menú móvil */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: #fff;
  padding: 118px 28px 40px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
body.menu-open .mobile-nav { opacity: 1; visibility: visible; transform: none; }
.mobile-nav a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--ink);
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a.sub { font-family: var(--font-body); font-size: 0.9rem; letter-spacing: 1.4px; text-transform: uppercase; padding-left: 18px; color: var(--grey); }
.mobile-nav a.btn {
  margin-top: 26px;
  width: 100%;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  color: #fff;
  padding: 15px 24px;
}
.mobile-nav__contact { margin-top: 28px; font-size: 14px; color: var(--grey); line-height: 2; }
.mobile-nav__contact a {
  display: inline;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--gold);
  padding: 0;
  border: 0;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  background: var(--paper-soft);
  overflow: hidden;
}
.hero__media {
  position: relative;
  height: 100%;
  min-height: min(100svh, 900px);
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 32%;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--paper-soft) 0%, rgba(245, 245, 245, 0) 26%);
}
.hero__body {
  padding: calc(var(--header-h) + 40px) clamp(24px, 4vw, 68px) 64px clamp(24px, 6vw, 96px);
  max-width: 780px;
  margin-left: auto;
}
/* La frase entera, visible y protagonista en escritorio (corrección pedida) */
.hero__title {
  font-size: clamp(2rem, 3.15vw, 3.15rem);
  line-height: 1.14;
  margin-bottom: 0.5em;
  max-width: 18ch;
}
.hero__title span {
  display: block;
  font-size: 0.6em;
  line-height: 1.32;
  color: var(--ink-soft);
  margin-top: 0.42em;
  max-width: 26ch;
}
.hero__text { max-width: 52ch; color: var(--ink-soft); }
.hero__signature {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey);
}
.hero__signature::before { content: ""; width: 38px; height: 1px; background: var(--gold); flex: none; }

/* hero interior de páginas */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 84px) 0 clamp(56px, 7vw, 96px);
  background: var(--paper-soft);
  overflow: hidden;
}
.page-hero--image { color: #fff; background: #111; }
.page-hero--image .page-hero__bg {
  position: absolute;
  inset: 0;
}
.page-hero--image .page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--image .page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.42) 55%, rgba(0, 0, 0, 0.22) 100%);
}
.page-hero--image .container { position: relative; }
.page-hero--image h1, .page-hero--image .eyebrow { color: #fff; }
.page-hero--image .eyebrow { color: var(--blue); }
.page-hero--image .lead { color: rgba(255, 255, 255, 0.86); }
.page-hero__title { max-width: 20ch; }

.breadcrumbs {
  font-size: 11.5px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 22px;
}
.breadcrumbs a { color: var(--grey); }
.breadcrumbs a:hover { color: var(--gold); }
.page-hero--image .breadcrumbs, .page-hero--image .breadcrumbs a { color: rgba(255, 255, 255, 0.7); }
.breadcrumbs span { margin: 0 8px; opacity: 0.6; }

/* ---------- rejillas y tarjetas ---------- */
.grid { display: grid; gap: clamp(20px, 2.4vw, 34px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(26px, 3vw, 40px);
  height: 100%;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card h3, .card h4 { margin-bottom: 0.5em; }
.card p { font-size: 15px; color: var(--ink-soft); }
.card--hover:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.09); border-color: rgba(0, 0, 0, 0.06); }
.card__num {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
}

.tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111;
  color: #fff;
  min-height: 340px;
}
.tile img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter 0.6s var(--ease);
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06) 25%, rgba(0, 0, 0, 0.74) 100%);
  transition: background 0.5s var(--ease);
}
.tile:hover img { transform: scale(1.06); }
.tile__body { position: relative; z-index: 2; padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 340px; }
.tile__body h3 { color: #fff; font-size: 1.45rem; margin-bottom: 6px; }
.tile__body p { color: rgba(255, 255, 255, 0.84); font-size: 14px; margin: 0; line-height: 1.7; }
.tile__more {
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--blue);
}

/* bloque texto + imagen */
.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: center;
}
.split--wide { grid-template-columns: 1.08fr 0.92fr; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__media--tall img { aspect-ratio: 3 / 4; }
.split--reverse .split__media { order: 2; }

.figure-caption {
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 12px;
}

/* listas con criterio */
.checklist { display: grid; gap: 14px; margin: 0 0 8px; }
.checklist li {
  position: relative;
  padding-left: 30px;
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.75;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 14px; height: 1px;
  background: var(--gold);
}
.checklist--tight li { font-size: 15px; }

/* cita / frase destacada */
.pullquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2.05rem);
  line-height: 1.42;
  max-width: 22ch;
}
.pullquote--wide { max-width: 34ch; }

/* datos / cifras */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; display: block; }
.stat__label { font-size: 12px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--grey); margin-top: 12px; display: block; }
.section--ink .stat__label { color: var(--blue); }

/* testimonios */
.quote-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(26px, 3vw, 38px);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.quote-card p { font-style: italic; color: var(--ink-soft); font-size: 15px; line-height: 1.85; }
.quote-card footer {
  margin-top: auto;
  padding-top: 18px;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--grey);
}
.stars { color: var(--gold); letter-spacing: 3px; font-size: 13px; margin-bottom: 14px; }

/* acordeón / preguntas */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__btn {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  padding: 22px 44px 22px 0;
  cursor: pointer;
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--ink);
  line-height: 1.4;
}
.accordion__btn::after {
  content: "";
  position: absolute;
  right: 8px; top: 50%;
  width: 12px; height: 12px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.35s var(--ease);
}
.accordion__item.is-open .accordion__btn::after { transform: translateY(-20%) rotate(-135deg); }
.accordion__panel { overflow: hidden; height: 0; }
.accordion__panel > div { padding: 0 44px 26px 0; color: var(--ink-soft); font-size: 15.5px; }

/* fichas de aparatología */
.device {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(26px, 4vw, 62px);
  align-items: center;
  padding: clamp(38px, 5vw, 64px) 0;
  border-top: 1px solid var(--line);
}
.device:first-of-type { border-top: 0; }
.device--reverse .device__media { order: 2; }
.device__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.device__name { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.device__tag {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gold);
}
.device__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 34px; margin-top: 26px; }
.device__cols h4 { font-family: var(--font-body); font-size: 12px; letter-spacing: 1.7px; text-transform: uppercase; color: var(--grey); margin-bottom: 12px; }

/* galería */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery figure { margin: 0; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 1s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery .span-2 { grid-column: span 2; }
.gallery .tall img { aspect-ratio: 3 / 4; }

/* especiales EBM — huecos de imagen que el centro cambia 2-3 veces al año */
.especial {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
}
.especial--reverse .especial__media { order: 2; }
.especial__media img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.especial__body { padding: clamp(26px, 3.4vw, 46px); }
.especial__season {
  font-size: 11px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}

/* formulario */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label {
  font-size: 11.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--grey);
}
.field input, .field textarea, .field select {
  width: 100%;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 15px 18px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 12px; }
.field--check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--gold); }
.field--check label { text-transform: none; letter-spacing: 0.2px; font-size: 13px; line-height: 1.7; color: var(--grey); }
.form__note { font-size: 12.5px; color: var(--grey); line-height: 1.7; }
.form-status { font-size: 14px; padding: 14px 16px; border: 1px solid var(--gold); background: var(--cream); display: none; }
.form-status.is-visible { display: block; }

/* mapa: limpio, sin filtros de color (el actual se veía amarillo) */
.map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  background: var(--paper-soft);
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: none; }

.info-list { display: grid; gap: 22px; }
.info-list dt {
  font-size: 11.5px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 4px;
}
.info-list dd { margin: 0; font-size: 16px; color: var(--ink); }
.info-list a { color: var(--ink); border-bottom: 1px solid var(--gold); }
.info-list a:hover { color: var(--gold); }

/* franja de marcas / banner */
.brandbar { display: flex; align-items: center; justify-content: center; }
.brandbar img { max-width: 760px; width: 100%; }

/* ---------- pie ---------- */
.footer { background: var(--blue); color: var(--ink); padding: clamp(56px, 6vw, 84px) 0 34px; }
.footer__top { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 44px; align-items: start; }
.footer__seal img { width: 190px; margin-bottom: 20px; }
.footer h3 {
  font-family: var(--font-body);
  font-size: 11.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 18px;
  opacity: 0.75;
}
.footer a { color: var(--ink); }
.footer a:hover { color: #fff; }
.footer__links { display: grid; gap: 11px; font-size: 14.5px; }
.footer__contact { display: grid; gap: 12px; font-size: 15px; line-height: 1.7; }
.footer__contact strong { font-weight: 500; }
.footer__legal {
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  text-align: center;
}
.footer__kit { margin-top: 30px; display: flex; justify-content: center; }
.footer__kit img { max-width: 420px; width: 100%; background: #fff; padding: 6px; }
.footer__copy { margin-top: 22px; text-align: center; font-size: 12px; color: rgba(0, 0, 0, 0.6); }

/* botón flotante WhatsApp + barra móvil */
.wa-float {
  position: fixed;
  left: 22px; bottom: 22px;
  z-index: 150;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s var(--ease);
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

.mobile-bar { display: none; }

/* ==========================================================================
   ANIMACIONES
   Regla de oro: nada se oculta salvo que el documento esté marcado como
   animable (.js-anim, lo pone un script en el <head>). Si falla el JS, si
   falla la CDN de GSAP o si el usuario pide menos movimiento, la web se ve
   entera y quieta. La clase .anim-off es el paracaídas (temporizador).
   ========================================================================== */
.js-anim .reveal { opacity: 0; }
.reveal.is-ready { opacity: 1; }
.js-anim [data-split] { visibility: hidden; }
[data-split].is-split { visibility: visible; }

.anim-off .reveal,
.anim-off [data-split] { opacity: 1 !important; visibility: visible !important; transform: none !important; }
.anim-off .page-fade { opacity: 0 !important; }

/* velo de entrada / transición entre páginas */
.page-fade {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--paper);
  opacity: 0;
  pointer-events: none;
}
.js-anim .page-fade { opacity: 1; }

/* barra de progreso de lectura (sólo en la página de aparatología) */
.scroll-progress { display: none; }
body[data-page="aparatologia"] .scroll-progress {
  display: block;
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 260;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
}

/* barrido dorado de los botones */
.btn { position: relative; overflow: hidden; isolation: isolate; --sweep: var(--gold); }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--sweep);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.45s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left center; }
.btn:hover, .btn:focus-visible { background: transparent; }
.btn--solid { --sweep: var(--gold); }
.btn--ghost { --sweep: var(--ink); }
.btn--light { --sweep: #fff; }
.btn--light:hover, .btn--light:focus-visible { color: var(--ink); }

/* flecha de las fichas al pasar el ratón */
.tile__more { display: inline-flex; align-items: center; gap: 8px; }
.tile__more::after {
  content: "→";
  transform: translateX(-4px);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.tile:hover .tile__more::after { transform: translateX(0); opacity: 1; }

/* cinta de tecnologías */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 24px 0;
  background: var(--paper);
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.9vw, 1.55rem);
  letter-spacing: 0.5px;
  color: var(--ink);
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  gap: 26px;
  white-space: nowrap;
}
.marquee__item::after { content: "✳"; font-size: 0.55em; color: var(--gold); transform: translateY(-2px); }

/* medios que entran con un ligero acercamiento */
.media-clip { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, [data-split] { opacity: 1 !important; visibility: visible !important; transform: none !important; }
  .page-fade { display: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1120px) {
  .nav { gap: 20px; }
  .nav a { font-size: 11px; letter-spacing: 1.2px; }
  .brand img { height: 58px; }
}

@media (max-width: 1000px) {
  :root { --header-h: 88px; }
  .nav, .header__cta { display: none; }
  .burger { display: inline-flex; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { order: -1; min-height: 0; height: auto; }
  .hero__media img { aspect-ratio: 4 / 3.1; height: auto; object-position: 62% 26%; }
  .hero__media::after { background: linear-gradient(0deg, var(--paper-soft) 0%, rgba(245, 245, 245, 0) 34%); }
  .hero__body { padding: 30px 24px 60px; max-width: none; margin: 0; }
  .hero__title { font-size: clamp(1.85rem, 6.6vw, 2.5rem); max-width: 22ch; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split, .device, .especial { grid-template-columns: 1fr; }
  .split--reverse .split__media, .device--reverse .device__media, .especial--reverse .especial__media { order: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr; gap: 34px; text-align: center; }
  .footer__seal img { margin-inline: auto; }
  .footer__links, .footer__contact { justify-items: center; }
  .page-hero { padding-top: calc(var(--header-h) + 56px); }
}

@media (max-width: 700px) {
  body { font-size: 15.5px; }
  .header { padding: 10px 14px 0; }
  .header__inner { padding: 10px 16px; }
  .brand img { height: 48px; }
  .grid--3, .grid--4, .grid--2, .stats { grid-template-columns: 1fr; }
  .stats { gap: 30px; text-align: center; }
  .device__cols { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery .span-2 { grid-column: span 2; }
  /* en móvil el WhatsApp ya está en la barra inferior: el botón flotante sobra */
  .wa-float { display: none; }

  /* barra de acción fija en móvil: llamar · whatsapp · cómo llegar */
  .mobile-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 160;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
  }
  .mobile-bar a {
    padding: 13px 6px;
    text-align: center;
    font-size: 10.5px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--ink);
    display: grid;
    gap: 5px;
    justify-items: center;
    min-height: 56px;
    align-content: center;
  }
  .mobile-bar a + a { border-left: 1px solid var(--line); }
  .mobile-bar svg { width: 17px; height: 17px; fill: var(--gold); }
  body { padding-bottom: 58px; }
  .footer { padding-bottom: 22px; }
}
