/* ==========================================================================
   AB German — hoja de estilos principal
   --------------------------------------------------------------------------
   1. Fuentes y variables (colores Glory)
   2. Base
   3. Utilidades y componentes (botones, etiquetas, tarjetas)
   4. Encabezado y menú
   5. Secciones de la página de inicio
   6. Páginas internas (productos, servicios, nosotros, blog, artículo, contacto)
   7. Pie de página, WhatsApp, 404
   8. Animaciones y movimiento reducido
   9. Modo vista previa del panel (/admin)
   ========================================================================== */

/* 1. Fuentes y variables ------------------------------------------------- */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo.woff2") format("woff2-variations"), url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope.woff2") format("woff2-variations"), url("/assets/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Colores de marca (Glory Global: azul profundo, azul marino y blanco) */
  --brand: #111986;
  --brand-bright: #2b36d6;
  --brand-soft: #9ea6ff;
  --brand-deep: #0a0f51;
  --brand-night: #060933;
  --brand-tint: #e8e9f8;

  /* Neutros (fríos, para acompañar el azul) */
  --bg: #f3f4f8;
  --bg-2: #e6e8f1;
  --paper: #ffffff;
  --ink: #0e1130;
  --ink-2: #2a2d48;
  --muted: #5d6178;
  --line: rgb(14 17 48 / 0.12);
  --line-strong: rgb(14 17 48 / 0.22);
  --whatsapp: #1fae54;

  /* Tipografía */
  --font-display: "Archivo", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Medidas */
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --section-y: clamp(80px, 11vw, 160px);
  --header-h: 76px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 12px 40px -12px rgb(10 15 81 / 0.16);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / 0.04), 0 30px 80px -20px rgb(10 15 81 / 0.32);
}

/* 2. Base --------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
figure { margin: 0; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--brand); color: #fff; }

/* Sin el recuadro que aparece al tocar enlaces y botones en el celular */
html { -webkit-tap-highlight-color: transparent; }
a, button, summary, label, [role="button"] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  translate: 0 -200%;
  transition: translate 0.3s var(--ease-out);
}
.skip-link:focus { translate: 0 0; }

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

/* 3. Utilidades y componentes ------------------------------------------ */

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 100px); }
.section--paper { background: var(--paper); }
.section--bg2 { background: var(--bg-2); }
.section--red { background: var(--brand); color: #fff; }

.display {
  font-family: var(--font-display);
  font-stretch: 62%;
  font-weight: 860;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.005em;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-stretch: 62%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  letter-spacing: 0.01em;
  line-height: 1;
}

.title-xl { font-size: clamp(3.4rem, 9.2vw, 9rem); }
.title-lg { font-size: clamp(2.8rem, 7vw, 6.6rem); }
.title-md { font-size: clamp(2.2rem, 4.6vw, 4.2rem); }
.title-sm { font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 0.95; }

.lead {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 60ch;
}
.pre { white-space: pre-line; }
.muted { color: var(--muted); }
.fade-ink { color: rgb(14 17 48 / 0.32); }

.section-head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.section-head--center { text-align: center; justify-items: center; }
.section-head--split {
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); gap: 40px; }
}

/* Botón píldora con círculo azul y flecha (firma visual del sitio) */
.btn {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
  --btn-dot: var(--brand);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 6px 6px 6px 24px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 650;
  font-size: 0.98rem;
  line-height: 1.1;
  isolation: isolate;
  overflow: hidden;
  border: 2px solid var(--btn-bg);
  transition: color 0.45s var(--ease-out), border-color 0.3s;
  white-space: nowrap;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-dot);
  border-radius: inherit;
  clip-path: circle(0 at calc(100% - 26px) 50%);
  transition: clip-path 0.6s var(--ease-out);
}
.btn__dot {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--btn-dot);
  color: #fff;
  transition: background 0.4s, color 0.4s;
}
.btn__dot svg { width: 18px; height: 18px; transition: transform 0.5s var(--ease-out); }
@media (hover: hover) {
  .btn:hover { color: #fff; }
  .btn:hover::before { clip-path: circle(150% at calc(100% - 26px) 50%); }
  .btn:hover .btn__dot { background: #fff; color: var(--btn-dot); }
  .btn:hover .btn__dot svg { transform: rotate(-45deg); }
}
.btn--dark { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn--brand { --btn-bg: var(--brand); --btn-fg: #fff; --btn-dot: var(--brand-deep); }
.btn--outline { --btn-bg: transparent; border-color: var(--line-strong); }
.btn--wide { width: 100%; justify-content: space-between; }

/* Enlace con subrayado animado */
.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size 0.5s var(--ease-out);
  padding-bottom: 2px;
}
@media (hover: hover) {
.link:hover { background-size: 100% 2px; }
}
.link svg { width: 16px; height: 16px; }

/* Píldora/chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.chip--brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip--light { background: var(--paper); border-color: transparent; }

.card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Imagen que no cargó: se reemplaza por el dibujo de respaldo */
img.img-fallback { object-fit: contain !important; background: var(--bg-2); padding: 12%; }

.icon { width: 1.2em; height: 1.2em; flex: none; }

/* 4. Encabezado y menú --------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  color: #fff;
  transition: background 0.45s, color 0.45s, translate 0.5s var(--ease-out), box-shadow 0.45s;
}
.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header.is-solid,
.site-header--light {
  color: var(--ink);
}
.site-header.is-solid {
  background: rgb(243 244 248 / 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { translate: 0 -110%; }
body.menu-open .site-header { translate: 0 0; background: transparent; box-shadow: none; backdrop-filter: none; color: #fff; }

.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  gap: 3px;
  flex: none;
}
.brand__name {
  font-family: var(--font-display);
  font-stretch: 62%;
  font-weight: 900;
  font-size: 1.85rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.brand__name b { color: var(--brand); font-weight: inherit; }
.site-header:not(.is-solid):not(.site-header--light) .brand__name b,
body.menu-open .brand__name b { color: inherit; }
.brand__tag {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}
.brand__logo { max-height: 46px; width: auto; }
.brand.has-logo .brand__text { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.menu-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.35);
  transition: border-color 0.3s, background 0.3s;
}
.site-header.is-solid .menu-btn,
.site-header--light .menu-btn { border-color: var(--line-strong); }
body.menu-open .menu-btn { border-color: rgb(255 255 255 / 0.5); }
.menu-btn__lines { position: relative; width: 18px; height: 12px; }
.menu-btn__lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.45s var(--ease-out), opacity 0.3s, top 0.45s var(--ease-out);
}
.menu-btn__lines span:nth-child(1) { top: 0; }
.menu-btn__lines span:nth-child(2) { top: 5px; }
.menu-btn__lines span:nth-child(3) { top: 10px; }
body.menu-open .menu-btn__lines span:nth-child(1) { top: 5px; transform: rotate(45deg); }
body.menu-open .menu-btn__lines span:nth-child(2) { opacity: 0; }
body.menu-open .menu-btn__lines span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

.header-cta { display: none; }
.site-header:not(.is-solid):not(.site-header--light) .header-cta { --btn-bg: #fff; --btn-fg: var(--ink); --btn-dot: var(--brand); }
body.menu-open .header-cta { --btn-bg: #fff; --btn-fg: var(--ink); --btn-dot: var(--brand); }
@media (min-width: 720px) { .header-cta { display: inline-flex; } }
.header-cta.btn { min-height: 46px; padding-left: 18px; font-size: 0.86rem; }
.header-cta .btn__dot { width: 34px; height: 34px; }

/* Menú a pantalla completa */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--brand);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.8s var(--ease-in-out), visibility 0s 0.8s;
  overflow-y: auto;
}
body.menu-open .menu {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path 0.8s var(--ease-in-out), visibility 0s;
}
.menu__inner {
  width: 100%;
  max-width: var(--max);
  margin: auto;
  display: grid;
  gap: 48px;
}
@media (min-width: 900px) { .menu__inner { grid-template-columns: 1.4fr 1fr; align-items: end; } }
.menu__links { display: grid; gap: 2px; list-style: none; }
.menu__links a {
  display: inline-flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--font-display);
  font-stretch: 62%;
  font-weight: 880;
  text-transform: uppercase;
  font-size: min(9vh, 15.5vw, 6.4rem);
  white-space: nowrap;
  line-height: 0.96;
  color: rgb(255 255 255 / 0.95);
  transition: color 0.3s, translate 0.5s var(--ease-out);
}
.menu__links a small {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0.6;
  letter-spacing: 0.06em;
}
.menu__links a[aria-current="page"] { color: var(--brand-soft); translate: 12px 0; }
@media (hover: hover) {
.menu__links a:hover { color: var(--brand-soft); translate: 12px 0; }
}
.menu__links li { overflow: hidden; }
.menu__links li > a { translate: 0 110%; transition: translate 0.7s var(--ease-out), color 0.3s; }
body.menu-open .menu__links li > a { translate: 0 0; }
body.menu-open .menu__links li:nth-child(2) > a { transition-delay: 0.05s; }
body.menu-open .menu__links li:nth-child(3) > a { transition-delay: 0.1s; }
body.menu-open .menu__links li:nth-child(4) > a { transition-delay: 0.15s; }
body.menu-open .menu__links li:nth-child(5) > a { transition-delay: 0.2s; }
body.menu-open .menu__links li:nth-child(6) > a { transition-delay: 0.25s; }
@media (hover: hover) {
body.menu-open .menu__links li > a:hover { translate: 12px 0; transition-delay: 0s; }
}
.menu__aside { display: grid; gap: 22px; font-size: 1rem; opacity: 0; translate: 0 20px; transition: opacity 0.5s 0.3s, translate 0.6s 0.3s var(--ease-out); }
body.menu-open .menu__aside { opacity: 1; translate: 0 0; }
.menu__aside h3 { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.65; margin-bottom: 6px; }
@media (hover: hover) {
.menu__aside a:hover { text-decoration: underline; text-underline-offset: 4px; }
}
body.menu-open { overflow: hidden; }

/* 5. Inicio --------------------------------------------------------------- */

/* Portada */
.hero {
  position: relative;
  min-height: max(640px, 100svh);
  color: #fff;
  background: var(--brand-night);
  overflow: hidden;
  isolation: isolate;
  display: flex;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
  transform-origin: 60% 40%;
  animation: hero-zoom 2.4s var(--ease-out) both;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 78% 30%, rgb(43 54 214 / 0.25), transparent 60%),
    linear-gradient(180deg, rgb(6 9 51 / 0.74) 0%, rgb(10 15 81 / 0.52) 38%, rgb(5 7 38 / 0.92) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--brand-deep);
  mix-blend-mode: multiply;
  opacity: 0.55;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  width: 100%;
  padding-top: calc(var(--header-h) + clamp(28px, 6vh, 72px));
  padding-bottom: 28px;
  min-height: inherit;
}
.hero__top { display: grid; gap: 22px; max-width: 470px; }
.hero__tagline {
  font-family: var(--font-display);
  font-stretch: 62%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  line-height: 1.08;
}
.hero__title {
  align-self: end;
  font-size: clamp(4.6rem, 18.5vw, 19rem);
  line-height: 0.8;
  margin-left: -0.04em;
  white-space: nowrap;
}
.hero__title .word { display: inline-block; overflow: hidden; padding-bottom: 0.04em; vertical-align: bottom; }
.hero__title .word > span { display: inline-block; animation: rise 1.2s var(--ease-out) both; }
.hero__title .word:nth-child(2) > span { animation-delay: 0.12s; }
.hero__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgb(255 255 255 / 0.22);
  font-size: 0.86rem;
  opacity: 0.88;
  padding-right: 84px;
}
.hero__scroll { display: inline-flex; align-items: center; gap: 10px; }
.hero__scroll i {
  width: 1px;
  height: 28px;
  background: rgb(255 255 255 / 0.5);
  position: relative;
  overflow: hidden;
}
.hero__scroll i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  animation: scroll-line 2s var(--ease-in-out) infinite;
}

.hero__card {
  position: absolute;
  right: var(--gutter);
  top: calc(var(--header-h) + 6vh);
  width: clamp(200px, 22vw, 300px);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-lg);
  rotate: 5deg;
  animation: card-in 1.4s 0.4s var(--ease-out) both, float 7s 1.8s ease-in-out infinite;
  display: none;
}
@media (min-width: 820px) { .hero__card { display: block; } }
.hero__card img { aspect-ratio: 1; width: 100%; object-fit: contain; border-radius: 12px; background: #f3f3f3; }
.hero__card figcaption { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 4px 2px; }
.hero__card strong { font-family: var(--font-display); font-stretch: 62%; font-weight: 850; font-size: 1.45rem; text-transform: uppercase; line-height: 1; }
.hero__card span { font-size: 0.74rem; color: var(--muted); line-height: 1.3; text-align: right; }
.hero__badge {
  position: absolute;
  left: -34px;
  bottom: 22%;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  rotate: -12deg;
  box-shadow: var(--shadow);
}
.hero__badge svg { width: 100%; height: 100%; animation: spin 18s linear infinite; }
.hero__badge b { position: absolute; font-family: var(--font-display); font-stretch: 62%; font-weight: 900; font-size: 1.3rem; }

/* Sobre nosotros (bloque azul Glory) */
.about {
  background: var(--brand);
  color: #fff;
  overflow: hidden;
}
.about__grid { display: grid; gap: 28px; }
@media (min-width: 1000px) { .about__grid { grid-template-columns: 200px 1fr; } }
.about__label { color: var(--brand-soft); }
.about__statement {
  font-size: clamp(2.5rem, 6.4vw, 6.3rem);
  line-height: 0.92;
}
.about__statement .lead-in { color: #fff; }
@media (min-width: 1000px) { .about__statement .lead-in { padding-left: 2.6em; } }
.about__statement .w { color: rgb(255 255 255 / 0.38); transition: color 0.35s; }
.about__statement .w.on { color: #fff; }
.about__bottom {
  display: grid;
  gap: 18px;
  margin-top: clamp(40px, 6vw, 72px);
}
@media (min-width: 1000px) { .about__bottom { margin-left: calc(200px + 28px + 18%); } }
.stats { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .stats { grid-template-columns: 1.4fr 1fr 1fr; } }
.stat {
  border-radius: var(--radius-sm);
  padding: 20px 20px 22px;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  gap: 10px;
  align-content: start;
  transition: translate 0.5s var(--ease-out);
}
@media (hover: hover) {
.stat:hover { translate: 0 -6px; }
}
.stat--cream { background: var(--bg); }
.stat--ink { background: var(--ink); color: #fff; }
.stat__num {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
  font-stretch: 62%;
  font-weight: 880;
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  line-height: 0.9;
}
.stat__num small { font-size: 0.4em; font-weight: 850; text-transform: uppercase; }
.stat p { font-size: 0.92rem; line-height: 1.45; }

/* Servicios (lista numerada) */
.services__note { font-size: 0.92rem; color: var(--muted); max-width: 32ch; }
.svc-list { list-style: none; border-top: 1px solid var(--line-strong); }
.svc {
  position: relative;
  border-bottom: 1px solid var(--line-strong);
}
.svc__btn {
  width: 100%;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 26px 0;
  text-align: left;
}
.svc__num { font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.svc__title {
  font-family: var(--font-display);
  font-stretch: 62%;
  font-weight: 860;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 3.6vw, 3.2rem);
  line-height: 0.95;
  transition: color 0.35s, translate 0.5s var(--ease-out);
}
.svc__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  transition: background 0.35s, color 0.35s, rotate 0.5s var(--ease-out), border-color 0.35s;
}
.svc__icon svg { width: 18px; height: 18px; }
.svc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease-out);
}
.svc__panel > div { overflow: hidden; }
.svc__body {
  display: grid;
  gap: 16px;
  padding: 0 0 30px 68px;
  max-width: 760px;
}
.svc__body p { color: var(--ink-2); font-size: 1.02rem; }
.svc.is-open .svc__panel { grid-template-rows: 1fr; }
.svc.is-open .svc__title { color: var(--brand); translate: 8px 0; }
@media (hover: hover) {
.svc__btn:hover .svc__title { color: var(--brand); translate: 8px 0; }
}
.svc.is-open .svc__icon { background: var(--brand); border-color: var(--brand); color: #fff; rotate: 45deg; }
@media (max-width: 640px) {
  .svc__btn { grid-template-columns: 34px 1fr auto; gap: 10px; }
  .svc__body { padding-left: 44px; }
}
/* Imagen que sigue al cursor sobre la lista de servicios */
.svc-preview {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 50;
  width: 240px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  pointer-events: none;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  scale: 0.6;
  rotate: -6deg;
  transition: opacity 0.35s, scale 0.5s var(--ease-out), rotate 0.5s var(--ease-out);
}
.svc-preview.is-visible { opacity: 1; scale: 1; rotate: 4deg; }
.svc-preview img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
@media (hover: none), (max-width: 900px) { .svc-preview { display: none; } }

/* Equipos destacados */
.equip-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.12em 0.2em;
  font-size: clamp(3.2rem, 11vw, 11rem);
}
.equip-title__img {
  display: inline-block;
  width: 1.5em;
  height: 0.82em;
  border-radius: 0.14em;
  overflow: hidden;
  background: var(--paper);
  rotate: -4deg;
  box-shadow: var(--shadow);
  transition: rotate 0.6s var(--ease-out), width 0.8s var(--ease-out);
}
@media (hover: hover) {
.equip-title:hover .equip-title__img { rotate: 3deg; width: 1.9em; }
}
.equip-title__img img { width: 100%; height: 100%; object-fit: cover; }

.carousel { position: relative; }
.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 340px);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 8px var(--gutter) 28px;
  margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: none;
  cursor: grab;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel__track.is-dragging * { pointer-events: none; }
.carousel__nav { display: flex; gap: 10px; }
.round-btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
@media (hover: hover) {
.round-btn:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
}
.round-btn:disabled { opacity: 0.35; cursor: default; }
.round-btn svg { width: 20px; height: 20px; }
.carousel__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; }

/* Tarjeta de producto */
.product-card {
  scroll-snap-align: start;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  box-shadow: var(--shadow);
  transition: translate 0.5s var(--ease-out), box-shadow 0.5s;
  width: 100%;
}
@media (hover: hover) {
.product-card:hover { translate: 0 -8px; box-shadow: var(--shadow-lg); }
}
.product-card__media {
  position: relative;
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 60%, #fff 0%, #eceef5 70%);
  overflow: hidden;
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8%;
  mix-blend-mode: multiply;
  transition: scale 0.8s var(--ease-out);
}
@media (hover: hover) {
.product-card:hover .product-card__media img { scale: 1.06; }
}
.product-card__media .chip { position: absolute; left: 14px; top: 14px; background: rgb(255 255 255 / 0.9); border-color: transparent; font-size: 0.68rem; }
.product-card__body { display: grid; gap: 10px; padding: 20px 20px 22px; align-content: start; }
.product-card__name {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-stretch: 62%;
  font-weight: 870;
  text-transform: uppercase;
  font-size: 2rem;
  line-height: 0.95;
}
.product-card__arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg);
  transition: background 0.35s, color 0.35s, rotate 0.5s var(--ease-out);
}
.product-card__arrow svg { width: 16px; height: 16px; }
@media (hover: hover) {
.product-card:hover .product-card__arrow { background: var(--brand); color: #fff; rotate: -45deg; }
}
.product-card__summary { font-size: 0.92rem; color: var(--muted); line-height: 1.5; }

/* Cómo trabajamos */
.process { background: var(--paper); }
.process__scroller { position: relative; height: 340vh; }
.process__sticky {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding-block: calc(var(--header-h) + 24px) 40px;
}
.process__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .process__grid { grid-template-columns: 1.1fr 1fr; } }
.process__title { font-size: clamp(2.8rem, 6.6vw, 6.4rem); }
.process__title .soft { color: rgb(14 17 48 / 0.26); }
.process__steps { list-style: none; display: grid; gap: 4px; margin-top: 36px; }
.process__steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.4s;
}
.process__steps li::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--line-strong);
  transition: width 0.5s var(--ease-out), background 0.4s;
}
.process__steps li.on { color: var(--ink); }
.process__steps li.on::before { width: 56px; background: var(--brand); }
.ring {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1;
  margin-inline: auto;
}
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.ring__track { stroke: var(--bg-2); }
.ring__bar { stroke: var(--brand); transition: stroke-dashoffset 0.15s linear; }
.ring__content {
  position: absolute;
  inset: 14%;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  gap: 14px;
}
.ring__num { font-family: var(--font-display); font-stretch: 62%; font-weight: 850; font-size: clamp(2.4rem, 5vw, 3.6rem); color: rgb(14 17 48 / 0.28); line-height: 1; }
.ring__title { font-size: clamp(2rem, 4vw, 3.2rem); }
.ring__text { color: var(--muted); max-width: 30ch; font-size: 1rem; }
.ring__step { grid-area: 1 / 1; display: grid; gap: 14px; justify-items: center; opacity: 0; translate: 0 18px; transition: opacity 0.5s, translate 0.6s var(--ease-out); }
.ring__step.on { opacity: 1; translate: 0 0; }
.ring__stack { display: grid; }
@media (max-width: 959px) {
  .process__scroller { height: auto; }
  .process__sticky { position: static; min-height: 0; padding-block: var(--section-y); }
  .ring { display: none; }
  .process__steps { gap: 20px; }
  .process__steps li { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; color: var(--ink); }
  .process__steps li::before { grid-row: span 2; width: 0; }
  .process__steps li .m-text { display: block; grid-column: 2; font-weight: 450; color: var(--muted); }
}
.process__steps li .m-text { display: none; }
.process__steps li .m-num { color: var(--brand); font-family: var(--font-display); font-stretch: 62%; font-weight: 850; font-size: 1.2rem; }

/* Sectores (tarjetas dispersas) */
.sectors { overflow: hidden; }
.sectors__stage {
  position: relative;
  display: grid;
  gap: 16px;
}
.sectors__center { text-align: center; display: grid; gap: 18px; justify-items: center; padding-block: 24px; }
.sectors__center .title-lg { max-width: 11ch; }
.sector-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
  text-align: center;
  justify-items: center;
  transition: rotate 0.6s var(--ease-out), scale 0.6s var(--ease-out), box-shadow 0.6s;
}
.sector-card h3 { font-family: var(--font-display); font-stretch: 62%; font-weight: 870; text-transform: uppercase; font-size: 1.7rem; line-height: 0.95; }
.sector-card p { font-size: 0.92rem; color: var(--muted); line-height: 1.45; max-width: 34ch; }
.sector-card--brand { background: var(--brand); color: #fff; }
.sector-card.sector-card--brand p { color: rgb(255 255 255 / 0.88); }
.sector-card__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--brand); }
.sector-card--brand .sector-card__icon { background: rgb(255 255 255 / 0.16); color: #fff; }
.sector-card__icon svg { width: 24px; height: 24px; }
.sector-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-2);
  display: none;
}
.sector-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1099px) {
  .sectors__stage { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .sectors__center { grid-column: 1 / -1; order: -1; }
}
@media (min-width: 1100px) {
  .sectors__stage {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(6, minmax(70px, auto));
    gap: 0;
    min-height: 860px;
  }
  .sectors__center { grid-column: 4 / 10; grid-row: 2 / 6; align-self: center; z-index: 1; }
  .sector-card, .sector-photo { position: relative; }
  .sector-photo { display: block; aspect-ratio: 1; }
  .sector-card { max-width: 400px; }
  .s1 { grid-column: 1 / 5; grid-row: 1 / 3; rotate: -9deg; align-self: start; }
  .s2 { grid-column: 9 / 13; grid-row: 1 / 3; rotate: 9deg; justify-self: end; align-self: start; }
  .s3 { grid-column: 1 / 5; grid-row: 5 / 7; rotate: -4deg; align-self: end; }
  .s4 { grid-column: 9 / 13; grid-row: 5 / 7; rotate: 8deg; justify-self: end; align-self: end; }
  .s5 { grid-column: 5 / 9; grid-row: 6 / 7; rotate: -3deg; justify-self: center; align-self: end; margin-top: 30px; }
  .s6 { grid-column: 5 / 9; grid-row: 1 / 2; rotate: 3deg; justify-self: center; margin-bottom: 30px; }
  .p1 { grid-column: 6 / 8; grid-row: 1 / 2; width: 140px; rotate: 12deg; justify-self: start; display: none; }
  .p2 { grid-column: 2 / 3; grid-row: 3 / 5; width: 130px; rotate: -14deg; align-self: center; margin-left: 30px; }
  .p3 { grid-column: 11 / 13; grid-row: 3 / 5; width: 140px; rotate: 14deg; align-self: center; justify-self: end; margin-right: 10px; }
  .p4 { grid-column: 4 / 6; grid-row: 6 / 7; width: 120px; rotate: -10deg; align-self: end; display: none; }
  .sector-card:hover, .sector-photo:hover { rotate: 0deg; scale: 1.04; z-index: 2; box-shadow: var(--shadow-lg); }
  .sector-photo { transition: rotate 0.6s var(--ease-out), scale 0.6s var(--ease-out); }
}

/* Glory */
.partner {
  display: grid;
  gap: 32px;
  align-items: center;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 64px);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
@media (min-width: 900px) { .partner { grid-template-columns: auto 1fr auto; gap: 56px; } }
.partner__logo {
  width: clamp(120px, 14vw, 180px);
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line);
}
.partner__logo img { width: 100%; height: 100%; object-fit: contain; }
.partner__text { display: grid; gap: 14px; }
.partner__text .title-md { max-width: 16ch; }

/* Preguntas frecuentes */
.faq__grid { display: grid; gap: 22px; }
@media (min-width: 960px) { .faq__grid { grid-template-columns: 1.25fr 1fr; align-items: stretch; } }
.faq__list { display: grid; gap: 10px; align-content: start; }
.faq-item {
  background: var(--paper);
  border-radius: var(--radius-sm);
  transition: box-shadow 0.4s;
}
.faq-item[open] { box-shadow: var(--shadow); }
.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px 22px;
  cursor: pointer;
  font-family: var(--font-display);
  font-stretch: 62%;
  font-weight: 850;
  text-transform: uppercase;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.05;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__plus {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  transition: rotate 0.5s var(--ease-out), background 0.3s, color 0.3s, border-color 0.3s;
}
.faq-item__plus::before,
.faq-item__plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  background: currentColor;
  translate: -50% -50%;
}
.faq-item__plus::after { rotate: 90deg; }
.faq-item[open] .faq-item__plus { rotate: 135deg; background: var(--brand); border-color: var(--brand); color: #fff; }
.faq-item__answer { padding: 0 22px 22px; color: var(--ink-2); max-width: 64ch; }
.faq-item[open] .faq-item__answer { animation: fade-down 0.5s var(--ease-out); }
.faq__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 360px;
  background: var(--bg-2);
}
.faq__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.faq__media figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-weight: 650;
  font-size: 0.95rem;
}

/* Tarjetas del blog */
.post-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.post-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: translate 0.5s var(--ease-out), box-shadow 0.5s;
}
@media (hover: hover) {
.post-card:hover { translate: 0 -6px; box-shadow: var(--shadow-lg); }
}
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.9s var(--ease-out); }
@media (hover: hover) {
.post-card:hover .post-card__media img { scale: 1.05; }
}
.post-card__body { display: grid; gap: 12px; padding: 22px; align-content: start; }
.post-card__title {
  font-family: var(--font-display);
  font-stretch: 62%;
  font-weight: 850;
  text-transform: uppercase;
  font-size: 1.75rem;
  line-height: 0.98;
}
.post-card__excerpt { color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: 0.84rem; color: var(--muted); flex-wrap: wrap; }
.post-meta img, .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--brand);
  flex: none;
}
.avatar--initials {
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  background: var(--brand);
}
.post-card--featured { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .post-card--featured { grid-template-columns: 1.3fr 1fr; grid-template-rows: none; }
  .post-card--featured .post-card__media { aspect-ratio: auto; min-height: 420px; }
  .post-card--featured .post-card__body { padding: 40px; align-content: center; }
  .post-card--featured .post-card__title { font-size: clamp(2.2rem, 3.6vw, 3.4rem); }
}
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
}

/* Llamado a la acción de contacto (global) */
.cta {
  position: relative;
  background: var(--brand-deep);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 900px;
  height: 900px;
  left: 50%;
  top: 55%;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(80 96 255 / 0.75), rgb(43 54 214 / 0.3) 45%, transparent 70%);
  filter: blur(30px);
  animation: glow 9s ease-in-out infinite alternate;
}
.cta__inner { display: grid; justify-items: center; gap: 22px; }
.cta__title { font-size: clamp(3.4rem, 10vw, 9rem); }
.cta__stage { position: relative; width: 100%; display: grid; place-items: center; margin-block: 12px 8px; }
.cta__img {
  position: relative;
  z-index: 1;
  width: min(360px, 70vw);
  aspect-ratio: 1.3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  rotate: -3deg;
  transition: rotate 0.6s var(--ease-out);
}
@media (hover: hover) {
.cta__img:hover { rotate: 2deg; }
}
.cta__img img { width: 100%; height: 100%; object-fit: cover; }
.marquee {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  translate: 0 -50%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding-right: 22px;
  font-family: var(--font-display);
  font-stretch: 62%;
  font-weight: 860;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  color: rgb(255 255 255 / 0.55);
  white-space: nowrap;
}
.marquee__item svg { width: 0.7em; height: 0.7em; color: rgb(255 255 255 / 0.8); }
.cta__contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}
.cta__contacts a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
  border: 1px solid rgb(255 255 255 / 0.22);
  font-weight: 650;
  font-size: 0.92rem;
  transition: background 0.3s, color 0.3s;
}
@media (hover: hover) {
.cta__contacts a:hover { background: #fff; color: var(--brand-deep); }
}

/* 6. Páginas internas ---------------------------------------------------- */

.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 110px));
  padding-bottom: clamp(48px, 7vw, 96px);
  overflow: hidden;
}
.page-hero__grid { display: grid; gap: 28px; align-items: end; }
@media (min-width: 960px) { .page-hero__grid { grid-template-columns: 1.5fr 1fr; } }
.page-hero__title { font-size: clamp(3.6rem, 12vw, 11.5rem); }
.page-hero__title .accent { color: var(--brand); }
.page-hero__aside { display: grid; gap: 22px; align-content: end; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 0.82rem; font-weight: 700; color: var(--muted); margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.06em; }
@media (hover: hover) {
.crumbs a:hover { color: var(--brand); }
}
.page-hero__band {
  margin-top: clamp(36px, 5vw, 64px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 21 / 8;
  min-height: 220px;
  background: var(--bg-2);
  position: relative;
}
.page-hero__band img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(10 15 81 / 0.45), transparent 60%);
  pointer-events: none;
}

/* Catálogo */
.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px;
  margin-bottom: 36px;
  background: rgb(255 255 255 / 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 999px;
  box-shadow: var(--shadow);
  width: max-content;
  max-width: 100%;
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.86rem;
  white-space: nowrap;
  transition: background 0.3s, color 0.3s;
}
@media (hover: hover) {
.filter:hover { background: var(--bg); }
}
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; }
.filter .count { opacity: 0.55; margin-left: 4px; font-weight: 600; }
.catalog-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
.catalog-grid .product-card { animation: card-pop 0.6s var(--ease-out) both; }
.catalog-group + .catalog-group { margin-top: 64px; }
.catalog-group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line-strong); padding-bottom: 14px; margin-bottom: 24px; }

/* Ficha de producto (diálogo) */
.product-dialog {
  width: min(1080px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  translate: 0 30px;
  transition: opacity 0.35s, translate 0.5s var(--ease-out), display 0.5s allow-discrete, overlay 0.5s allow-discrete;
}
.product-dialog[open] { opacity: 1; translate: 0 0; }
@starting-style { .product-dialog[open] { opacity: 0; translate: 0 30px; } }
.product-dialog::backdrop {
  background: rgb(6 9 51 / 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s, display 0.35s allow-discrete, overlay 0.35s allow-discrete;
}
.product-dialog[open]::backdrop { opacity: 1; }
@starting-style { .product-dialog[open]::backdrop { opacity: 0; } }
.pd {
  display: grid;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
@media (min-width: 900px) { .pd { grid-template-columns: 1fr 1.1fr; overflow: hidden; } }
.pd__media {
  position: relative;
  background: radial-gradient(circle at 50% 55%, #fff 0%, #e9ebf3 75%);
  min-height: 320px;
  display: grid;
  place-items: center;
}
.pd__media img { width: 86%; max-height: 520px; object-fit: contain; mix-blend-mode: multiply; }
.pd__body { padding: clamp(24px, 4vw, 48px); display: grid; gap: 22px; align-content: start; }
@media (min-width: 900px) { .pd__body { overflow-y: auto; max-height: calc(100dvh - 24px); } }
.pd__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  transition: rotate 0.5s var(--ease-out), background 0.3s;
}
@media (hover: hover) {
.pd__close:hover { rotate: 90deg; background: var(--brand); }
}
.pd__close svg { width: 18px; height: 18px; }
.pd__name { font-size: clamp(3rem, 6vw, 5rem); }
.pd h3 { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 42%; font-weight: 700; padding-right: 14px; }
.check-list { list-style: none; display: grid; gap: 10px; }
.check-list li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 0.95rem; line-height: 1.5; }
.check-list li::before {
  content: "";
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111986' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.pd__actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }

/* Servicios (página) */
.svc-blocks { display: grid; gap: clamp(20px, 3vw, 28px); }
.svc-block {
  display: grid;
  gap: 0;
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
@media (min-width: 900px) {
  .svc-block { grid-template-columns: 1fr 1fr; }
  .svc-block:nth-child(even) .svc-block__media { order: 2; }
}
.svc-block__media { min-height: 300px; background: var(--bg-2); position: relative; }
.svc-block__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-block__body { padding: clamp(28px, 4.5vw, 60px); display: grid; gap: 18px; align-content: center; }
.svc-block__num { font-family: var(--font-display); font-stretch: 62%; font-weight: 850; font-size: 1.3rem; color: var(--brand); }
.feature-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.feature {
  border-radius: var(--radius);
  padding: 28px;
  background: var(--paper);
  display: grid;
  gap: 14px;
  align-content: start;
  box-shadow: var(--shadow);
  transition: translate 0.5s var(--ease-out), background 0.4s, color 0.4s;
}
@media (hover: hover) {
.feature:hover { translate: 0 -6px; background: var(--ink); color: #fff; }
}
@media (hover: hover) {
.feature:hover p { color: rgb(255 255 255 / 0.75); }
}
.feature__icon { width: 54px; height: 54px; border-radius: 16px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-family: var(--font-display); font-stretch: 62%; font-weight: 860; text-transform: uppercase; font-size: 1.7rem; line-height: 0.95; }
.feature p { color: var(--muted); font-size: 0.95rem; line-height: 1.55; transition: color 0.4s; }

/* Nosotros */
.story { display: grid; gap: 40px; }
@media (min-width: 960px) { .story { grid-template-columns: 1fr 1.2fr; align-items: center; } }
.story__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-2); }
.story__media img { width: 100%; height: 100%; object-fit: cover; }
.story__year {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius);
  padding: 18px 22px;
  display: grid;
  gap: 2px;
}
.story__year b { font-family: var(--font-display); font-stretch: 62%; font-weight: 900; font-size: 3.6rem; line-height: 0.85; }
.story__year span { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.story__text { display: grid; gap: 22px; }
.story__text p { font-size: 1.08rem; color: var(--ink-2); }
.mvv { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.mvv__card { border-radius: var(--radius); padding: 34px; display: grid; gap: 16px; background: var(--paper); box-shadow: var(--shadow); align-content: start; }
.mvv__card:nth-child(2) { background: var(--brand); color: #fff; }
.mvv__card:nth-child(2) p { color: rgb(255 255 255 / 0.88); }
.mvv__card:nth-child(3) { background: var(--ink); color: #fff; }
.mvv__card:nth-child(3) p { color: rgb(255 255 255 / 0.78); }
.mvv__card p { color: var(--ink-2); }

/* Contacto */
.contact-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.contact-card {
  position: relative;
  border-radius: var(--radius);
  padding: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  align-content: start;
  overflow: hidden;
  transition: translate 0.5s var(--ease-out);
}
@media (hover: hover) {
a.contact-card:hover { translate: 0 -6px; }
}
.contact-card__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); }
.contact-card__icon svg { width: 24px; height: 24px; }
.contact-card h3 { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact-card__value { font-family: var(--font-display); font-stretch: 62%; font-weight: 850; text-transform: uppercase; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1; word-break: break-word; }
.contact-card__value--small { font-family: var(--font-body); font-stretch: 100%; text-transform: none; font-size: 1.05rem; font-weight: 600; line-height: 1.5; }
.contact-card--brand { background: var(--brand); color: #fff; }
.contact-card--brand h3 { color: rgb(255 255 255 / 0.75); }
.contact-card--brand .contact-card__icon { background: rgb(255 255 255 / 0.18); color: #fff; }
.contact-card--wa { background: var(--whatsapp); color: #fff; }
.contact-card--wa h3 { color: rgb(255 255 255 / 0.8); }
.contact-card--wa .contact-card__icon { background: rgb(255 255 255 / 0.2); color: #fff; }
.map {
  --map-r: var(--radius-lg);
  margin-top: 24px;
  border: 3px solid var(--brand);
  border-radius: var(--map-r);
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-2);
  aspect-ratio: 16 / 7;
  min-height: 320px;
  box-shadow: var(--shadow);
}
/* El radio también va en el iframe: así las esquinas quedan curvas aunque el navegador no recorte el mapa. */
.map iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: calc(var(--map-r) - 3px); filter: grayscale(0.25) contrast(1.05); }
/* Móvil: la altura sigue al ancho de la pantalla (antes el mínimo de 320px lo hacía muy largo). */
@media (max-width: 719px) {
  .map {
    --map-r: var(--radius);
    aspect-ratio: auto;
    min-height: 0;
    height: clamp(210px, 64vw, 320px);
    height: min(clamp(210px, 64vw, 320px), 70svh);
  }
}
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--shadow);
  font-weight: 700;
  transition: background 0.3s, color 0.3s;
}
@media (hover: hover) {
.social:hover { background: var(--ink); color: #fff; }
}
.social svg { width: 20px; height: 20px; }

/* Artículo */
.article-hero { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 90px)); padding-bottom: 32px; }
.article-hero__inner { max-width: 1000px; margin-inline: auto; display: grid; gap: 22px; justify-items: start; }
.article-hero__title { font-size: clamp(2.8rem, 7.4vw, 6.4rem); }
.article-hero__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.article-hero__meta .avatar { width: 46px; height: 46px; }
.article-author { display: grid; line-height: 1.3; }
.article-author b { font-weight: 750; }
.article-author span { font-size: 0.86rem; color: var(--muted); }
.article-cover {
  max-width: 1200px;
  margin: 12px auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 8;
  background: var(--bg-2);
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-layout { display: grid; gap: 40px; max-width: 1100px; margin-inline: auto; }
@media (min-width: 1000px) { .article-layout { grid-template-columns: 1fr 220px; } }
.prose { font-size: clamp(1.05rem, 1.25vw, 1.15rem); line-height: 1.8; color: var(--ink-2); max-width: 70ch; }
.prose > * + * { margin-top: 1.2em; }
.prose p { margin: 0; }
.prose h2, .prose h3, .prose h4 {
  font-family: var(--font-display);
  font-stretch: 62%;
  font-weight: 860;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 0.98;
  margin-top: 1.8em;
}
.prose h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.prose h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.prose h4 { font-size: 1.4rem; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 0.5em; }
.prose li::marker { color: var(--brand); font-weight: 800; }
.prose blockquote {
  margin: 1.8em 0;
  padding: 28px 30px;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-stretch: 62%;
  font-weight: 820;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.05;
}
.prose img { border-radius: var(--radius); margin-block: 1.6em; width: 100%; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: 0.86rem; color: var(--muted); margin-top: 8px; }
.prose hr { border: 0; height: 1px; background: var(--line-strong); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.prose code { background: var(--bg-2); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; }
.share { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 10px; align-content: start; }
.share h3 { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.share__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.share__btns a, .share__btns button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: background 0.3s, color 0.3s;
}
@media (hover: hover) {
.share__btns a:hover,
.share__btns button:hover { background: var(--brand); color: #fff; }
}
.share__btns svg { width: 19px; height: 19px; }
.author-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  max-width: 70ch;
  margin-top: 48px;
}
.author-box .avatar { width: 72px; height: 72px; font-size: 1.4rem; }
.author-box h3 { font-family: var(--font-display); font-stretch: 62%; font-weight: 860; text-transform: uppercase; font-size: 1.6rem; line-height: 1; }
.author-box p { color: var(--muted); font-size: 0.95rem; margin-top: 6px; }

.skeleton {
  background: linear-gradient(90deg, var(--bg-2) 0%, #f9fafd 50%, var(--bg-2) 100%) 0 0 / 200% 100%;
  animation: shimmer 1.4s linear infinite;
  border-radius: var(--radius);
}

/* 7. Pie, WhatsApp, 404 --------------------------------------------------- */

.site-footer {
  background: var(--paper);
  padding-top: clamp(64px, 8vw, 110px);
  overflow: hidden;
}
.footer-grid { display: grid; gap: 40px; padding-bottom: 48px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid h3 { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a { transition: color 0.3s; }
@media (hover: hover) {
.footer-grid a:hover { color: var(--brand); }
}
.footer-about { display: grid; gap: 18px; align-content: start; max-width: 36ch; }
.footer-about p { color: var(--muted); }
.footer-word {
  font-size: clamp(4rem, 22vw, 22rem);
  line-height: 0.76;
  color: transparent;
  -webkit-text-stroke: 1.5px rgb(14 17 48 / 0.16);
  white-space: nowrap;
  text-align: center;
  user-select: none;
  margin-bottom: -0.06em;
  transition: color 0.8s;
}
@media (hover: hover) {
.footer-word:hover { color: var(--brand); -webkit-text-stroke-color: var(--brand); }
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 22px;
  font-size: 0.86rem;
  color: var(--muted);
}
/* Crédito de autor: firma pequeña en la esquina inferior izquierda del pie */
.footer-bottom .credit {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  line-height: 1;
}
.footer-bottom .credit b { font-weight: 700; color: var(--ink-2); }
.credit__sign { display: block; width: auto; height: 32px; }

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 12px;
}
.wa-float__bubble {
  background: var(--paper);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  line-height: 1.35;
  opacity: 0;
  translate: 12px 0;
  pointer-events: none;
  transition: opacity 0.4s, translate 0.5s var(--ease-out);
}
.wa-float__bubble b { display: block; }
.wa-float.show-bubble .wa-float__bubble { opacity: 1; translate: 0 0; pointer-events: auto; }
.wa-float__btn {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px -6px rgb(31 174 84 / 0.6);
  transition: scale 0.4s var(--ease-out);
}
@media (hover: hover) {
.wa-float__btn:hover { scale: 1.08; }
}
.wa-float__btn svg { width: 30px; height: 30px; }
.wa-float__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--whatsapp);
  animation: ping 2.6s var(--ease-out) infinite;
}
@media (max-width: 600px) { .wa-float__bubble { display: none; } }

/* 404 */
.notfound {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 40px) var(--gutter) 60px;
  position: relative;
  overflow: hidden;
}
.notfound__num {
  position: relative;
  font-size: clamp(9rem, 40vw, 30rem);
  line-height: 0.78;
  color: var(--brand);
  display: flex;
  justify-content: center;
}
.notfound__num span { display: inline-block; animation: rise 1s var(--ease-out) both; }
.notfound__num span:nth-child(2) { animation-delay: 0.1s; color: var(--ink); }
.notfound__num span:nth-child(3) { animation-delay: 0.2s; }
.notfound__inner { display: grid; gap: 22px; justify-items: center; position: relative; z-index: 1; }
.notfound .title-md { max-width: 16ch; }
.bills { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bill {
  position: absolute;
  top: -120px;
  width: 92px;
  height: 46px;
  border-radius: 6px;
  background: linear-gradient(135deg, #e9f2e3, #c9dcc0);
  border: 2px solid #9fbb94;
  box-shadow: var(--shadow);
  animation: fall linear infinite;
  opacity: 0.85;
}
.bill::before { content: ""; position: absolute; inset: 7px; border: 1.5px dashed #8fae84; border-radius: 3px; }
.bill::after { content: "$"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-stretch: 62%; font-weight: 900; font-size: 1.3rem; color: #6c8d61; }

/* 8. Animaciones ---------------------------------------------------------- */

[data-reveal] { opacity: 0; translate: 0 40px; transition: opacity 0.9s var(--ease-out), translate 1.1s var(--ease-out); transition-delay: var(--delay, 0s); }
[data-reveal="left"] { translate: -40px 0; }
[data-reveal="scale"] { translate: none; scale: 0.92; transition-property: opacity, scale; }
[data-reveal].is-in { opacity: 1; translate: 0 0; scale: 1; }
.no-js [data-reveal] { opacity: 1; translate: none; scale: none; }

.split-line { display: block; overflow: hidden; padding-bottom: 0.05em; }
.split-line > span { display: block; translate: 0 105%; transition: translate 1.1s var(--ease-out); transition-delay: var(--delay, 0s); }
.is-in .split-line > span, .split-line.is-in > span { translate: 0 0; }

@keyframes rise { from { translate: 0 105%; } to { translate: 0 0; } }
@keyframes hero-zoom { from { scale: 1.18; } to { scale: 1; } }
@keyframes card-in { from { opacity: 0; translate: 40px 60px; rotate: 18deg; } to { opacity: 1; translate: 0 0; rotate: 5deg; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes scroll-line { 0% { translate: 0 -100%; } 60%, 100% { translate: 0 100%; } }
@keyframes marquee { to { translate: -50% 0; } }
@keyframes glow { from { scale: 0.85; translate: -60% -50%; } to { scale: 1.1; translate: -40% -55%; } }
@keyframes ping { 0% { scale: 1; opacity: 0.8; } 80%, 100% { scale: 1.6; opacity: 0; } }
@keyframes fade-down { from { opacity: 0; translate: 0 -8px; } to { opacity: 1; translate: 0 0; } }
@keyframes card-pop { from { opacity: 0; translate: 0 24px; scale: 0.97; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes fall {
  0% { translate: 0 -10vh; rotate: 0deg; }
  100% { translate: 40px 120vh; rotate: 320deg; }
}

/* Transición suave entre páginas (navegadores compatibles) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: 0.35s var(--ease-in-out) both vt-out; }
  ::view-transition-new(root) { animation: 0.55s var(--ease-out) both vt-in; }
}
@keyframes vt-out { to { opacity: 0; translate: 0 -24px; } }
@keyframes vt-in { from { opacity: 0; translate: 0 32px; } }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], .split-line > span { opacity: 1 !important; translate: none !important; scale: none !important; transition: none !important; }
  .hero__media img, .hero__title .word > span, .hero__card, .hero__badge svg, .marquee__track, .cta::before, .wa-float__btn::after, .bill, .notfound__num span, .hero__scroll i::after { animation: none !important; }
  .about__statement .w { color: #fff; }
  .bill { display: none; }
  html { scroll-behavior: auto; }
}

/* 9. Vista previa del panel ---------------------------------------------- */

html.cms-preview [data-cms],
html.cms-preview [data-cms-img] { cursor: pointer; }
@media (hover: hover) {
html.cms-preview [data-cms]:hover,
html.cms-preview img[data-cms-img]:hover { outline: 2px dashed var(--brand); outline-offset: 4px; }
}
html.cms-preview .cms-focus { outline: 3px solid var(--brand) !important; outline-offset: 4px; animation: cms-pulse 1.4s ease-out 2; }
html.cms-preview .wa-float { display: none; }
@keyframes cms-pulse { 0% { box-shadow: 0 0 0 0 rgb(43 54 214 / 0.5); } 100% { box-shadow: 0 0 0 18px rgb(43 54 214 / 0); } }
html.cms-pending [data-cms], html.cms-pending [data-cms-img] { visibility: hidden; }
