:where(.cmp-faq__title){margin:0 0 1rem;font-family:var(--font-heading, inherit)}:where(.cmp-faq__item){border-bottom:1px solid var(--color-border, #e5e7eb);border-bottom-color:color-mix(in srgb, currentColor 22%, transparent)}:where(.cmp-faq__item:first-of-type){border-top:1px solid var(--color-border, #e5e7eb);border-top-color:color-mix(in srgb, currentColor 22%, transparent)}:where(.cmp-faq__question){display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:44px;padding:1rem 0;font-family:var(--font-heading, inherit);font-weight:600;line-height:1.35;cursor:pointer;list-style:none}:where(.cmp-faq__question)::-webkit-details-marker{display:none}:where(.cmp-faq__question)::after{content:"+";flex:none;font-size:1.5rem;line-height:1;color:var(--section-accent, var(--color-primary, #2563eb));transition:transform .2s}:where(.cmp-faq__item[open] > .cmp-faq__question)::after{transform:rotate(45deg)}:where(.cmp-faq__question):focus-visible{outline:2px solid var(--section-accent, var(--color-primary, #2563eb));outline-offset:2px;border-radius:var(--radius-sm, .4rem)}:where(.cmp-faq__answer){padding:0 0 1.25rem}:where(.cmp-faq__answer > :first-child){margin-top:0}:where(.cmp-faq__answer > :last-child){margin-bottom:0}@media (prefers-reduced-motion: reduce){:where(.cmp-faq__question)::after{transition:none}}
:where(.cmp-gallery__zoom){display:block;cursor:zoom-in}:where(.cmp-gallery__zoom):focus-visible{outline:2px solid var(--color-primary, #2563eb);outline-offset:2px;border-radius:var(--radius-sm, .4rem)}.cmp-gallery--crop-top .cmp-gallery__img{object-position:top}.cmp-gallery--ratio-1-1 .cmp-gallery__img{aspect-ratio:1/1}.cmp-gallery--ratio-3-4 .cmp-gallery__img{aspect-ratio:3/4}.cmp-gallery--ratio-4-3 .cmp-gallery__img{aspect-ratio:4/3}.cmp-gallery--ratio-16-9 .cmp-gallery__img{aspect-ratio:16/9}:where(.cmp-gallery__caption){display:block;margin-top:.5rem;font-size:.9rem;line-height:1.4}:where(.cmp-lightbox){width:min(96vw,1200px);max-width:none;max-height:94vh;max-height:94dvh;padding:0;border:0;border-radius:var(--radius-md, .5rem);background:var(--color-surface, #fff);overflow:auto;overscroll-behavior:contain}:where(.cmp-lightbox)::backdrop{background:rgba(0,0,0,.8)}:where(.cmp-lightbox__img){display:block;width:100%;height:auto}:where(.cmp-lightbox__close){position:fixed;top:1rem;right:1rem;z-index:1;width:44px;height:44px;border:0;border-radius:50%;background:rgba(0,0,0,.7);color:#fff;font-size:1.75rem;line-height:1;cursor:pointer}:where(.cmp-lightbox__close):focus-visible{outline:2px solid #fff;outline-offset:2px}:where(html:has(.cmp-lightbox[open])){overflow:hidden}:where(.cmp-location__title){margin:0 0 1rem;font-family:var(--font-heading, inherit)}:where(.cmp-location__address){margin:0 0 .5rem;font-weight:600}:where(.cmp-location__hours){margin:0 0 1rem;opacity:.85}:where(.cmp-location__actions){display:flex;flex-wrap:wrap;align-items:center;gap:.75rem 1.25rem;margin:0 0 1.25rem}:where(.cmp-location__alt){font-weight:600}:where(.cmp-location__map){position:relative;aspect-ratio:16/9;min-height:260px;overflow:hidden;border-radius:var(--radius-md, .5rem);background:var(--color-surface, #e5e7eb)}:where(.cmp-location__map iframe){position:absolute;inset:0;width:100%;height:100%;border:0}

/* =========================================================
   CORPORATIVO — style.css
   Sobrio y de confianza · azul profundo, grises fríos, blanco
   Fuentes (vía <link> del template.yml): IBM Plex Sans + Source Sans 3
   ========================================================= */

/* ---------- 1. VARIABLES ---------- */
:root {
  /* Marca (las 4 que se cambian por portal) */
  --color-primary: #1f4e8c;
  --color-on-primary: #ffffff;
  --color-bg: #ffffff;
  --color-surface: #f4f6f9;

  /* Derivados */
  --color-primary-dark: color-mix(in srgb, var(--color-primary) 78%, #000000);
  --color-primary-soft: color-mix(in srgb, var(--color-primary) 9%, #ffffff);
  --color-navy: color-mix(in srgb, var(--color-primary) 35%, #0b1420);
  --color-text: #1a2433;
  --color-muted: #4f5b6b;
  --color-border: #dde2e9;
  --color-border-strong: #b9c2ce;
  --color-on-navy: #e8edf3;
  --color-on-navy-muted: #b7c2d0;

  --font-body: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;

  --radius-sm: 3px;
  --radius-md: 4px;
  --shadow-sm: 0 1px 2px rgba(16, 32, 56, 0.08);
  --shadow-md: 0 6px 18px -6px rgba(16, 32, 56, 0.18);

  --max-width: 1180px;
  --gutter: clamp(1rem, 3.5vw, 1.75rem);
  --space-1: 0.5rem;
  --space-2: 0.875rem;
  --space-3: 1.25rem;
  --space-4: 2rem;
  --space-5: clamp(2.75rem, 6vw, 4.5rem);
  --header-h: 64px;
  --tap: 44px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t: 0.18s var(--ease);
}

/* ---------- 2. BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.site-main {
  flex: 1 0 auto;
}

img,
video,
iframe {
  max-width: 100%;
  display: block;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin: 0 0 var(--space-2);
}

h1 {
  font-size: clamp(2rem, 4.2vw, 2.85rem);
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
}

h4 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 var(--space-2);
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--t);
}

a:hover {
  color: var(--color-primary-dark);
}

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

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

hr {
  border: 0;
  height: 1px;
  background: var(--color-border);
  margin: var(--space-4) 0;
}

/* ---------- 3. UTILIDADES ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: var(--space-5) var(--gutter);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--tap);
  padding: 0.65rem 1.4rem;
  background: var(--color-primary);
  color: var(--color-on-primary);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background var(--t), border-color var(--t), box-shadow var(--t);
}

.btn:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-on-primary);
  box-shadow: var(--shadow-md);
}

.btn:active {
  box-shadow: none;
}

.btn[aria-disabled="true"],
.btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ---------- 4. HEADER ---------- */
.site-header {
  background: var(--color-bg);
  border-top: 4px solid var(--color-primary);
  box-shadow: 0 1px 0 var(--color-border), var(--shadow-sm);
  position: relative;
  z-index: 50;
}

.site-header--sticky {
  position: sticky;
  top: 0;
}

.site-header__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  min-height: var(--header-h);
  padding: 0.5rem var(--gutter);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--tap);
  color: var(--color-text);
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
}

.site-header__brand:hover {
  color: var(--color-text);
}

.site-header__logo {
  height: 40px;
  width: auto;
}

.site-header__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-header__tagline {
  display: none;
  font-size: 0.85rem;
  color: var(--color-muted);
  padding-left: 0.75rem;
  border-left: 1px solid var(--color-border-strong);
}

.site-header__cta {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 1rem;
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  color: var(--color-on-primary);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--t);
}

.site-header__cta:hover {
  background: var(--color-primary-dark);
  color: var(--color-on-primary);
}

/* Botón hamburguesa (CSS puro) — a la derecha */
.site-nav-toggle__input {
  position: absolute;
  opacity: 0;
  width: var(--tap);
  height: var(--tap);
  margin: 0;
  pointer-events: none;
}

.site-nav-toggle {
  order: 10;
  width: var(--tap);
  height: var(--tap);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  flex-shrink: 0;
}

.site-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--t), opacity var(--t);
}

.site-nav-toggle__input:focus-visible+.site-nav-toggle {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.site-nav-toggle__input:checked+.site-nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav-toggle__input:checked+.site-nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-nav-toggle__input:checked+.site-nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Navegación — móvil */
.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.site-nav-toggle__input:checked~.site-nav {
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0 var(--gutter) var(--space-1);
}

.site-nav li+li {
  border-top: 1px solid var(--color-border);
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding-left: 0.75rem;
  border-left: 3px solid transparent;
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--color-primary);
}

.site-nav a[aria-current="page"] {
  color: var(--color-primary);
  border-left-color: var(--color-primary);
}

/* ---------- 5. FOOTER (azul marino) ---------- */
.site-footer {
  background: var(--color-navy);
  color: var(--color-on-navy-muted);
  font-size: 0.95rem;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: var(--space-5) var(--gutter) var(--space-4);
  display: grid;
  gap: var(--space-4);
}

.site-footer__name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: var(--space-2);
}

.site-footer__brand p {
  margin: 0 0 0.35rem;
}

.site-footer a {
  color: var(--color-on-navy);
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.site-footer a:hover {
  color: #ffffff;
  text-decoration-color: #ffffff;
}

.site-footer__nav ul,
.site-footer__social {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  text-decoration: none;
}

.site-footer__nav a:hover {
  text-decoration: underline;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-content: start;
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  text-decoration: none;
  transition: background var(--t), border-color var(--t);
}

.site-footer__social a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.site-footer__copy {
  margin: 0;
  padding: var(--space-3) var(--gutter);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.85rem;
  text-align: center;
  color: var(--color-on-navy-muted);
}

/* ---------- 6. SECCIONES ---------- */
.section {
  position: relative;
  padding: var(--space-5) 0;
}

.section--full {
  padding: 0;
}

.section__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4) clamp(1.25rem, 3vw, 2rem);
}

.section__col {
  min-width: 0;
}

/* Fondos */
.section--tinted {
  --section-bg: var(--color-surface);
  --section-fg: var(--color-text);
  --section-accent: var(--color-primary);
  --section-btn-fg: var(--color-on-primary);
  background: var(--section-bg);
  color: var(--section-fg);
}

.section--tinted h1,
.section--tinted h2,
.section--tinted h3,
.section--tinted h4 {
  color: var(--section-fg);
}

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

.section--tinted a:hover {
  color: var(--section-fg);
}

.section--tinted .btn {
  background: var(--section-accent);
  border-color: var(--section-accent);
  color: var(--section-btn-fg);
}

.section--tinted .btn:hover {
  background: color-mix(in srgb, var(--section-accent) 85%, var(--section-fg));
  border-color: color-mix(in srgb, var(--section-accent) 85%, var(--section-fg));
  color: var(--section-btn-fg);
}

/* Las tarjetas son blancas en cualquier fondo y usan el color de marca */
.section--tinted .cmp-card {
  color: var(--color-text);
}

.section--tinted .cmp-card h3 {
  color: var(--color-text);
}

.section--tinted .cmp-card a {
  color: var(--color-primary);
}

.section--tinted .cmp-card a:hover {
  color: var(--color-primary-dark);
}

.section--tinted .cmp-card .btn {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
}

/* Las 15 paletas: bg / fg / accent / btn-fg (todas AA) */
.section--bg-light {
  --section-bg: #f4f6f9;
  --section-fg: #1a2433;
  --section-accent: #1f4e8c;
  --section-btn-fg: #ffffff;
}

.section--bg-dark {
  --section-bg: #121a26;
  --section-fg: #e8edf3;
  --section-accent: #8fb4e6;
  --section-btn-fg: #0d1520;
}

.section--bg-organic-cream {
  --section-bg: #f3f1ea;
  --section-fg: #2a2a24;
  --section-accent: #3f5a3a;
  --section-btn-fg: #ffffff;
}

.section--bg-organic-moss {
  --section-bg: #26352b;
  --section-fg: #e6ece4;
  --section-accent: #a9cfa0;
  --section-btn-fg: #16201a;
}

.section--bg-organic-terracotta {
  --section-bg: #f6ebe4;
  --section-fg: #3a2219;
  --section-accent: #9a3f1f;
  --section-btn-fg: #ffffff;
}

.section--bg-corp-gray {
  --section-bg: #e9ecf1;
  --section-fg: #1c2430;
  --section-accent: #34495e;
  --section-btn-fg: #ffffff;
}

.section--bg-corp-sky {
  --section-bg: #e3eefa;
  --section-fg: #102238;
  --section-accent: #1a4f8b;
  --section-btn-fg: #ffffff;
}

.section--bg-corp-blue {
  --section-bg: #0f2a4f;
  --section-fg: #eef3f9;
  --section-accent: #9cc3f0;
  --section-btn-fg: #0b1e38;
}

.section--bg-premium-black {
  --section-bg: #111418;
  --section-fg: #eceef1;
  --section-accent: #c7cdd6;
  --section-btn-fg: #111418;
}

.section--bg-premium-navy {
  --section-bg: #14233d;
  --section-fg: #e9eef5;
  --section-accent: #b7c9e2;
  --section-btn-fg: #14233d;
}

.section--bg-premium-ivory {
  --section-bg: #f7f5ef;
  --section-fg: #22252b;
  --section-accent: #4a5a70;
  --section-btn-fg: #ffffff;
}

.section--bg-pop-purple {
  --section-bg: #f1edf8;
  --section-fg: #241a33;
  --section-accent: #5b3a99;
  --section-btn-fg: #ffffff;
}

.section--bg-pop-pink {
  --section-bg: #fbeef2;
  --section-fg: #331822;
  --section-accent: #a3264f;
  --section-btn-fg: #ffffff;
}

.section--bg-pop-cyan {
  --section-bg: #e5f5f7;
  --section-fg: #0f2b30;
  --section-accent: #0b6470;
  --section-btn-fg: #ffffff;
}

.section--bg-pop-orange {
  --section-bg: #fdf1e6;
  --section-fg: #3a220e;
  --section-accent: #a24a0b;
  --section-btn-fg: #ffffff;
}

/* Custom: las 4 variables llegan por style="" en línea; .section--tinted las consume. */
.section--bg-custom {
  background: var(--section-bg);
  color: var(--section-fg);
}

/* Fondo con imagen */
.section--bg-image {
  overflow: hidden;
  color: #ffffff;
  isolation: isolate;
}

.section--bg-image .section__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.section--bg-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(12, 28, 52, 0.78);
}

.section--bg-image h1,
.section--bg-image h2,
.section--bg-image h3,
.section--bg-image h4 {
  color: #ffffff;
}

.section--bg-image a:not(.btn) {
  color: inherit;
}

.section--bg-image .cmp-card {
  color: var(--color-text);
}

.section--bg-image .cmp-card a {
  color: var(--color-primary);
}

/* ---------- 7. HERO (degradado azul lateral) ---------- */
.cmp-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(22rem, 60vh, 36rem);
  overflow: hidden;
  background: var(--color-navy);
}

.cmp-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.cmp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,
      color-mix(in srgb, var(--color-navy) 94%, transparent) 0%,
      color-mix(in srgb, var(--color-navy) 82%, transparent) 55%,
      color-mix(in srgb, var(--color-navy) 55%, transparent) 100%);
}

.cmp-hero--plain::before {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-primary) 100%);
}

.cmp-hero__content {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: var(--space-5) var(--gutter);
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.cmp-hero__title {
  color: #ffffff;
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.15;
  max-width: 22ch;
  margin-bottom: var(--space-3);
  padding-left: 1rem;
  border-left: 4px solid rgba(255, 255, 255, 0.85);
}

.cmp-hero__subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-4);
}

.cmp-hero__actions {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cmp-hero .btn {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--color-navy);
}

.cmp-hero .btn:hover {
  background: var(--color-primary-soft);
  border-color: var(--color-primary-soft);
  color: var(--color-navy);
}

.cmp-hero--pos-left .cmp-hero__content {
  align-items: flex-start;
  text-align: left;
}

.cmp-hero--pos-center .cmp-hero__content {
  align-items: center;
  text-align: center;
}

.cmp-hero--pos-center .cmp-hero__title {
  border-left: 0;
  padding-left: 0;
}

.cmp-hero--pos-center .cmp-hero__actions {
  justify-content: center;
}

.cmp-hero--pos-right .cmp-hero__content {
  align-items: flex-end;
  text-align: right;
}

.cmp-hero--pos-right .cmp-hero__title {
  border-left: 0;
  padding-left: 0;
  padding-right: 1rem;
  border-right: 4px solid rgba(255, 255, 255, 0.85);
}

.cmp-hero--pos-right .cmp-hero__actions {
  justify-content: flex-end;
}

.cmp-hero--size-small {
  min-height: clamp(15rem, 36vh, 22rem);
}

.cmp-hero--size-small .cmp-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.cmp-hero--size-medium {
  min-height: clamp(19rem, 50vh, 30rem);
}

.cmp-hero--size-medium .cmp-hero__title {
  font-size: clamp(2rem, 4.8vw, 3rem);
}

.cmp-hero--size-large {
  min-height: clamp(26rem, 78vh, 46rem);
}

.cmp-hero--size-large .cmp-hero__title {
  font-size: clamp(2.4rem, 6.4vw, 4rem);
}

/* ---------- 8. TEXTO EDITORIAL ---------- */
.cmp-text,
.product__desc,
.container {
  overflow-wrap: break-word;
}

.cmp-text__title {
  margin-bottom: var(--space-3);
}

.cmp-text p,
.product__desc p,
.container p {
  max-width: 72ch;
}

.cmp-text ul,
.cmp-text ol,
.product__desc ul,
.product__desc ol,
.container ul:not([class]),
.container ol:not([class]) {
  padding-left: 1.25rem;
  margin: 0 0 var(--space-2);
}

.cmp-text li,
.product__desc li,
.container li {
  margin-bottom: 0.3rem;
}

.cmp-text ul li::marker,
.product__desc ul li::marker,
.container ul li::marker {
  color: var(--color-primary);
}

.cmp-text h3,
.cmp-text h4,
.product__desc h3,
.container h2,
.container h3 {
  margin-top: var(--space-4);
}

.cmp-text blockquote,
.product__desc blockquote,
.container blockquote {
  margin: var(--space-3) 0;
  padding: var(--space-2) var(--space-3);
  background: var(--color-primary-soft);
  border-left: 4px solid var(--color-primary);
  color: var(--color-text);
  font-size: 1.1rem;
}

.cmp-text img,
.product__desc img,
.container img:not([class]) {
  border-radius: var(--radius-sm);
  margin: var(--space-3) 0;
}

.cmp-text table,
.product__desc table,
.container table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-3) 0;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
  border: 1px solid var(--color-border);
}

.cmp-text th,
.cmp-text td,
.product__desc th,
.product__desc td,
.container th,
.container td {
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

.cmp-text th,
.product__desc th,
.container th {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--color-surface);
  color: var(--color-text);
}

.cmp-text tbody tr:nth-child(even) td,
.container tbody tr:nth-child(even) td {
  background: var(--color-surface);
}

.section--tinted .cmp-text th {
  background: transparent;
  color: var(--section-fg);
}

.section--tinted .cmp-text td {
  background: transparent !important;
}

.section--tinted .cmp-text blockquote {
  background: transparent;
  border-color: var(--section-accent);
  color: var(--section-fg);
}

/* ---------- 9. IMAGEN ---------- */
.cmp-image {
  margin: 0;
}

.cmp-image img {
  width: 100%;
  border-radius: var(--radius-md);
}

a:has(> .cmp-image) {
  display: block;
}

.cmp-image figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.section--tinted .cmp-image figcaption {
  color: inherit;
  opacity: 0.85;
}

/* ---------- 10. TARJETA (blanca, borde fino, filete azul superior) ---------- */
.section__col:has(> .cmp-card) {
  display: flex;
}

.cmp-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--t), transform var(--t);
}

.cmp-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.cmp-card>img,
.cmp-card>a>img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.cmp-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-3);
}

.cmp-card__title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.cmp-card__body p {
  color: var(--color-muted);
}

.cmp-card__body p:last-child {
  margin-top: auto;
  margin-bottom: 0;
}

.cmp-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: var(--tap);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.cmp-card__link::after {
  content: "›";
  font-size: 1.25em;
  line-height: 1;
  transition: transform var(--t);
}

.cmp-card__link:hover {
  text-decoration: underline;
}

.cmp-card__link:hover::after {
  transform: translateX(3px);
}

/* ---------- 11. BOTÓN ---------- */
.cmp-button {
  margin: 0;
}

/* ---------- 12. VIDEO ---------- */
.cmp-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b1420;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.cmp-video__play {
  position: absolute;
  inset: 0;
  display: block;
}

.cmp-video__play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity var(--t);
}

.cmp-video__play:hover img {
  opacity: 1;
}

.cmp-video__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 68px;
  transform: translate(-50%, -50%);
  border-radius: var(--radius-md);
  background: var(--color-primary);
  box-shadow: var(--shadow-md);
  transition: background var(--t);
}

.cmp-video__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--color-on-primary);
}

.cmp-video__play:hover .cmp-video__icon {
  background: var(--color-primary-dark);
}

.cmp-video__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- 13. GALERÍA ---------- */
.cmp-gallery {
  position: relative;
}

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

.cmp-gallery__item {
  margin: 0;
  min-width: 0;
}

.cmp-gallery__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* Cuadrícula */
.cmp-gallery--grid .cmp-gallery__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.cmp-gallery--grid.cmp-gallery--cols-1 .cmp-gallery__list {
  grid-template-columns: 1fr;
}

/* Carrusel */
.cmp-gallery--slider .cmp-gallery__list {
  --slide: 86%;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--slide);
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-strong) transparent;
  padding-bottom: 0.75rem;
}

.cmp-gallery--slider .cmp-gallery__item {
  scroll-snap-align: start;
}

.cmp-gallery__nav {
  position: absolute;
  top: calc(50% - 0.375rem);
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background var(--t), color var(--t);
}

.cmp-gallery__nav:hover {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
}

.cmp-gallery__nav:disabled {
  opacity: 0.4;
  cursor: default;
}

.cmp-gallery__nav--prev {
  left: 0.5rem;
}

.cmp-gallery__nav--next {
  right: 0.5rem;
}

.cmp-gallery__nav[hidden] {
  display: none !important;
}

/* ---------- 14. LISTA DE PRODUCTOS ---------- */
.cmp-product-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.cmp-product-list--cols-1 {
  grid-template-columns: 1fr;
}

.cmp-product-card {
  height: 100%;
}

.cmp-product-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--color-text);
  text-decoration: none;
}

.cmp-product-card__link:hover {
  color: var(--color-text);
}

.cmp-product-card__link>img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-bottom: 1px solid var(--color-border);
}

.cmp-product-card .cmp-card__body {
  padding: var(--space-2);
}

.cmp-product-card .cmp-card__title {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.cmp-product-card:hover .cmp-card__title {
  color: var(--color-primary);
}

.section--tinted .cmp-product-card__link {
  color: var(--color-text);
}

.cmp-product-card__price {
  margin: auto 0 0;
  color: var(--color-primary) !important;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
}

/* ---------- 15. CATÁLOGO ---------- */
.cmp-catalog__controls {
  display: grid;
  gap: 0.75rem;
  margin-bottom: var(--space-2);
}

.cmp-catalog__search,
.cmp-catalog__category {
  width: 100%;
  min-height: 46px;
  padding: 0 0.9rem;
  background: #ffffff;
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 1rem;
  transition: border-color var(--t), box-shadow var(--t);
}

.cmp-catalog__search::placeholder {
  color: var(--color-muted);
}

.cmp-catalog__search:hover,
.cmp-catalog__category:hover {
  border-color: var(--color-muted);
}

.cmp-catalog__search:focus-visible,
.cmp-catalog__category:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}

.cmp-catalog__category {
  appearance: none;
  padding-right: 2.5rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color-text) 50%),
    linear-gradient(135deg, var(--color-text) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.cmp-catalog__category option {
  background: #ffffff;
  color: var(--color-text);
}

.cmp-catalog__status {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: var(--space-3);
}

.section--tinted .cmp-catalog__status {
  color: inherit;
  opacity: 0.85;
}

.cmp-catalog__pager {
  margin-top: var(--space-4);
}

.cmp-catalog__pager[hidden] {
  display: none;
}

.cmp-catalog__pages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
}

.cmp-catalog__pages button {
  min-width: var(--tap);
  height: var(--tap);
  padding: 0 0.75rem;
  background: #ffffff;
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color var(--t), color var(--t), background var(--t);
}

.cmp-catalog__pages button:hover:not(:disabled) {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.cmp-catalog__pages button[aria-current="page"] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
  font-weight: 600;
}

.cmp-catalog__pages button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cmp-catalog__gap {
  display: grid;
  place-items: center;
  min-width: 2rem;
  height: var(--tap);
  color: var(--color-muted);
}

/* ---------- 16. PRODUCTO ---------- */
.product {
  display: grid;
  gap: var(--space-4);
}

.product__media {
  min-width: 0;
}

.product__single img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.product__media .cmp-gallery__img {
  aspect-ratio: 1 / 1;
}

.product__title {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  margin-bottom: var(--space-1);
}

.product__price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.product__cats {
  list-style: none;
  margin: 0 0 var(--space-3);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.product__cats li {
  padding: 0.25rem 0.65rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--color-muted);
}

.product__desc {
  margin-bottom: var(--space-4);
}

.product__buy {
  margin: 0;
}

.product__buy .btn {
  width: 100%;
}

/* ---------- 17. RESPONSIVE ---------- */
@media (min-width: 768px) {
  :root {
    --header-h: 72px;
  }

  .site-nav-toggle {
    display: none;
  }

  .site-header__tagline {
    display: inline;
  }

  .site-nav {
    display: block;
    position: static;
    margin-left: auto;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .site-nav ul {
    display: flex;
    gap: 0.25rem;
    padding: 0;
  }

  .site-nav li+li {
    border: 0;
  }

  .site-nav a {
    min-height: var(--header-h);
    padding: 0 0.75rem;
    border-left: 0;
    border-bottom: 3px solid transparent;
    border-top: 3px solid transparent;
    font-size: 0.95rem;
  }

  .site-nav a[aria-current="page"] {
    border-bottom-color: var(--color-primary);
  }

  .site-header__cta {
    margin-left: var(--space-2);
  }

  .site-footer__inner {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .section__grid--2,
  .section__grid--3,
  .section__grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .cmp-gallery--grid .cmp-gallery__list {
    gap: 0.75rem;
  }

  .cmp-gallery--grid.cmp-gallery--cols-2 .cmp-gallery__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .cmp-gallery--grid.cmp-gallery--cols-3 .cmp-gallery__list {
    grid-template-columns: repeat(3, 1fr);
  }

  .cmp-gallery--grid.cmp-gallery--cols-4 .cmp-gallery__list {
    grid-template-columns: repeat(4, 1fr);
  }

  .cmp-gallery--slider .cmp-gallery__list {
    gap: 0.75rem;
  }

  .cmp-gallery--slider.cmp-gallery--cols-1 .cmp-gallery__list {
    --slide: 100%;
  }

  .cmp-gallery--slider.cmp-gallery--cols-2 .cmp-gallery__list {
    --slide: calc((100% - 0.75rem) / 2);
  }

  .cmp-gallery--slider.cmp-gallery--cols-3 .cmp-gallery__list {
    --slide: calc((100% - 1.5rem) / 3);
  }

  .cmp-gallery--slider.cmp-gallery--cols-4 .cmp-gallery__list {
    --slide: calc((100% - 2.25rem) / 4);
  }

  .cmp-gallery__nav:not([hidden]) {
    display: grid;
  }

  .cmp-product-list {
    gap: 1rem;
  }

  .cmp-product-list--cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .cmp-product-list--cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .cmp-product-list--cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .cmp-catalog__controls {
    grid-template-columns: 2fr 1fr;
  }

  .product {
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
  }

  .product__info {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
  }

  .product__buy .btn {
    width: auto;
  }
}

@media (max-width: 767.98px) {
  .cmp-gallery__nav {
    display: none !important;
  }
}

@media (min-width: 1000px) {
  .section__grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .section__grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .site-footer__inner {
    grid-template-columns: 2fr 1fr 1.2fr;
  }
}

/* ---------- 18. MOVIMIENTO REDUCIDO ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .cmp-card:hover {
    transform: none;
  }
}