/* Mar Austral Origin — sistema visual corporativo */
:root {
  --bg: #06111d;
  --bg-soft: #0c1d31;
  --card: #0f2238;
  --line: rgba(255, 255, 255, 0.12);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #f7fbff;
  --muted: #c7d6e7;
  --accent: #97d8ff;
  --accent-2: #dff4ff;
  --gold: #d8c28a;
  --radius: 28px;
  --radius-sm: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --max: 1200px;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-ui: "Outfit", "Segoe UI", system-ui, sans-serif;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-hover: 0.45s;
  --dur-reveal: 0.9s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Evita franja clara bajo el pie (canvas del html o overscroll). */
  background-color: var(--bg);
}

body {
  /* !important: plugins/Customizer a veces añaden margen; el colapso con el último hijo puede mostrar ~1.5em (~25.5px) como “margin” del body en DevTools. */
  margin: 0 !important;
  display: flow-root;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-ui);
  font-weight: 400;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(76, 140, 192, 0.16), transparent 28%),
    linear-gradient(180deg, var(--bg), #040a13 68%, #091526);
  background-attachment: fixed;
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  position: relative;
  isolation: isolate;
}

#page.site {
  display: flow-root;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

main {
  position: relative;
  z-index: 1;
}

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

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

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

/* ——— Tipografía ——— */
.font-display {
  font-family: var(--font-display);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.5rem, 6.5vw, 3.75rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 600;
}

p {
  margin: 0;
}

.kicker {
  font-family: var(--font-ui);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.68rem;
  font-weight: 600;
  font-family: var(--font-ui);
}

.text-muted {
  color: var(--muted);
}

.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: var(--accent-2);
  line-height: 1.45;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /*
   * Sin backdrop-filter: en Chromium, sticky + blur sobre el documento
   * suele generar “capas fantasma” al hover (texto del hero debajo se ve como
   * franja blanquecina o subcabecera incorrecta hasta el siguiente repaint).
   */
  background: linear-gradient(
    180deg,
    rgba(4, 10, 19, 0.98) 0%,
    rgba(4, 10, 19, 0.94) 100%
  );
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.2);
  isolation: isolate;
}

/* Barra de administración (WP): html suele llevar margin-top ~32px; el sticky debe anidar debajo. */
body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.65rem 0;
}

.brand {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text);
  white-space: nowrap;
  z-index: 2;
}

.brand-logo {
  display: block;
  height: 2.25rem;
  width: auto;
  max-width: min(200px, 46vw);
  object-fit: contain;
}

.brand:hover {
  color: var(--accent-2);
}

.brand:hover .brand-logo {
  opacity: 0.92;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-toggle .icon,
.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-toggle[aria-expanded="true"] .toggle-icon-open {
  display: none !important;
}

.nav-toggle[aria-expanded="false"] .toggle-icon-close {
  display: none !important;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.35rem;
}

.site-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.09em;
  transition: color 0.2s ease;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
}

/* Idioma: desktop = desplegable; móvil = fila horizontal */
.lang-wrap {
  position: relative;
  flex-shrink: 0;
}

.lang-dropdown {
  display: none;
}

.lang-dropdown__summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}

.lang-dropdown__summary::-webkit-details-marker {
  display: none;
}

.lang-dropdown__summary::after {
  content: "";
  display: inline-block;
  width: 0.35rem;
  height: 0.35rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -0.2em;
  opacity: 0.85;
  transition: transform 0.2s ease;
}

.lang-dropdown[open] .lang-dropdown__summary::after {
  transform: rotate(225deg);
  margin-top: 0.1em;
}

.lang-dropdown__panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 7.5rem;
  padding: 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: rgba(8, 14, 24, 0.96);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 120;
}

.lang-dropdown__opt {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
  line-height: 1.2;
}

.lang-dropdown__opt--active {
  background: var(--text);
  color: #07111f;
}

/* Móvil: fila horizontal (píldoras en línea) */
.lang-switch--row {
  display: none;
  align-items: center;
  gap: 0;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.05);
}

.lang-pill {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  user-select: none;
  line-height: 1.2;
}

.lang-pill--active {
  background: var(--text);
  color: #07111f;
}

@media (min-width: 961px) {
  .lang-dropdown {
    display: block;
  }

  .lang-switch--row {
    display: none !important;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

@media (max-width: 960px) {
  /*
   * backdrop-filter en .site-header hace que position:fixed de los hijos
   * se resuelva contra el header (franja pequeña). En móvil quitamos blur
   * del header para que el panel ocupe todo el viewport.
   */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(4, 10, 19, 0.94);
  }

  .lang-dropdown {
    display: none !important;
  }

  .lang-switch--row {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .header-actions {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    bottom: 0;
    width: 100%;
    min-width: 100%;
    max-width: 100vw;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
    z-index: 200;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 1.25rem max(1rem, env(safe-area-inset-left)) calc(1.25rem + env(safe-area-inset-bottom))
      max(1rem, env(safe-area-inset-right));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--line);
    transform: translate3d(0, -100%, 0);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: transform 0.32s ease, opacity 0.32s ease, visibility 0.32s;
    /* Fondo casi opaco para contraste; blur sobre el contenido detrás del panel */
    background: rgba(2, 6, 14, 0.92);
    backdrop-filter: blur(48px) saturate(1.85);
    -webkit-backdrop-filter: blur(48px) saturate(1.85);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    will-change: transform, opacity;
  }

  .header-actions.is-open {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
  }

  .site-nav a {
    display: block;
    width: 100%;
    padding: 0.65rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.95);
  }

  .site-nav a:hover,
  .site-nav a.is-active {
    color: #fff;
  }

  .lang-wrap {
    align-self: center;
    margin-top: 0.75rem;
  }
}

/* ——— Botones ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.9rem 1.45rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--text);
  color: #07111f;
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-2);
  color: var(--text);
}

.btn-outline {
  background: transparent;
  border-color: var(--line-2);
  color: var(--accent-2);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--gold);
  padding-left: 0;
  padding-right: 0;
}

.btn-ghost:hover {
  color: var(--accent-2);
}

/* style.css (Underscores): a, a:visited y a:focus aplican #4169e1 / #800080 / #191970 y pisan .btn (una sola clase). */
a.btn:link,
a.btn:visited,
a.btn:focus,
a.btn:focus-visible,
a.btn:active {
  text-decoration: none;
}

a.btn.btn-primary:link,
a.btn.btn-primary:visited,
a.btn.btn-primary:focus,
a.btn.btn-primary:focus-visible,
a.btn.btn-primary:active {
  color: #07111f;
}

a.btn.btn-secondary:link,
a.btn.btn-secondary:visited,
a.btn.btn-secondary:focus,
a.btn.btn-secondary:focus-visible,
a.btn.btn-secondary:active {
  color: var(--text);
}

a.btn.btn-outline:link,
a.btn.btn-outline:visited,
a.btn.btn-outline:focus,
a.btn.btn-outline:focus-visible,
a.btn.btn-outline:active {
  color: var(--accent-2);
}

a.btn.btn-ghost:link,
a.btn.btn-ghost:visited,
a.btn.btn-ghost:focus,
a.btn.btn-ghost:focus-visible,
a.btn.btn-ghost:active {
  color: var(--gold);
}

/* Underscores: a / a:visited pisan el color del bloque en tarjetas teaser (títulos y textos en magenta). */
a.card.teaser:link,
a.card.teaser:visited,
a.card.teaser:hover,
a.card.teaser:focus,
a.card.teaser:focus-visible,
a.card.teaser:active {
  color: var(--text);
  text-decoration: none;
}

a.card.teaser .teaser-link {
  color: var(--accent);
}

a.card.teaser:hover .teaser-link,
a.card.teaser:focus-visible .teaser-link {
  color: var(--gold);
}

a.card.teaser:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  overflow: hidden;
}

.hero.hero--video {
  background-color: var(--bg);
}

/* Sin poster: color de marca hasta que el JS marque reproducción real (evita flash imagen→vídeo). */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(3, 8, 16, 0.88) 0%, rgba(3, 8, 16, 0.55) 45%, rgba(6, 17, 29, 0.7) 100%),
    var(--hero-image) center / cover no-repeat;
  z-index: 0;
}

/*
 * Vídeo del hero: oculto por defecto en mobile (el atributo `media` en <source>
 * evita además la descarga). En desktop se revela cuando el JS confirma reproducción.
 */
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
  display: none;
}

.hero-video.hero-video--ready {
  opacity: 1;
}

@media (min-width: 768px) {
  .hero-video {
    display: block;
  }

  /* Con vídeo visible, el .hero-bg queda como velo degradado sobre el MP4. */
  .hero--video .hero-bg {
    background: linear-gradient(
      105deg,
      rgba(3, 8, 16, 0.88) 0%,
      rgba(3, 8, 16, 0.55) 45%,
      rgba(6, 17, 29, 0.7) 100%
    );
    animation: none;
  }
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  min-height: min(88vh, 900px);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.hero-copy .lead {
  margin-top: 1.15rem;
  max-width: 38rem;
}

.hero-copy .body {
  margin-top: 1.15rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-visual {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  border-radius: 34px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.hero-visual-tip {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  z-index: 3;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 22px;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2.5rem;
  }

  .hero-visual img {
    aspect-ratio: 16 / 11;
    max-height: 360px;
  }
}

/* ——— Secciones ——— */
.section {
  padding: clamp(4rem, 10vw, 5.5rem) 0;
}

.section.soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 44rem;
  margin-bottom: 2.25rem;
}

.section-head .text-muted {
  margin-top: 1rem;
  font-size: 1.06rem;
  max-width: 40rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-2 .order-mobile-first {
    order: -1;
  }
}

.card {
  background: linear-gradient(165deg, rgba(16, 34, 56, 0.96), rgba(9, 19, 32, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-body {
  padding: 1.65rem 1.75rem;
}

.card-body p,
.card-body li {
  color: var(--muted);
}

.stat-num {
  font-family: var(--font-ui);
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}

.image-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

@media (min-width: 721px) {
  .image-card img {
    height: 280px;
  }
}

/* Teaser links home */
.teaser {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.teaser:hover {
  border-color: var(--line-2);
  transform: translateY(-4px);
}

.teaser .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.teaser .card-body > .icon:first-of-type {
  width: 28px;
  height: 28px;
  color: var(--gold);
}

.teaser-link {
  margin-top: auto;
  padding-top: 1.25rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.teaser-link .icon {
  width: 16px;
  height: 16px;
}

/* Quote / banner */
.quote-block {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1.35rem;
  font-weight: 600;
}

.banner-visual {
  position: relative;
  border-radius: 34px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 320px;
  background:
    linear-gradient(rgba(6, 17, 29, 0.75), rgba(6, 17, 29, 0.88)),
    var(--banner-image, url("https://images.pexels.com/photos/1001682/pexels-photo-1001682.jpeg?auto=compress&cs=tinysrgb&w=2000")) center / cover no-repeat;
  padding: clamp(2rem, 5vw, 3rem);
}

.banner-visual h2 {
  max-width: 18ch;
}

.banner-visual p {
  max-width: 42rem;
  color: var(--muted);
  margin-top: 1rem;
  font-size: 1.05rem;
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 420px;
}

.split .split-content {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split img,
.split .split-media {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split .order-mobile-first {
    order: -1;
  }
}

.list-clean {
  margin: 1.25rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.list-clean li {
  margin: 0.65rem 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.75rem;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-detail {
  margin-top: 1.35rem;
}

.contact-detail p {
  margin: 0.5rem 0;
  color: var(--text);
}

.contact-detail strong {
  color: var(--accent-2);
  font-weight: 600;
}

.label-pill {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--accent-2);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ——— Page Contacto ——— */
.section--tight {
  padding: clamp(2.5rem, 6vw, 3.75rem) 0;
}

.page-contact .page-inner-hero::after {
  background:
    radial-gradient(ellipse 90% 100% at 50% 110%, rgba(151, 216, 255, 0.14), transparent 52%),
    radial-gradient(ellipse 45% 70% at 0% 40%, rgba(216, 194, 138, 0.08), transparent 55%);
}

/* Bruma marina: solo CSS (sin canvas ni blur pesado). */
.page-contact__ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-contact__ambient-blob {
  position: absolute;
  display: block;
  border-radius: 50%;
}

.page-contact__ambient-blob--a {
  width: 85%;
  height: 120%;
  left: -28%;
  top: -35%;
  background: radial-gradient(
    ellipse 55% 50% at 50% 50%,
    rgba(76, 140, 192, 0.22) 0%,
    rgba(76, 140, 192, 0.06) 42%,
    transparent 68%
  );
  opacity: 0.85;
  animation: mao-contact-drift-a 26s ease-in-out infinite alternate;
}

.page-contact__ambient-blob--b {
  width: 75%;
  height: 110%;
  right: -32%;
  bottom: -40%;
  background: radial-gradient(
    ellipse 50% 48% at 50% 50%,
    rgba(151, 216, 255, 0.2) 0%,
    rgba(151, 216, 255, 0.06) 45%,
    transparent 70%
  );
  opacity: 0.62;
  animation: mao-contact-drift-b 32s ease-in-out infinite alternate;
}

@keyframes mao-contact-drift-a {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(6%, 10%, 0) scale(1.06);
  }
}

@keyframes mao-contact-drift-b {
  0% {
    transform: translate3d(0, 0, 0) scale(1.02);
  }

  100% {
    transform: translate3d(-7%, -6%, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-contact__ambient-blob--a,
  .page-contact__ambient-blob--b {
    animation: none;
  }
}

.page-contact .page-inner-hero h1 {
  max-width: 28ch;
}

.page-contact__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.88;
}

.page-contact__wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

.page-contact__kicker {
  animation: mao-contact-kicker 3.5s ease-in-out infinite;
}

@keyframes mao-contact-kicker {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.72;
  }
}

.page-contact__metrics.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
  max-width: 72rem;
  margin-inline: auto;
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .page-contact__metrics.metrics-row {
    grid-template-columns: 1fr;
  }
}

.page-contact .metric-glass:hover {
  transform: none;
  border-color: rgba(151, 216, 255, 0.28);
  box-shadow:
    var(--shadow),
    0 0 40px rgba(151, 216, 255, 0.08);
}

.page-contact__layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 2.5vw, 2.25rem);
  align-items: start;
}

@media (max-width: 960px) {
  .page-contact__layout {
    grid-template-columns: 1fr;
  }
}

.page-contact__form-shell {
  padding: clamp(1.75rem, 4vw, 2.5rem);
}

.page-contact .page-contact__form-shell.glass-panel.card {
  transition: none;
}

.page-contact__fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  margin-bottom: 1.5rem;
}

.page-contact__fieldset .label-pill {
  margin-bottom: 0.35rem;
}

.page-contact__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.page-contact__chip {
  position: relative;
  cursor: pointer;
}

.page-contact__chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.page-contact__chip span {
  display: inline-block;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.page-contact__chip input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.page-contact__chip input:checked + span {
  border-color: rgba(151, 216, 255, 0.55);
  background: rgba(151, 216, 255, 0.12);
  color: var(--accent-2);
}

.page-contact__fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-contact__field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  align-items: start;
}

@media (max-width: 640px) {
  .page-contact__field-row {
    grid-template-columns: 1fr;
  }
}

.page-contact__form-note {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  max-width: 40rem;
  margin-inline: auto;
}

.page-contact__req {
  margin-left: 0.15em;
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
  cursor: help;
}

.page-contact__field {
  margin: 0;
}

.page-contact__label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

/* Mayor especificidad que style.css Underscores; alineado a .card / vidrio del tema. */
.page-contact .page-contact__form input.page-contact__input,
.page-contact .page-contact__form select.page-contact__input,
.page-contact .page-contact__form textarea.page-contact__textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: linear-gradient(165deg, rgba(16, 34, 56, 0.94), rgba(9, 19, 32, 0.98));
  border: 1px solid var(--line-2);
  box-shadow: 0 0 0 1px rgba(151, 216, 255, 0.07) inset;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}

.page-contact .page-contact__form input.page-contact__input {
  min-height: 3rem;
}

.page-contact .page-contact__form select.page-contact__input {
  min-height: 3rem;
  padding-right: 2.65rem;
  cursor: pointer;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2397d8ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"),
    linear-gradient(165deg, rgba(16, 34, 56, 0.94), rgba(9, 19, 32, 0.98));
  background-repeat: no-repeat, no-repeat;
  background-position: right 0.75rem center, 0 0;
  background-size: 1.15rem, 100% 100%;
}

.page-contact .page-contact__form select.page-contact__input option {
  background: var(--bg-soft);
  color: var(--text);
}

.page-contact .page-contact__form input.page-contact__input::placeholder,
.page-contact .page-contact__form textarea.page-contact__textarea::placeholder {
  color: rgba(199, 214, 231, 0.48);
}

.page-contact .page-contact__form input.page-contact__input:hover,
.page-contact .page-contact__form select.page-contact__input:hover,
.page-contact .page-contact__form textarea.page-contact__textarea:hover {
  border-color: rgba(151, 216, 255, 0.32);
}

.page-contact .page-contact__form input.page-contact__input:focus,
.page-contact .page-contact__form select.page-contact__input:focus,
.page-contact .page-contact__form textarea.page-contact__textarea:focus {
  outline: none;
  border-color: rgba(151, 216, 255, 0.48);
  box-shadow:
    0 0 0 1px rgba(151, 216, 255, 0.12) inset,
    0 0 0 3px rgba(151, 216, 255, 0.16);
}

.page-contact .page-contact__form select.page-contact__input:focus {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23dff4ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"),
    linear-gradient(165deg, rgba(16, 34, 56, 0.94), rgba(9, 19, 32, 0.98));
}

.page-contact .page-contact__form textarea.page-contact__textarea {
  resize: vertical;
  min-height: 8rem;
  vertical-align: top;
}

.page-contact .page-contact__form input.page-contact__input:-webkit-autofill,
.page-contact .page-contact__form input.page-contact__input:-webkit-autofill:hover,
.page-contact .page-contact__form input.page-contact__input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  transition: background-color 99999s ease-out 0s;
  box-shadow: 0 0 0 100px rgba(9, 19, 32, 0.96) inset;
}

.page-contact__submit {
  width: 100%;
  margin-top: 1.25rem;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.page-contact__submit::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.12) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: mao-contact-shimmer 3.5s ease-in-out infinite;
}

.page-contact__submit .icon,
.page-contact__submit span {
  position: relative;
  z-index: 1;
}

@keyframes mao-contact-shimmer {
  0% {
    transform: translateX(-120%);
  }

  35%,
  100% {
    transform: translateX(120%);
  }
}

@media (min-width: 961px) {
  .page-contact__aside {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}

.page-contact__aside-title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-weight: 600;
}

.page-contact__aside-card {
  padding: clamp(1.35rem, 3vw, 1.85rem);
}

.page-contact__timeline-card {
  margin-top: 1.25rem;
}

.page-contact__channels {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.page-contact__channels li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1.1rem;
}

.page-contact__channels li:last-child {
  margin-bottom: 0;
}

.page-contact__channel-icon {
  width: 22px;
  height: 22px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.page-contact__channel-key {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.page-contact__channel-val {
  color: var(--accent-2);
  font-weight: 500;
}

.page-contact a.page-contact__channel-val {
  text-decoration: none;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.page-contact a.page-contact__channel-val:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.page-contact__timeline {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.page-contact__timeline li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.page-contact__timeline li:last-child {
  margin-bottom: 0;
}

.page-contact__timeline li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.35rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(151, 216, 255, 0.18);
}

.page-contact__timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0.46rem;
  top: 1.1rem;
  bottom: -1.1rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(151, 216, 255, 0.35), transparent);
}

.page-contact__timeline-step {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-contact__aside-actions {
  margin-top: 1.35rem;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
}

@media (min-width: 480px) {
  .page-contact__aside-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-contact__kicker {
    animation: none;
  }

  .page-contact__submit::after {
    display: none;
  }
}

/* Home: bloque mar → mesa / recetas (imagen Pexels fija en plantilla) */
.home-recetas__media {
  overflow: hidden;
  border-radius: var(--radius);
  padding: 0;
}

.home-recetas__img {
  min-height: 380px;
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
}

.home-recetas__copy {
  padding: clamp(1.75rem, 4vw, 2.5rem);
}

.home-recetas__title {
  font-size: clamp(1.75rem, 3.5vw, 2.65rem);
}

.home-recetas__lead {
  font-size: 1.05rem;
}

/* Home recetas: última entrada (mismo overlay que bento noticias; sin .bento__media para no heredar grid del bento) */
#recetas a.home-recetas__media--post {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  min-height: 0;
  max-height: min(48vh, 420px);
  aspect-ratio: 16 / 9;
}

#recetas .home-recetas__media--post .bento__media-bg {
  min-height: 0;
  height: 100%;
  max-height: 100%;
}

#recetas .home-recetas__media--post .bento__media-bg img {
  min-height: 0;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
}

#recetas .home-recetas__media--post:hover .bento__media-bg img,
#recetas .home-recetas__media--post:focus-within .bento__media-bg img {
  transform: scale(1.04);
}

#recetas .home-recetas__media--post .bento__media-bg img {
  transition: transform 0.8s var(--ease-out);
}

#recetas .home-recetas__media--post .bento__media-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: stretch;
  padding: 0;
  background: linear-gradient(
    180deg,
    rgba(3, 8, 16, 0) 0%,
    rgba(3, 8, 16, 0.45) 38%,
    rgba(3, 8, 16, 0.88) 100%
  );
  opacity: 1;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  #recetas .home-recetas__media--post .bento__media-overlay {
    opacity: 0;
    transition: opacity 0.35s var(--ease-out);
  }

  #recetas .home-recetas__media--post:hover .bento__media-overlay,
  #recetas .home-recetas__media--post:focus-within .bento__media-overlay {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  #recetas .home-recetas__media--post .bento__media-overlay {
    transition: none;
  }

  #recetas .home-recetas__media--post:hover .bento__media-bg img,
  #recetas .home-recetas__media--post:focus-within .bento__media-bg img {
    transform: none;
  }
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 0;
  margin-bottom: 0;
  padding: clamp(2.5rem, 6vw, 3.75rem) 0 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(6, 17, 29, 0.94), rgba(4, 10, 19, 0.98));
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  gap: 2rem 2.5rem;
  padding-bottom: clamp(2rem, 5vw, 2.75rem);
}

.footer-col--brand {
  max-width: 22rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  display: inline-block;
}

.footer-brand:has(.brand-logo) {
  font-size: 0;
  line-height: 0;
}

.footer-brand:hover {
  color: var(--accent-2);
}

.footer-brand:hover .brand-logo {
  opacity: 0.92;
}

.footer-tagline {
  margin-top: 0.85rem;
  line-height: 1.5;
  font-size: 0.92rem;
}

.footer-heading {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin: 0 0 1rem;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  margin: 0.5rem 0;
}

.footer-list a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-list a:hover {
  color: var(--accent-2);
}

.footer-meta {
  margin-top: 1rem;
  font-size: 0.85rem;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 clamp(1rem, 3vw, 1.35rem);
  text-align: center;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(199, 214, 231, 0.72);
}

/* style.css: p { margin-bottom: 1.5em } → ~25.5px con font-size 17px; anula en el pie. */
.site-footer p {
  margin-bottom: 0;
}

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

  .footer-col--brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

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

/* Page hero compact */
.page-hero {
  padding: clamp(2.5rem, 6vw, 3.75rem) 0;
  border-bottom: 1px solid var(--line);
}

.page-hero--glass {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-2);
  /* Misma familia de bug que el header: blur sobre el scroll + hover en la página. */
  background: linear-gradient(
    165deg,
    rgba(15, 34, 56, 0.88),
    rgba(9, 19, 32, 0.82) 55%,
    rgba(6, 14, 24, 0.78)
  );
}

.page-hero--glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 120% at 100% 0%, rgba(151, 216, 255, 0.12), transparent 50%);
  pointer-events: none;
}

.page-hero--glass .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 20ch;
}

.page-hero .lead:not(.single-hero__lead) {
  margin-top: 1rem;
  max-width: 36rem;
}

/*
 * Patrón reutilizable (otras plantillas): hero inmersivo — doble luz en ::before,
 * H1 con gradiente marcado + halo suave (filter); solo transform/opacity en hovers heredados.
 */
.page-hero--immersive {
  padding: clamp(3rem, 8vw, 4.75rem) 0 clamp(3.25rem, 7vw, 4.5rem);
}

.page-hero--immersive.page-hero--glass::before {
  background:
    radial-gradient(ellipse 80% 120% at 100% 0%, rgba(151, 216, 255, 0.2), transparent 52%),
    radial-gradient(ellipse 45% 55% at 0% 100%, rgba(216, 194, 138, 0.14), transparent 55%);
}

/*
 * Origen (y reutilizable): foto de fondo + velo muy oscuro — sin Ken Burns ni aurora del home.
 */
.page-hero--photo.page-hero--glass {
  background-color: #030910;
  background-image: none;
}

.page-hero__media-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 90% at 50% 100%, rgba(0, 0, 0, 0.55), transparent 52%),
    linear-gradient(
      165deg,
      rgba(2, 6, 12, 0.94) 0%,
      rgba(2, 7, 14, 0.93) 42%,
      rgba(3, 9, 18, 0.92) 100%
    ),
    var(--page-hero-image) center / cover no-repeat;
}

.page-hero--photo.page-hero--glass::before {
  z-index: 1;
  background: radial-gradient(ellipse 75% 55% at 92% 8%, rgba(151, 216, 255, 0.07), transparent 58%);
}

.page-hero--photo.page-hero--glass .container {
  position: relative;
  z-index: 2;
}

/* Icono decorativo (brújula, paquete, etc.) en el bloque de texto: esquina superior derecha, mismo degradado que el H1 (SVG inline) */
.page-hero--immersive .page-hero__copy {
  position: relative;
  z-index: 0;
  min-width: 0;
  padding-right: clamp(2.75rem, 12vw, 5.25rem);
}

.page-hero--immersive .page-hero__compass,
.page-hero--immersive .page-hero__symbol {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  line-height: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 26px rgba(216, 194, 138, 0.22)) drop-shadow(0 0 40px rgba(151, 216, 255, 0.1));
}

.page-hero--immersive .page-hero__compass-svg,
.page-hero--immersive .page-hero__symbol-svg {
  display: block;
  width: clamp(2.5rem, 6vw, 3.85rem);
  height: clamp(2.5rem, 6vw, 3.85rem);
}

@media (prefers-reduced-motion: reduce) {
  .page-hero--immersive .page-hero__compass,
  .page-hero--immersive .page-hero__symbol {
    filter: drop-shadow(0 0 16px rgba(216, 194, 138, 0.14));
  }
}

.page-hero--immersive .page-hero__title {
  position: relative;
  z-index: 1;
  /* Hereda el clamp global de h1; degradado más contrastado + halo legible. */
  background-image: linear-gradient(
    118deg,
    #ffffff 0%,
    var(--accent-2) 10%,
    var(--accent) 26%,
    var(--text) 48%,
    var(--gold) 78%,
    #ecd9a4 100%
  );
  background-size: 120% 120%;
  background-position: 12% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 38px rgba(216, 194, 138, 0.28)) drop-shadow(0 0 56px rgba(151, 216, 255, 0.12));
}

@supports not (background-clip: text) {
  .page-hero--immersive .page-hero__title {
    color: var(--text);
    background: none;
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero--immersive .page-hero__title {
    filter: drop-shadow(0 0 20px rgba(216, 194, 138, 0.18));
    background-size: 100% 100%;
    background-position: 0 0;
  }
}

.metrics-row--signal .metric-glass {
  position: relative;
  text-align: left;
  padding-left: 1.65rem;
  padding-right: 1.35rem;
  transition:
    transform 0.35s var(--ease-out),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.metrics-row--signal .metric-glass::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 1.1rem;
  bottom: 1.1rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(151, 216, 255, 0.95), rgba(216, 194, 138, 0.85));
  opacity: 0.92;
  transition:
    opacity 0.35s ease,
    filter 0.35s ease,
    box-shadow 0.35s ease;
}

/* Escalonado tipo Productos / Exportación (4 columnas en escritorio) */
@media (min-width: 901px) {
  .metrics-row--signal.metrics-row--stagger {
    align-items: start;
  }

  .metrics-row--signal.metrics-row--stagger .metric-glass:nth-child(2) {
    margin-top: clamp(1.15rem, 2.8vw, 1.7rem);
  }

  .metrics-row--signal.metrics-row--stagger .metric-glass:nth-child(3) {
    margin-top: clamp(0.4rem, 1.4vw, 0.75rem);
  }

  .metrics-row--signal.metrics-row--stagger .metric-glass:nth-child(4) {
    margin-top: clamp(0.85rem, 2vw, 1.4rem);
  }
}

.metric-glass__index {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(151, 216, 255, 0.55);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.metrics-row--signal .metric-glass:hover {
  transform: translateY(-5px);
  border-color: rgba(151, 216, 255, 0.4);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(151, 216, 255, 0.1) inset,
    0 0 36px rgba(151, 216, 255, 0.08);
}

.metrics-row--signal .metric-glass:hover::before {
  opacity: 1;
  filter: brightness(1.12);
  box-shadow: 0 0 14px rgba(151, 216, 255, 0.42);
}

.metrics-row--signal .reveal-up:nth-child(1) {
  --reveal-delay: 0s;
}

.metrics-row--signal .reveal-up:nth-child(2) {
  --reveal-delay: 0.06s;
}

.metrics-row--signal .reveal-up:nth-child(3) {
  --reveal-delay: 0.12s;
}

.metrics-row--signal .reveal-up:nth-child(4) {
  --reveal-delay: 0.18s;
}

@media (prefers-reduced-motion: reduce) {
  .metrics-row--signal .metric-glass {
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
  }

  .metrics-row--signal .metric-glass:hover {
    transform: none;
  }

  .metrics-row--signal .metric-glass::before {
    transition: opacity 0.35s ease;
  }

  .metrics-row--signal .metric-glass:hover::before {
    filter: none;
    box-shadow: none;
  }
}

.page-origin .glass-panel .card-body > .icon[data-lucide] {
  width: 26px;
  height: 26px;
  color: var(--gold);
}

/* Origen · Audiencias: mismo criterio que Exportación (barco / cubiertos, 28px) */
.page-origin #origen-audiencias .grid-2 .card-body > .icon[data-lucide] {
  width: 28px;
  height: 28px;
}

.page-origin #origen-audiencias .grid-2 .card:last-child .card-body > .icon[data-lucide] {
  color: var(--accent);
}

/* Origen · Estándar: portafolio / exportación */
.page-origin #origen-estandar .grid-2 .card-body > .icon[data-lucide] {
  width: 28px;
  height: 28px;
}

.page-origin #origen-estandar .grid-2 .card:last-child .card-body > .icon[data-lucide] {
  color: var(--accent);
}

.page-export .grid-2 .card:first-child .card-body > .icon[data-lucide] {
  width: 28px;
  height: 28px;
  color: var(--gold);
}

.page-export .grid-2 .card:last-child .card-body > .icon[data-lucide] {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.page-history #historia-intro .card .text-muted {
  font-size: 1.08rem;
}

/* Historia · intro: bloque editorial + señales con icono + figura con pie */
#historia-intro .historia-intro__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

#historia-intro .historia-intro__header > .icon[data-lucide] {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: var(--gold);
  margin-top: 0.12rem;
}

#historia-intro .historia-intro__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 2.1vw, 1.38rem);
  font-weight: 600;
  line-height: 1.28;
  color: var(--text);
}

#historia-intro .historia-intro__text {
  margin-bottom: 1.5rem;
}

#historia-intro .historia-intro__text a {
  color: var(--accent-2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

#historia-intro .historia-intro__text a:hover {
  color: var(--accent);
}

#historia-intro .historia-intro__signals {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 600px) {
  #historia-intro .historia-intro__signals {
    grid-template-columns: 1fr;
  }
}

#historia-intro .historia-intro__signal {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
  padding: 0.85rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(151, 216, 255, 0.16);
  background: linear-gradient(165deg, rgba(16, 34, 56, 0.42), rgba(9, 19, 32, 0.58));
  transition:
    transform 0.35s var(--ease-out),
    border-color 0.35s ease;
}

#historia-intro .historia-intro__signal:hover {
  transform: translateY(-3px);
  border-color: rgba(151, 216, 255, 0.34);
}

@media (prefers-reduced-motion: reduce) {
  #historia-intro .historia-intro__signal {
    transition: border-color 0.35s ease;
  }

  #historia-intro .historia-intro__signal:hover {
    transform: none;
  }
}

#historia-intro .historia-intro__signal .icon[data-lucide] {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

#historia-intro .historia-intro__signal:nth-child(2) .icon[data-lucide] {
  color: var(--gold);
}

#historia-intro .historia-intro__signal span {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.35;
}

#historia-intro .historia-intro__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  cursor: default;
}

#historia-intro .historia-intro__visual:focus {
  outline: none;
}

#historia-intro .historia-intro__visual:focus-visible {
  outline: 2px solid rgba(151, 216, 255, 0.65);
  outline-offset: 3px;
}

/* Overlay con gradiente: visible al hover o al enfocar (teclado) */
#historia-intro .historia-intro__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 38%,
    rgba(2, 10, 20, 0.62) 72%,
    rgba(2, 8, 16, 0.94) 100%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

#historia-intro .historia-intro__visual img {
  display: block;
  width: 100%;
}

#historia-intro .historia-intro__peek {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.92);
  background: rgba(4, 14, 26, 0.72);
  border: 1px solid rgba(151, 216, 255, 0.24);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
}

#historia-intro .historia-intro__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  margin: 0;
  padding: 1.35rem 1.15rem 1.05rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: rgba(248, 250, 252, 0.97);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  background: none;
  pointer-events: none;
  opacity: 0;
  transform: translateY(0.45rem);
  transition:
    opacity 0.35s ease,
    transform 0.35s var(--ease-out);
}

/* Escritorio con hover fino: revelar overlay + pie; ocultar pista */
@media (hover: hover) and (pointer: fine) {
  #historia-intro .historia-intro__visual:hover::after,
  #historia-intro .historia-intro__visual:focus-within::after {
    opacity: 1;
  }

  #historia-intro .historia-intro__visual:hover .historia-intro__caption,
  #historia-intro .historia-intro__visual:focus-within .historia-intro__caption {
    opacity: 1;
    transform: translateY(0);
  }

  #historia-intro .historia-intro__visual:hover .historia-intro__peek,
  #historia-intro .historia-intro__visual:focus-within .historia-intro__peek {
    opacity: 0;
    transform: translateX(-50%) translateY(0.35rem);
  }
}

/* Táctil / sin hover: pie siempre legible con velo suave */
@media (hover: none), (pointer: coarse) {
  #historia-intro .historia-intro__visual::after {
    opacity: 1;
  }

  #historia-intro .historia-intro__caption {
    opacity: 1;
    transform: none;
  }

  #historia-intro .historia-intro__peek {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #historia-intro .historia-intro__visual::after,
  #historia-intro .historia-intro__caption,
  #historia-intro .historia-intro__peek {
    transition-duration: 0.01ms;
  }

  #historia-intro .historia-intro__visual:hover .historia-intro__peek,
  #historia-intro .historia-intro__visual:focus-within .historia-intro__peek {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) and (hover: hover) and (pointer: fine) {
  #historia-intro .historia-intro__visual::after {
    opacity: 1;
  }

  #historia-intro .historia-intro__caption {
    opacity: 1;
    transform: none;
  }

  #historia-intro .historia-intro__peek {
    display: none;
  }
}

.page-history .grid-2 .image-card img {
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.page-history .banner-visual .kicker {
  color: var(--accent-2);
}

.page-history .historia-valores__actions {
  justify-content: center;
}

.page-history .grid-3 .card-body > .icon[data-lucide] {
  width: 26px;
  height: 26px;
  color: var(--gold);
}

/* Historia: sección socios (narrativa + métricas + spotlight) */
.historia-socios--rich {
  position: relative;
  overflow: hidden;
}

.historia-socios--rich::before {
  content: "";
  position: absolute;
  inset: -20% -15% auto -15%;
  height: min(52rem, 90vh);
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 70% at 15% 35%, rgba(216, 194, 138, 0.11), transparent 58%),
    radial-gradient(ellipse 50% 55% at 85% 20%, rgba(151, 216, 255, 0.1), transparent 55%);
}

.historia-socios--rich .container {
  position: relative;
  z-index: 1;
}

.historia-socios__intro {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid rgba(151, 216, 255, 0.14);
  box-shadow: var(--shadow);
}

.historia-socios__intro-inner {
  padding: clamp(1.35rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2.25rem);
}

.historia-socios__intro-lead {
  margin: 0;
  font-size: clamp(1.05rem, 2.1vw, 1.2rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}

.historia-socios__intro-note {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.historia-socios__stats {
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
  align-items: stretch;
}

.historia-socios__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.35rem 1rem 1.5rem;
  gap: 0.35rem;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.historia-socios__stat:hover {
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(151, 216, 255, 0.12);
}

.historia-socios__stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-2), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.historia-socios__stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.historia-socios__stat-hint {
  font-size: 0.82rem;
  line-height: 1.4;
  max-width: 14ch;
}

.historia-socios__spotlights {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 4rem);
}

.partner-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(151, 216, 255, 0.16);
}

.partner-spotlight--reverse {
  direction: rtl;
}

.partner-spotlight--reverse > * {
  direction: ltr;
}

.partner-spotlight__media {
  position: relative;
  min-height: 16rem;
}

.partner-spotlight__index {
  position: absolute;
  top: clamp(0.85rem, 2vw, 1.25rem);
  left: clamp(0.85rem, 2vw, 1.25rem);
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.22);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.partner-spotlight--reverse .partner-spotlight__index {
  left: auto;
  right: clamp(0.85rem, 2vw, 1.25rem);
}

.partner-spotlight__frame {
  position: absolute;
  inset: 0;
  border-radius: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}

.partner-spotlight__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 22, 32, 0.15) 0%,
    rgba(10, 22, 32, 0.55) 100%
  );
  pointer-events: none;
}

.partner-spotlight__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  transition: transform 0.5s ease;
}

.partner-spotlight:hover .partner-spotlight__frame img {
  transform: scale(1.03);
}

.partner-spotlight__content {
  padding: clamp(1.35rem, 3.5vw, 2.25rem) clamp(1.25rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.35rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.partner-spotlight__kicker {
  margin-bottom: 0.35rem;
}

.partner-spotlight__name {
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  letter-spacing: 0.02em;
}

.partner-spotlight__role {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  color: var(--accent-2);
  font-weight: 500;
}

.partner-spotlight__quote {
  margin: 1.15rem 0 0;
  padding: 0 0 0 1rem;
  border-left: 3px solid transparent;
  border-image: linear-gradient(180deg, var(--accent), var(--gold)) 1;
  font-size: clamp(1.02rem, 2vw, 1.15rem);
  font-style: italic;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.partner-spotlight__bio {
  margin: 1rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
}

.partner-spotlight__story {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  line-height: 1.58;
}

.partner-spotlight__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}

.partner-spotlight__tag {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(151, 216, 255, 0.2);
  border-radius: 999px;
}

.partner-spotlight__actions {
  margin-top: 1.35rem;
}

a.btn.btn-outline.btn--linkedin:hover,
a.btn.btn-outline.btn--linkedin:focus-visible {
  color: #0a66c2;
  border-color: rgba(10, 102, 194, 0.55);
  background: rgba(10, 102, 194, 0.1);
}

a.btn.btn-outline.btn--linkedin .icon[data-lucide] {
  width: 1.1rem;
  height: 1.1rem;
}

@media (max-width: 900px) {
  .partner-spotlight {
    grid-template-columns: 1fr;
  }

  .partner-spotlight--reverse {
    direction: ltr;
  }

  .partner-spotlight__media {
    min-height: min(52vw, 22rem);
    aspect-ratio: 4 / 3;
  }

  .partner-spotlight__index {
    color: rgba(255, 255, 255, 0.35);
  }

  .partner-spotlight__actions {
    display: flex;
    justify-content: center;
    width: 100%;
  }
}

/* Páginas internas (Exportación, Historia): ritmo y jerarquía */
.page-inner-hero {
  position: relative;
}

.page-inner-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 100% at 50% 110%, rgba(151, 216, 255, 0.16), transparent 52%),
    radial-gradient(ellipse 45% 70% at 0% 40%, rgba(216, 194, 138, 0.09), transparent 55%);
}

.page-inner-hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-inner-hero h1 {
  margin-inline: auto;
  max-width: 22ch;
}

.page-inner-hero .lead:not(.single-hero__lead) {
  margin-inline: auto;
  max-width: 42rem;
}

/*
 * FIX ghost (compositing Chromium/Safari):
 * Varias .glass-panel con backdrop-filter agrupadas en un mismo grid, dentro de
 * páginas con reveal-up en ancestros/hermanos, disparan un bug de re-rasterizado
 * que deja un "halo" duplicado al costado derecho de la tarjeta.
 * Solución: en las tarjetas que aparecen agrupadas (métricas, grid-2/3 de
 * páginas internas, form-shell de contacto) reemplazamos el vidrio real por un
 * gradiente sólido oscuro. isolation:isolate en .glass-panel no alcanza porque
 * el bug ocurre dentro del pipeline de backdrop-filter, no en el stacking.
 * Efecto visual equivalente (las tarjetas viven sobre fondo oscuro uniforme,
 * el blur no aporta información) + mejora de performance por menos composite.
 */
.metric-glass.glass-panel,
.stat-card.glass-panel,
.cert-badge.glass-panel,
.page-origin .grid-2 > .glass-panel,
.page-origin .grid-3 > .glass-panel,
.page-export .grid-2 > .glass-panel,
.page-export .grid-3 > .glass-panel,
.page-history .grid-2 > .glass-panel,
.page-history .grid-3 > .glass-panel,
.page-history .grid-2--asymmetric > .glass-panel,
.page-history .historia-socios__stats > .glass-panel,
.page-history .historia-socios__spotlights > .glass-panel,
.page-history .historia-socios__intro.glass-panel,
.page-contact .page-contact__form-shell.glass-panel.card,
.page-contact .page-contact__aside .card.glass-panel,
.page-contact #contacto-cierre .banner-visual.glass-panel,
.page-product-detail .glass-panel:not(.product-scene):not(.hotspot-panel) {
  background: linear-gradient(165deg, rgba(16, 34, 56, 0.92), rgba(9, 19, 32, 0.96));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.page-products__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

@media (max-width: 680px) {
  .page-products__grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 681px) and (max-width: 900px) {
  .page-products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.page-products__card.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  text-decoration: none;
  color: inherit;
}

.page-products__card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.page-products__teaser-link.teaser-link {
  margin-top: auto;
  padding-top: 0.75rem;
  border: 0;
}

.page-products__grid-note {
  text-align: center;
  font-size: 0.92rem;
  margin-top: 1.75rem;
  max-width: 38rem;
  margin-inline: auto;
  line-height: 1.5;
}

#productos-comercial .page-products__dual.grid-2--offset {
  align-items: start;
}

/* Iconos de bloque CTA (mismo criterio que Origen / Exportación: oro + acento) */
#productos-comercial .page-products__dual .page-products__cta-card:first-child .card-body > .icon[data-lucide] {
  width: 28px;
  height: 28px;
  color: var(--gold);
}

#productos-comercial .page-products__dual .page-products__cta-card:last-child .card-body > .icon[data-lucide] {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

/* Hover sobre vidrio: transform en .btn / icono provoca artefactos; feedback con borde/sombra + margen en la flecha */
#productos-comercial a.btn.btn-outline:hover {
  transform: none;
}

#productos-comercial .btn-outline .icon {
  transition: margin-left 0.2s ease;
}

#productos-comercial .btn-outline:hover .icon {
  transform: none;
  margin-left: 0.2rem;
}

/* Exportación · métricas «Estándar exportable»: hover más legible + escalonado en cuatro tarjetas */
#exportacion-exige .metrics-row--stagger .metric-glass {
  transition:
    transform 0.4s var(--ease-out),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

#exportacion-exige .metrics-row--stagger .metric-glass:hover {
  transform: translateY(-7px);
  border-color: rgba(151, 216, 255, 0.48);
  box-shadow:
    var(--shadow),
    0 0 44px rgba(151, 216, 255, 0.16);
}

@media (prefers-reduced-motion: reduce) {
  #exportacion-exige .metrics-row--stagger .metric-glass:hover {
    transform: translateY(-4px);
    box-shadow:
      var(--shadow),
      0 0 28px rgba(151, 216, 255, 0.1);
  }
}

@media (min-width: 901px) {
  #exportacion-exige .metrics-row--stagger .metric-glass:nth-child(3) {
    margin-top: clamp(0.4rem, 1.4vw, 0.75rem);
  }

  #exportacion-exige .metrics-row--stagger .metric-glass:nth-child(4) {
    margin-top: clamp(0.85rem, 2vw, 1.4rem);
  }
}

.page-products__cta-card .card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-products__cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 600;
  margin: 0.5rem 0 0;
  line-height: 1.22;
}

.page-products__ficha-grid.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 320px));
  justify-content: center;
  max-width: 72rem;
  margin-inline: auto;
}

.page-products__ficha-grid .card-body h3 {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
}

#productos-ficha .card.glass-panel {
  background: linear-gradient(165deg, rgba(16, 34, 56, 0.94), rgba(9, 19, 32, 0.98));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

#productos-ficha .card.glass-panel:hover {
  border-color: rgba(151, 216, 255, 0.28);
  box-shadow:
    var(--shadow),
    0 0 32px rgba(151, 216, 255, 0.06);
}

@media (max-width: 900px) {
  .page-products__ficha-grid.grid-3 {
    grid-template-columns: 1fr;
  }

  .page-products__ficha-grid.grid-3--stagger .card {
    margin-top: 0;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .page-products__ficha-grid.grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.section-head--center {
  text-align: center;
  margin-inline: auto;
  max-width: 46rem;
}

.section-head--center .text-muted {
  margin-inline: auto;
  max-width: 38rem;
}

.page-inner .section.soft {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(151, 216, 255, 0.06), transparent 65%);
}

.metrics-row--stagger {
  align-items: start;
}

@media (min-width: 901px) {
  .metrics-row--stagger .metric-glass:nth-child(2) {
    margin-top: 1.35rem;
  }
}

.grid-2--offset {
  align-items: start;
}

@media (min-width: 901px) {
  .grid-2--offset > .card:nth-child(2),
  .grid-2--offset > article:nth-child(2) {
    margin-top: clamp(1.25rem, 3.5vw, 2.25rem);
  }
}

.page-history .grid-2--asymmetric {
  grid-template-columns: 1.12fr 0.88fr;
  align-items: stretch;
  gap: clamp(1.75rem, 4vw, 2.75rem);
}

@media (max-width: 900px) {
  .page-history .grid-2--asymmetric {
    grid-template-columns: 1fr;
  }
}

.grid-3--stagger {
  align-items: start;
}

@media (min-width: 901px) {
  .grid-3--stagger .card:nth-child(2) {
    margin-top: 1.65rem;
  }

  .grid-3--stagger .card:nth-child(3) {
    margin-top: 0.35rem;
  }
}

.split.split--accent {
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(151, 216, 255, 0.14);
}

.split.split--accent .split-content {
  position: relative;
  border-left: 3px solid transparent;
  border-image: linear-gradient(180deg, var(--accent), var(--gold)) 1;
}

.banner-visual.banner-visual--inner {
  text-align: center;
  max-width: 72rem;
  margin-inline: auto;
}

.banner-visual.banner-visual--inner h2 {
  margin-inline: auto;
}

.banner-visual.banner-visual--inner p {
  margin-left: auto;
  margin-right: auto;
}

.actions.actions--center {
  justify-content: center;
}

.page-inner .glass-panel.card {
  transition:
    box-shadow 0.4s ease,
    border-color 0.35s ease;
}

.page-inner .glass-panel.card:hover {
  /* Sin translateY: el movimiento + backdrop-filter en .glass-panel re-dispara el bug de capas en varios navegadores. */
  border-color: rgba(151, 216, 255, 0.28);
  box-shadow:
    var(--shadow),
    0 0 40px rgba(151, 216, 255, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .page-inner .glass-panel.card:hover {
    box-shadow: var(--shadow);
  }
}

/* Util */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-bg,
  .hero-aurora,
  .reveal-up {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .hero--video .hero-video {
    display: none;
  }
}

/* ——— Hero: aurora, spotlight y movimiento ——— */
.hero {
  --sx: 50%;
  --sy: 42%;
}

.hero-aurora {
  pointer-events: none;
  position: absolute;
  inset: -20% -10% -30%;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(151, 216, 255, 0.2), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 60%, rgba(216, 194, 138, 0.12), transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(76, 140, 192, 0.15), transparent 45%);
  opacity: 0.85;
  animation: mao-aurora-drift 18s var(--ease-out) infinite alternate;
}

@keyframes mao-aurora-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.75;
  }
  100% {
    transform: translate3d(2%, -1%, 0) scale(1.05);
    opacity: 0.95;
  }
}

.hero-spotlight {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  background: radial-gradient(
    520px circle at var(--sx) var(--sy),
    rgba(151, 216, 255, 0.14),
    rgba(223, 244, 255, 0.04) 35%,
    transparent 70%
  );
}

@media (min-width: 961px) {
  .hero:hover .hero-spotlight {
    opacity: 1;
  }
}

.hero-bg {
  animation: mao-hero-ken 28s var(--ease-out) infinite alternate;
  transform-origin: center center;
}

@keyframes mao-hero-ken {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.06);
  }
}

/* ——— Navegación: subrayado animado ——— */
.site-nav a {
  position: relative;
  padding-bottom: 2px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: left center;
  transition:
    opacity var(--dur-hover) var(--ease-out),
    transform var(--dur-hover) var(--ease-out);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.brand {
  transition:
    color var(--dur-hover) var(--ease-out),
    text-shadow 0.4s ease;
}

.brand:hover {
  text-shadow: 0 0 24px rgba(151, 216, 255, 0.35);
}

/* ——— Glass (uso en sitio) ———
 * `isolation: isolate` crea un stacking context propio para cada panel.
 * Sin esto, el backdrop-filter de un panel podía "bleed" sobre un hermano
 * promovido a capa por el reveal-up o por transforms del ancestor, creando
 * el halo fantasma desplazado a la derecha que se veía en grids de tarjetas.
 * No usamos `contain: paint` porque .product-scene también es .glass-panel
 * y los .hotspot-panel hijos desbordan intencionalmente hacia arriba.
 */
.glass-panel {
  background: rgba(255, 255, 255, 0.085);
  backdrop-filter: blur(26px) saturate(165%);
  -webkit-backdrop-filter: blur(26px) saturate(165%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(151, 216, 255, 0.09) inset;
  isolation: isolate;
}

.glass-panel--strong {
  background: rgba(15, 34, 56, 0.65);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ——— Home: marquee (bucle continuo, dos mitades idénticas) ——— */
.marquee-strip {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(
    90deg,
    rgba(10, 24, 42, 0.96),
    rgba(12, 29, 49, 0.94) 50%,
    rgba(10, 24, 42, 0.96)
  );
  padding: 0.95rem 0;
}

.marquee-viewport {
  overflow: hidden;
  width: 100%;
}

.marquee-inner {
  display: flex;
  width: max-content;
  animation: mao-marquee-seamless 45s linear infinite;
  will-change: transform;
}

.marquee-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.marquee-chunk {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  padding: 0.35rem 2.75rem 0.35rem 0;
}

@keyframes mao-marquee-seamless {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-inner {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    row-gap: 0.5rem;
  }

  .marquee-group {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ——— Home: métricas ——— */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

#productos-por-que .page-products__metrics.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 300px));
  justify-content: center;
  max-width: 72rem;
  margin-inline: auto;
  gap: 1.25rem;
}

@media (max-width: 600px) {
  #productos-por-que .page-products__metrics.metrics-row {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  #productos-por-que .page-products__metrics.metrics-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.metric-glass {
  padding: 1.5rem 1.35rem;
  text-align: center;
  transition: transform 0.45s var(--ease-out), border-color 0.35s ease;
}

.metric-glass:hover {
  transform: translateY(-4px);
  border-color: rgba(151, 216, 255, 0.3);
}

.metric-glass .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.metric-glass .lbl {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.5rem;
  font-weight: 600;
}

.metric-glass .sub {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 0.45rem;
  line-height: 1.4;
}

/* ——— Home: bento ——— */
.bento {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: auto auto;
  gap: 1.25rem;
}

.bento__media {
  grid-row: 1 / span 2;
  grid-column: 1;
}

.bento__stack {
  grid-row: 1 / span 2;
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-self: start;
}

.bento__h {
  grid-column: 1 / -1;
}

/* Solo una entrada en Noticias: hero a ancho completo, sin columna vacía */
.bento--news-count-1 {
  grid-template-columns: 1fr;
  grid-template-rows: auto;
}

.bento--news-count-1 .bento__media {
  grid-row: auto;
  grid-column: 1;
}

@media (max-width: 900px) {
  .bento {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .bento__media,
  .bento__stack {
    grid-row: auto;
    grid-column: 1;
  }
}

.bento__media {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
  position: relative;
}

/* Hero dinámico (última noticia): limita altura para no dejar la columna derecha con hueco desproporcionado */
.bento__media--post.bento__media {
  min-height: 0;
  max-height: min(48vh, 420px);
  aspect-ratio: 16 / 9;
}

.bento__media-bg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
}

.bento__media--post .bento__media-bg {
  min-height: 0;
  height: 100%;
  max-height: 100%;
}

.bento__media img,
.bento__media-bg img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.bento__media--post .bento__media-bg img {
  min-height: 0;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
}

.bento__media:hover img,
.bento__media:hover .bento__media-bg img {
  transform: scale(1.04);
}

/* Hero noticia (home): overlay con título, extracto, lectura y CTA */
.bento__media--post .bento__media-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: stretch;
  padding: 0;
  background: linear-gradient(
    180deg,
    rgba(3, 8, 16, 0) 0%,
    rgba(3, 8, 16, 0.45) 38%,
    rgba(3, 8, 16, 0.88) 100%
  );
  opacity: 1;
  pointer-events: none;
}

.bento__media-overlay__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  width: 100%;
  padding: 1.35rem 1.5rem 1.5rem;
  text-align: left;
}

.bento__media-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.2;
  color: var(--text);
}

.bento__media-excerpt {
  font-size: 0.92rem;
  color: rgba(232, 240, 247, 0.88);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bento__media-read {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.bento__media-cta {
  margin-top: 0.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
}

@media (hover: hover) and (pointer: fine) {
  .bento__media--post .bento__media-overlay {
    opacity: 0;
    transition: opacity 0.35s var(--ease-out);
  }

  .bento__media--post:hover .bento__media-overlay,
  .bento__media--post:focus-within .bento__media-overlay {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bento__media--post .bento__media-overlay {
    transition: none;
  }

  .bento__media:hover img,
  .bento__media:hover .bento__media-bg img {
    transform: none;
  }
}

/* Fila inferior del bento: tarjeta ancha (usa también .bento__h para ocupar la fila) */
.single-more-card--bento-wide {
  min-height: 0;
  padding: 1.1rem 1.25rem;
}

/* Home noticias: miniaturas más compactas que en single (evita “cuadrado” enorme) */
.bento__stack .single-more-card__media,
.bento__stack .single-more-card__media--placeholder {
  flex: 0 0 4.75rem;
  width: 4.75rem;
  max-width: 4.75rem;
  max-height: 4.75rem;
}

.bento .single-more-card--bento-wide .single-more-card__media,
.bento .single-more-card--bento-wide .single-more-card__media--placeholder {
  flex: 0 0 clamp(4.25rem, 11vw, 5.5rem);
  width: clamp(4.25rem, 11vw, 5.5rem);
  max-width: clamp(4.25rem, 11vw, 5.5rem);
  max-height: clamp(4.25rem, 11vw, 5.5rem);
}

.bento__card {
  padding: 1.5rem 1.6rem;
  flex: 1;
}

a.bento__media,
a.bento__card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.section-head.bento__h {
  margin-bottom: 1.5rem;
}

/* ——— Home: cadena horizontal + panel (tooltip / móvil desplegable) ——— */
.timeline-h__hint {
  font-size: 0.88rem;
  margin-bottom: 1.1rem;
  max-width: 40rem;
}

@media (min-width: 961px) {
  .timeline-h__hint {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

.timeline-h {
  --th-dot: 17px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: clamp(1.75rem, 4vw, 2.5rem) 0.35rem;
  overflow: visible;
}

/* El tooltip sale por debajo; el panel no debe recortarlo */
.timeline-h.glass-panel {
  overflow: visible;
}

.timeline-h__item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  overflow: visible;
}

.timeline-h__rule {
  flex: 0 1 1.25rem;
  min-width: 0;
  max-width: 2rem;
  height: 2px;
  margin-top: calc(var(--th-dot) * 1.5 - 1px);
  align-self: center;
  background: linear-gradient(90deg, rgba(151, 216, 255, 0.28), rgba(216, 194, 138, 0.4));
  border-radius: 999px;
}

.timeline-h__trigger {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  margin: 0;
  padding: 0.5rem 0.2rem;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: center;
  overflow: visible;
}

.timeline-h__trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.timeline-h__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(151, 216, 255, 0.1);
  border: 1px solid rgba(151, 216, 255, 0.22);
  color: var(--accent);
}

.timeline-h__icon-wrap .icon,
.timeline-h__icon-wrap svg {
  width: 18px;
  height: 18px;
}

.timeline-h__dot {
  width: var(--th-dot);
  height: var(--th-dot);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), var(--gold));
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 14px rgba(151, 216, 255, 0.32);
  flex-shrink: 0;
}

.timeline-h__title {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.25;
  color: var(--accent-2);
}

.timeline-h__panel {
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  bottom: auto;
  transform: translateX(-50%);
  width: min(240px, 72vw);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.8rem 0.95rem;
  text-align: left;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
  background: rgba(8, 20, 36, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s var(--ease-out);
  z-index: 60;
}

.timeline-h__panel::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.timeline-h__panel-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.timeline-h__panel-head .icon,
.timeline-h__panel-head svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.timeline-h__panel-text {
  display: block;
  margin: 0;
}

@media (min-width: 961px) {
  /*
   * Antes: padding-bottom enorme (hasta 9rem) para “aire” bajo el tooltip.
   * Eso dejaba un vacío oscuro bajo la fila de pasos. Bastan ~2.5–4rem para
   * que el tooltip (position absolute) no choque con el borde; overflow visible
   * en .timeline-h.glass-panel permite que sobresalga si hace falta.
   */
  .timeline-h {
    padding-top: clamp(1.75rem, 4vw, 2.35rem);
    padding-bottom: clamp(2.35rem, 5.5vw, 3.5rem);
  }

  .timeline-h__trigger:hover .timeline-h__panel,
  .timeline-h__trigger:focus-visible .timeline-h__panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(2px);
  }
}

@media (max-width: 960px) {
  .timeline-h {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .timeline-h__rule {
    display: none;
  }

  .timeline-h__panel {
    position: static;
    transform: none;
    width: 100%;
    max-width: none;
    margin-top: 0.65rem;
    opacity: 1;
    visibility: hidden;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.35s var(--ease-out), padding 0.25s ease, visibility 0.25s;
  }

  .timeline-h__panel::after {
    display: none;
  }

  .timeline-h__trigger[aria-expanded="true"] .timeline-h__panel {
    visibility: visible;
    max-height: min(16rem, 70vh);
    padding: 0.85rem 0.95rem;
    margin-top: 0.65rem;
    pointer-events: auto;
  }

  .timeline-h__item {
    min-width: 0;
    max-width: none;
    width: 100%;
  }
}

/* Sellos / cumplimiento (home) */
.cert-badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.cert-badge {
  margin: 0;
  padding: 1.35rem 1.25rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  transition: border-color 0.25s ease, transform 0.25s var(--ease-out);
}

.cert-badge:hover {
  transform: translateY(-3px);
  border-color: rgba(151, 216, 255, 0.35);
}

.cert-badge .icon,
.cert-badge svg {
  width: 26px;
  height: 26px;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.cert-badge h3 {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0.5rem;
}

.cert-badge p {
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

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

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

/* Blog */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.blog-filter-btn {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.blog-filter-btn:hover {
  color: var(--accent-2);
  border-color: rgba(151, 216, 255, 0.35);
}

.blog-filter-btn.is-active {
  color: var(--text);
  border-color: rgba(151, 216, 255, 0.5);
  background: rgba(151, 216, 255, 0.12);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-grid > .glass-panel {
  overflow: hidden;
  padding: 0;
}

.blog-grid > .blog-empty {
  grid-column: 1 / -1;
  margin: 0;
}

.blog-pagination {
  display: flex;
  justify-content: center;
  margin-top: 2.25rem;
}

/* Paginación del archivo (the_posts_pagination): números alineados al estilo del blog */
.page-archive .archive-pagination .navigation.pagination {
  width: 100%;
}

.page-archive .archive-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.55rem;
}

.page-archive .archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.page-archive .archive-pagination a.page-numbers:hover,
.page-archive .archive-pagination a.page-numbers:focus-visible {
  color: var(--accent-2);
  border-color: rgba(151, 216, 255, 0.35);
}

.page-archive .archive-pagination .page-numbers.current {
  color: var(--text);
  border-color: rgba(151, 216, 255, 0.45);
  background: rgba(151, 216, 255, 0.1);
}

.page-archive .archive-pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
  min-width: auto;
  padding-inline: 0.35rem;
}

.page-archive .archive-empty {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.page-archive .archive-empty__back {
  margin: 0;
}

.page-archive .archive-hero__desc p:first-child {
  margin-top: 0;
}

.page-archive .archive-hero__desc p:last-child {
  margin-bottom: 0;
}

/* Aísla la paginación del grid con vidrio: evita que el hover del botón fuerce recomposición sobre las tarjetas (backdrop-filter). */
.page-blog .blog-pagination,
.page-archive .blog-pagination {
  isolation: isolate;
  contain: layout style;
}

.blog-load-more[aria-busy='true'] {
  opacity: 0.75;
  pointer-events: none;
}

/* Paginación del blog: sin transform en .btn (evita capas fantasma sobre el layout/vidrio) */
.page-blog .blog-pagination .btn.btn-outline,
.page-blog .blog-pagination .btn.btn-outline:hover,
.page-blog .blog-pagination .btn.btn-outline:focus-visible,
.page-blog .blog-pagination .btn.btn-outline:active,
.page-archive .blog-pagination .btn.btn-outline,
.page-archive .blog-pagination .btn.btn-outline:hover,
.page-archive .blog-pagination .btn.btn-outline:focus-visible,
.page-archive .blog-pagination .btn.btn-outline:active {
  transform: none;
}

.page-blog .blog-pagination .btn.btn-outline:hover .icon,
.page-blog .blog-pagination .btn.btn-outline:focus-visible .icon,
.page-archive .blog-pagination .btn.btn-outline:hover .icon,
.page-archive .blog-pagination .btn.btn-outline:focus-visible .icon {
  transform: none;
}

/* Misma idea que .page-inner .glass-panel.card: sin transform junto a backdrop-filter. */
.page-blog .blog-grid,
.page-archive .blog-grid {
  isolation: isolate;
}

.page-blog .blog-grid > .glass-panel,
.page-archive .blog-grid > .glass-panel {
  /* Sin backdrop-filter: mismo criterio que #productos-por-que .metric-glass; el blur + hover en otro control (p. ej. «Cargar más») provoca franjas fantasma en Chrome/Edge. */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: linear-gradient(165deg, rgba(16, 34, 56, 0.92), rgba(9, 19, 32, 0.96));
  box-shadow: var(--shadow);
  transition:
    border-color 0.25s ease,
    box-shadow 0.35s ease;
}

.page-blog .blog-grid > .glass-panel:hover,
.page-archive .blog-grid > .glass-panel:hover {
  border-color: rgba(151, 216, 255, 0.3);
  box-shadow:
    var(--shadow),
    0 0 40px rgba(151, 216, 255, 0.08);
}

.page-blog .blog-grid > .glass-panel .blog-card:hover,
.page-archive .blog-grid > .glass-panel .blog-card:hover {
  transform: none;
}

.page-blog .blog-grid > .glass-panel .blog-card:hover .blog-card__media img,
.page-archive .blog-grid > .glass-panel .blog-card:hover .blog-card__media img {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .page-blog .blog-grid > .glass-panel:hover,
  .page-archive .blog-grid > .glass-panel:hover {
    box-shadow: var(--shadow);
  }
}

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  color: inherit;
  transition: transform 0.25s var(--ease-out), border-color 0.2s;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(151, 216, 255, 0.3);
}

.blog-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.blog-card:hover .blog-card__media img {
  transform: scale(1.04);
}

.blog-card__media--placeholder {
  background: linear-gradient(135deg, rgba(151, 216, 255, 0.12), rgba(255, 255, 255, 0.04));
  border-bottom: 1px solid var(--line-2);
}

.blog-card__media--placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(151, 216, 255, 0.14), transparent 52%);
  pointer-events: none;
}

.blog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.35rem 1.45rem 1.5rem;
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.blog-card__body h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  margin-bottom: 0.65rem;
  line-height: 1.12;
}

.blog-card__body p {
  font-size: 0.95rem;
  color: var(--muted);
  flex: 1;
  margin-bottom: 1rem;
}

.blog-card__link {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
}

.blog-card__link .icon {
  width: 16px;
  height: 16px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: var(--accent);
}

.breadcrumb [aria-current="page"] {
  color: var(--muted);
}

.breadcrumb__sep {
  color: var(--line-2);
  user-select: none;
}

/* ——— Single post ——— */
.single-post {
  --single-post-body-pad: clamp(1.75rem, 4vw, 2.75rem);
}

.single-hero__intro {
  text-align: center;
}

.single-hero__intro .entry-title {
  margin-left: auto;
  margin-right: auto;
  max-width: none;
}

.single-post .entry-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.12;
  margin: 0.35rem 0 0;
}

.single-post .single-meta.blog-card__meta {
  justify-content: center;
  margin-top: 1rem;
  margin-bottom: 0;
}

.single-meta__sep {
  opacity: 0.55;
}

/* Misma columna útil que .single-body (padding del panel de contenido). */
.single-post .single-hero__post-column {
  margin-top: 1.25rem;
  padding-inline: var(--single-post-body-pad);
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Misma anchura útil que la imagen (columna con padding del cuerpo); sin tope 36/42rem del hero */
.single-post .page-inner-hero .single-hero__post-column .lead.single-hero__lead {
  display: block;
  box-sizing: border-box;
  max-width: 100%;
  width: 100%;
  min-width: 0;
  margin: 0;
  margin-inline: 0;
  text-align: center;
  text-wrap: balance;
  color: var(--muted);
}

.single-featured--hero {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  aspect-ratio: 2 / 1;
  max-height: min(52vh, 520px);
}

.single-featured--hero .single-featured__img,
.single-featured--hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.section.section--single-body {
  padding-top: 1.25rem;
  padding-bottom: clamp(1.25rem, 3vw, 2rem);
}

.single-more-from-cat {
  padding-top: 0;
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.single-more-from-cat__head {
  margin-bottom: 2rem;
  text-align: left;
  margin-inline: 0;
  max-width: none;
}

.single-more-from-cat__head .text-muted {
  margin-inline: 0;
  max-width: none;
}

.single-more-from-cat__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 600;
  margin: 0.35rem 0 0;
  line-height: 1.2;
}

.single-more-from-cat__subtitle {
  margin-top: 0.65rem;
  margin-bottom: 0;
  font-size: 1.02rem;
}

.single-more-from-cat__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .single-more-from-cat__list--n-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .single-more-from-cat__list--n-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.single-more-card {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.single-more-card:hover,
.single-more-card:focus-visible {
  border-color: rgba(151, 216, 255, 0.35);
  background: rgba(151, 216, 255, 0.06);
}

.single-more-card__media {
  flex: 0 0 clamp(96px, 24vw, 152px);
  border-radius: calc(var(--radius-sm) - 4px);
  overflow: hidden;
  aspect-ratio: 1;
  align-self: center;
}

.single-more-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.single-more-card__media--placeholder {
  background: linear-gradient(145deg, rgba(15, 34, 56, 0.9), rgba(9, 19, 32, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.single-more-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  text-align: left;
}

.single-more-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.2;
  color: var(--text);
}

.single-more-card__excerpt {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
}

.single-more-card__read {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.single-more-card__cta {
  margin-top: auto;
  padding-top: 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
}

@media (max-width: 520px) {
  .single-more-card {
    flex-direction: column;
    align-items: stretch;
  }

  .single-more-card__media,
  .single-more-card__media--placeholder {
    flex: none;
    width: 100%;
    max-width: none;
    aspect-ratio: 16 / 9;
  }
}

.single-post .single-body--surface.glass-panel {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: linear-gradient(165deg, rgba(16, 34, 56, 0.92), rgba(9, 19, 32, 0.96));
  box-shadow: var(--shadow);
  padding: var(--single-post-body-pad);
}

.single-post .entry-content.post-body {
  font-size: 1.05rem;
  line-height: 1.65;
}

.single-post .entry-content.post-body > *:first-child {
  margin-top: 0;
}

.single-post .entry-content.post-body > *:last-child {
  margin-bottom: 0;
}

.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 1.75rem 0 0.75rem;
  line-height: 1.2;
}

.single-post .entry-content h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
}

.single-post .entry-content h3 {
  font-size: clamp(1.25rem, 2vw, 1.45rem);
}

.single-post .entry-content p,
.single-post .entry-content li {
  color: var(--muted);
}

.single-post .entry-content a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.single-post .entry-content a:hover {
  color: var(--gold);
}

.single-post .entry-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 0 1rem 1.25rem;
  border-left: 3px solid rgba(151, 216, 255, 0.45);
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text);
}

.single-post .entry-content pre,
.single-post .entry-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
}

.single-post .entry-content pre {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  overflow-x: auto;
}

.single-post .entry-content figure {
  margin: 1.75rem 0;
}

.single-post .entry-content figcaption {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.single-post .entry-content img,
.single-post .entry-content .wp-block-image img {
  border-radius: var(--radius-sm);
}

.single-post .entry-content .alignwide {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}

.single-post .entry-content .wp-block-embed {
  margin: 1.75rem 0;
}

.single-post .page-links {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.single-post .page-links__label {
  font-weight: 600;
  margin-right: 0.5rem;
  color: var(--text);
}

.single-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--muted);
}

.single-tax + .single-tax {
  margin-top: 0.85rem;
}

.single-tax__label {
  display: inline-block;
  font-weight: 600;
  color: var(--text);
  margin-right: 0.35rem;
}

.single-tax a {
  color: var(--accent);
}

.single-tax a:hover {
  color: var(--gold);
}

.single-edit {
  margin: 1rem 0 0;
  font-size: 0.88rem;
}

.post-article .post-head:not(.single-hero__lead) {
  margin-bottom: 1.75rem;
}

.post-article .post-meta {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.post-article .lead:not(.single-hero__lead) {
  margin-top: 1rem;
}

.post-body {
  font-size: 1.05rem;
}

.post-body p {
  margin: 0 0 1.1rem;
  color: var(--muted);
}

.post-body p:last-child {
  margin-bottom: 0;
}

.post-actions {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* ——— Home: testimonial ——— */
.testimonial-glass {
  padding: clamp(2rem, 5vw, 3rem);
  position: relative;
}

.testimonial-glass::before {
  content: "“";
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: rgba(151, 216, 255, 0.25);
  pointer-events: none;
}

.testimonial-glass blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

.testimonial-glass figcaption {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.06em;
}

/* ——— Home: CTA ancho ——— */
.cta-wide {
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  border-radius: calc(var(--radius) + 6px);
}

.cta-wide h2 {
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-wide .text-muted {
  max-width: 36rem;
  margin: 1rem auto 0;
  font-size: 1.05rem;
}

.cta-wide .actions {
  justify-content: center;
  margin-top: 1.75rem;
}

/* ——— Producto: escena + hotspots ——— */
.product-scene {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
}

.product-scene img {
  width: 100%;
  display: block;
  aspect-ratio: var(--scene-ratio, 16 / 9);
  object-fit: cover;
}

.product-scene-legend {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 4;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hotspot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 50%;
}

.hotspot-dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-2), var(--accent));
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 0 4px rgba(151, 216, 255, 0.25),
    0 6px 20px rgba(0, 0, 0, 0.35);
  animation: mao-pulse 2.2s ease-in-out infinite;
}

@keyframes mao-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 4px rgba(151, 216, 255, 0.2),
      0 6px 20px rgba(0, 0, 0, 0.35);
  }
  50% {
    transform: scale(1.08);
    box-shadow:
      0 0 0 8px rgba(151, 216, 255, 0.12),
      0 8px 24px rgba(0, 0, 0, 0.3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hotspot-dot {
    animation: none;
  }
}

.hotspot-panel {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  transform: translateX(-50%) translateY(8px);
  width: min(17rem, calc(100vw - 48px));
  padding: 0.9rem 1rem 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s var(--ease-out),
    transform 0.3s var(--ease-out),
    visibility 0.3s;
  text-align: left;
  z-index: 5;
}

.hotspot-panel strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.hotspot-panel p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--accent-2);
}

.hotspot:hover .hotspot-panel,
.hotspot:focus-visible .hotspot-panel,
.hotspot.is-open .hotspot-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.hotspot--bottom .hotspot-panel {
  bottom: auto;
  top: calc(100% + 14px);
  transform: translateX(-50%) translateY(-8px);
}

.hotspot--bottom:hover .hotspot-panel,
.hotspot--bottom:focus-visible .hotspot-panel,
.hotspot--bottom.is-open .hotspot-panel {
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 720px) {
  .hotspot-panel {
    position: fixed;
    left: 16px !important;
    right: 16px;
    bottom: auto;
    top: auto;
    width: auto;
    transform: none;
    margin-top: 0;
  }

  .hotspot:hover .hotspot-panel,
  .hotspot:focus-visible .hotspot-panel {
    position: fixed;
    bottom: env(safe-area-inset-bottom, 12px);
    left: 16px;
    right: 16px;
    transform: none;
  }
}

/* ——— Botones: hovers ricos ——— */
.btn {
  transition:
    transform 0.35s var(--ease-spring),
    box-shadow 0.35s var(--ease-out),
    background 0.35s ease,
    border-color 0.35s ease,
    color 0.35s ease;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
}

.btn:active {
  transform: translateY(-1px) scale(0.99);
}

.btn-primary:hover {
  box-shadow:
    var(--shadow),
    0 0 40px rgba(151, 216, 255, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(151, 216, 255, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.btn-outline:hover {
  border-color: rgba(151, 216, 255, 0.45);
  color: var(--text);
  background: rgba(151, 216, 255, 0.08);
  box-shadow: 0 0 28px rgba(151, 216, 255, 0.12);
}

.btn .icon {
  transition: transform 0.4s var(--ease-spring);
}

.btn:hover .icon {
  transform: translateX(2px);
}

.btn-outline:hover .icon,
.btn-secondary:hover .icon {
  transform: translateX(4px);
}

/* ——— Cards e imágenes ——— */
.card {
  transition:
    transform 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out),
    border-color 0.45s ease;
}

article.card:hover,
div.card:hover {
  transform: translateY(-6px);
  border-color: rgba(151, 216, 255, 0.28);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(151, 216, 255, 0.12),
    0 28px 56px rgba(0, 0, 0, 0.4);
}

/*
 * Contacto · formulario: anula div.card:hover global (~4850) y cualquier pulso al enfocar campos.
 * Sin transform ni sombra extra; los .btn en .page-contact__aside-actions siguen siendo enlaces/botones.
 */
#contacto-formulario .page-contact__form-shell.card:hover,
#contacto-formulario .page-contact__form-shell.card:focus-within,
#contacto-formulario .page-contact__aside .card.glass-panel:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(151, 216, 255, 0.09) inset;
}

#contacto-formulario .page-contact__form-shell.card,
#contacto-formulario .page-contact__aside .card.glass-panel {
  transition: none;
}

a.card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(216, 194, 138, 0.35);
  box-shadow:
    var(--shadow),
    0 0 48px rgba(151, 216, 255, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.stat-num {
  transition:
    color 0.45s ease,
    transform 0.45s var(--ease-spring);
}

.stat-card:hover .stat-num {
  color: var(--accent);
  transform: scale(1.05);
}

.image-card {
  overflow: hidden;
}

.image-card img {
  transition: transform 0.85s var(--ease-out), filter 0.6s ease;
}

.image-card:hover img {
  transform: scale(1.07);
  filter: brightness(1.06) contrast(1.03);
}

/* ——— Hero visual glass ——— */
.hero-visual {
  transition:
    transform 0.6s var(--ease-out),
    box-shadow 0.55s ease,
    border-color 0.45s ease;
}

.hero-visual:hover {
  border-color: rgba(151, 216, 255, 0.35);
  box-shadow:
    var(--shadow),
    0 0 60px rgba(151, 216, 255, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  transform: translateY(-4px);
}

.hero-visual img {
  transition: transform 1s var(--ease-out);
}

.hero-visual:hover img {
  transform: scale(1.04);
}

/* ——— Eyebrow + fila con tip ——— */
.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.25rem;
}

.eyebrow {
  transition:
    border-color 0.4s ease,
    background 0.4s ease,
    box-shadow 0.4s ease;
}

.eyebrow:hover {
  border-color: rgba(151, 216, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 24px rgba(151, 216, 255, 0.1);
}

.stat-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.stat-card-head--middle {
  align-items: center;
}

/* ——— Teaser link hover ——— */
.teaser-link {
  transition: color 0.35s ease, gap 0.35s ease;
}

.teaser:hover .teaser-link {
  color: var(--gold);
  gap: 0.55rem;
}

.teaser-link .icon {
  transition: transform 0.45s var(--ease-spring);
}

.teaser:hover .teaser-link .icon {
  transform: translateX(5px);
}

.teaser .icon {
  transition:
    transform 0.5s var(--ease-spring),
    filter 0.45s ease,
    color 0.45s ease;
}

.teaser:hover .icon {
  transform: scale(1.12) rotate(-4deg);
  filter: drop-shadow(0 4px 12px rgba(151, 216, 255, 0.35));
}

/* ——— Banner / split ——— */
.banner-visual {
  transition:
    box-shadow 0.55s ease,
    border-color 0.45s ease;
}

.banner-visual:hover {
  border-color: rgba(151, 216, 255, 0.25);
  box-shadow:
    var(--shadow),
    0 0 40px rgba(151, 216, 255, 0.06);
}

.split .split-media {
  transition: transform 0.85s var(--ease-out), filter 0.6s ease;
}

.split:hover .split-media {
  transform: scale(1.03);
  filter: brightness(1.05);
}

/* ——— Footer ——— */
.site-footer a,
.footer-gold {
  transition: color 0.35s ease;
}

.footer-inner:hover .footer-gold {
  color: var(--accent-2);
}

/* ——— Reveal on scroll ———
 * Nota técnica: al llegar al estado final (.is-inview) se libera la capa GPU
 * (transform:none + will-change:auto). Mantener transform:translate3d(0,0,0)
 * junto a backdrop-filter disparaba un artefacto de compositing en Chromium
 * y Safari — el famoso "ghost" de 2-3px a la derecha de los glass-panel.
 */
.reveal-up {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal-up.is-inview {
  opacity: 1;
  transform: none;
  will-change: auto;
}

.grid-3 .reveal-up:nth-child(1) {
  --reveal-delay: 0.03s;
}
.grid-3 .reveal-up:nth-child(2) {
  --reveal-delay: 0.1s;
}
.grid-3 .reveal-up:nth-child(3) {
  --reveal-delay: 0.17s;
}

.hero-copy h1.reveal-up {
  --reveal-delay: 0.08s;
}
.hero-copy .lead.reveal-up {
  --reveal-delay: 0.14s;
}
.hero-copy .body.reveal-up,
.hero-copy .actions.reveal-up {
  --reveal-delay: 0.2s;
}
.hero-visual.reveal-up {
  --reveal-delay: 0.12s;
}

/* ——— Contact inputs ——— */
form input.card:hover,
form textarea.card:hover {
  border-color: rgba(151, 216, 255, 0.35) !important;
  box-shadow: 0 0 0 3px rgba(151, 216, 255, 0.12);
}

form input.card:focus,
form textarea.card:focus {
  outline: none;
  border-color: rgba(151, 216, 255, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(151, 216, 255, 0.18);
}

/* ——— Singles producto ——— */
.single-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.single-toolbar a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.single-toolbar a:hover {
  color: var(--gold);
}

.single-b {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

.single-b__rail {
  position: sticky;
  top: calc(var(--header-h) + 14px);
  padding: 1.6rem 1.75rem;
}

@media (max-width: 960px) {
  .single-b {
    grid-template-columns: 1fr;
  }

  .single-b__rail {
    position: static;
  }
}

.single-c {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 1.25rem;
  align-items: stretch;
}

.single-c__scene {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.single-c__stack {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.single-c__strip {
  grid-column: 1 / -1;
  grid-row: 3;
  padding: 1.5rem 1.75rem;
}

@media (max-width: 900px) {
  .single-c {
    grid-template-columns: 1fr;
  }

  .single-c__scene,
  .single-c__stack {
    grid-column: 1;
    grid-row: auto;
  }

  .single-c__strip {
    grid-row: auto;
  }
}

.stat-card.glass-panel {
  background: rgba(15, 34, 56, 0.52);
}

a.card.teaser.glass-panel {
  background: rgba(15, 34, 56, 0.48);
}

/* ——— Fichas producto (plantillas page-producto-*): visible sin depender solo del scroll reveal ——— */
.page-product-detail .reveal-up {
  opacity: 1;
  transform: none;
  will-change: auto;
}

.page-product-detail .product-ficha-download {
  padding: 1.5rem 1.75rem;
}

.product-ficha-download__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.product-ficha-download__actions {
  flex-shrink: 0;
}

.product-recipes__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.product-recipes__actions {
  flex-shrink: 0;
}

.product-recipes__hint code {
  margin-left: 0.35rem;
  font-size: 0.85em;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-2);
}

ul.product-detail-list li + li {
  margin-top: 0.5rem;
}

/* ——— Links visitados e inline ———
 * style.css base de Underscores define a:visited #800080 (magenta), que rompe
 * la paleta de marca en enlaces inline dentro del contenido. Se normaliza
 * globalmente y se define el look de enlaces inline de contenido.
 */
main a:visited {
  color: inherit;
}

main p a:where(:not(.btn)),
main li a:where(:not(.btn)),
main .card-body p a:where(:not(.btn)) {
  color: var(--accent);
  border-bottom: 1px solid rgba(151, 216, 255, 0.35);
  transition:
    color 0.3s ease,
    border-color 0.3s ease;
}

main p a:where(:not(.btn)):visited,
main li a:where(:not(.btn)):visited,
main .card-body p a:where(:not(.btn)):visited {
  color: var(--accent);
}

main p a:where(:not(.btn)):hover,
main li a:where(:not(.btn)):hover,
main .card-body p a:where(:not(.btn)):hover {
  color: var(--gold);
  border-bottom-color: rgba(216, 194, 138, 0.55);
}

main p a:where(:not(.btn)):focus-visible,
main li a:where(:not(.btn)):focus-visible,
main .card-body p a:where(:not(.btn)):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ——— Split media con marco glass (Origen) ———
 * Aplica a <figure.split-media.split-media--framed>. Hereda el ancho/alto de
 * la regla base `.split .split-media` y añade marco, borde, velo inferior y
 * caption glass superpuesta para dar coherencia con el resto de secciones
 * glass del sitio.
 */
.split figure.split-media.split-media--framed {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(
    135deg,
    rgba(151, 216, 255, 0.08),
    rgba(216, 194, 138, 0.05) 60%,
    rgba(6, 17, 29, 0.2)
  );
  isolation: isolate;
}

.split figure.split-media.split-media--framed img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center;
  transition:
    transform 0.9s var(--ease-out),
    filter 0.6s ease;
}

.split figure.split-media.split-media--framed::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(6, 17, 29, 0) 45%,
    rgba(6, 17, 29, 0.55) 100%
  );
  z-index: 1;
}

.split:hover figure.split-media.split-media--framed img {
  transform: scale(1.04);
  filter: brightness(1.06);
}

.split-media__caption {
  position: absolute;
  left: clamp(1rem, 2.4vw, 1.5rem);
  right: clamp(1rem, 2.4vw, 1.5rem);
  bottom: clamp(1rem, 2.4vw, 1.5rem);
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 0.35rem 0.9rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
}

.split-media__caption .kicker {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--accent-2);
}

.split-media__coord {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.split-media__place {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.35;
}

@media (max-width: 640px) {
  .split-media__caption {
    grid-template-columns: 1fr;
  }

  .split-media__coord {
    font-size: 1.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .split figure.split-media.split-media--framed img {
    transition: none;
  }

  .split:hover figure.split-media.split-media--framed img {
    transform: none;
    filter: none;
  }
}
