/* ===========================================================
   IDTOLÚ — Stylesheet único
   Brand tokens del Manual de Marca 2024
   =========================================================== */
:root {
  --white:        #FFFFFF;
  --gray-100:     #F4F7FA;
  --gray-200:     #E5ECF2;
  --gray-300:     #B3B3B3;
  --gray-500:     #999999;
  --gray-700:     #4A5563;
  --gray-900:     #0F1B26;
  --ink:          #0B1822;
  --brand:        #0197d6;
  --brand-light:  #12a8dd;
  --brand-deep:   #015F8A;
  --brand-soft:   #E1F2FB;

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --shadow-sm: 0 1px 2px rgba(11,24,34,.04), 0 4px 16px rgba(11,24,34,.05);
  --shadow-md: 0 4px 14px rgba(11,24,34,.06), 0 24px 48px rgba(1,151,214,.08);
  --shadow-lg: 0 24px 64px rgba(11,24,34,.18);
  --max: 1200px;
  --gap: clamp(16px, 2vw, 24px);
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink); background: var(--white);
  line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
::selection { background: var(--brand); color: #fff; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.serif { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -.01em; }

/* ===== Type ===== */
h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; line-height: 1.05; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 6.4vw, 5.6rem); font-weight: 700; letter-spacing: -.035em; line-height: 1; }
h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); font-weight: 600; letter-spacing: -.025em; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 600; }
p  { margin: 0; color: var(--gray-700); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before { content:""; width: 24px; height: 1px; background: currentColor; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 500; font-size: 15px;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 24px rgba(1,151,214,.25); }
.btn-primary:hover { background: var(--brand-deep); box-shadow: 0 12px 32px rgba(1,151,214,.35); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--gray-200); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn .arrow { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ===== Lang toggle ===== */
.lang {
  display: inline-flex; align-items: center;
  border: 1px solid var(--gray-200); border-radius: 999px;
  padding: 3px; gap: 0; height: 34px;
}
.lang button {
  padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
  color: var(--gray-500);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.lang button.is-active { background: var(--brand); color: #fff; }
.lang button:not(.is-active):hover { color: var(--ink); }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-stuck { border-color: var(--gray-200); background: rgba(255,255,255,.95); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -.01em; }
.logo__img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}
@media (max-width: 520px) {
  .logo__img { height: 38px; max-width: 180px; }
}

.nav__links { display: flex; gap: 28px; }
.nav__links a {
  font-size: 14px; color: var(--gray-700); font-weight: 500;
  position: relative; padding: 6px 0;
}
.nav__links a::after {
  content:""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--brand); transition: width .3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: 12px; }

.nav__toggle {
  display: none; width: 40px; height: 40px; border-radius: 10px;
  align-items: center; justify-content: center;
  border: 1px solid var(--gray-200);
}
.nav__toggle span { position: relative; display: block; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  width: 16px; height: 1.6px; background: var(--ink);
}
.nav__toggle span::before, .nav__toggle span::after { content:""; position: absolute; left: 0; }
.nav__toggle span::before { top: -5px; }
.nav__toggle span::after  { top: 5px; }

@media (max-width: 920px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: inline-flex; }
}

.mobile {
  position: fixed; inset: 72px 0 0 0; z-index: 40;
  background: var(--white); padding: 32px 24px;
  transform: translateY(-110%); transition: transform .35s var(--ease);
}
.mobile.is-open { transform: translateY(0); }
.mobile a {
  display: block; padding: 18px 0; font-size: 22px;
  border-bottom: 1px solid var(--gray-200); color: var(--ink);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 110px) 0 clamp(60px, 9vw, 110px);
  /* Min-height para que el video tenga presencia vertical */
  min-height: clamp(640px, 90vh, 1080px);
  display: flex; align-items: stretch;
  overflow: hidden;
}
.hero__grid {
  position: relative; z-index: 2;
  width: 100%;
  display: grid; grid-template-columns: 1fr;
  align-items: stretch;
}
.hero__copy {
  display: flex; flex-direction: column; align-items: flex-start;
  max-width: min(660px, 100%);
  /* Llena toda la altura del hero para que margin-top:auto en los botones
     los empuje hasta el borde inferior (donde acaba el video). */
  height: 100%;
  min-height: 100%;
}
@media (max-width: 920px) {
  .hero { min-height: clamp(560px, 80vh, 900px); }
  .hero__copy { max-width: 100%; }
}

/* Logo grande sobre el slogan — branding del hero */
.hero__brand {
  display: block;
  height: clamp(80px, 11vw, 168px);
  width: auto;
  max-width: min(520px, 95%);
  margin-bottom: clamp(20px, 3vw, 36px);
}
@media (max-width: 920px) {
  .hero__brand { height: clamp(64px, 16vw, 120px); }
}

.hero__tag {
  font-family: 'Outfit', sans-serif; font-weight: 500;
  letter-spacing: .42em; text-transform: uppercase; font-size: 12px;
  color: var(--brand); margin-bottom: 24px;
  display: inline-flex; align-items: center; gap: 14px;
}
.hero__tag::before, .hero__tag::after {
  content:""; height: 1px; background: var(--brand-light); opacity: .6;
}
.hero__tag::before { width: 36px; }
.hero__tag::after  { width: 36px; }

.hero__title { max-width: 16ch; }
.hero__title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-light) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { margin-top: 28px; font-size: clamp(1.05rem, 1.4vw, 1.18rem); max-width: 54ch; color: var(--gray-700); }
/* Botones anclados al borde inferior del video, con un nudge extra
   de 0.75 cm hacia abajo (~28 px) para entrar ligeramente en el padding
   sin chocar con el cintillo que sigue. */
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: auto;
  padding-top: clamp(40px, 8vw, 90px);  /* respiro mínimo si el contenido es muy alto */
  transform: translateY(0.75cm);
}

/* Video como background del hero.
   Mask gradient: transparente en el lado izquierdo (donde está el texto
   sobre fondo blanco) y opaco a la derecha. El texto del hero queda
   completamente legible mientras el video aparece en la mitad derecha. */
.hero__videobg {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none; overflow: hidden;
}
.hero__video {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  /* Fade de izquierda (transparente) a derecha (opaco).
     Reducida 15% adicional la transparencia: el video se asoma desde el
     borde izquierdo y gana visibilidad mucho más rápido hacia la derecha. */
  -webkit-mask-image: linear-gradient(to right,
                       rgba(0,0,0,.15) 0%,
                       rgba(0,0,0,.33) 22%,
                       rgba(0,0,0,.70) 45%,
                       rgba(0,0,0,1)   70%,
                       rgba(0,0,0,1)  100%);
  mask-image:         linear-gradient(to right,
                       rgba(0,0,0,.15) 0%,
                       rgba(0,0,0,.33) 22%,
                       rgba(0,0,0,.70) 45%,
                       rgba(0,0,0,1)   70%,
                       rgba(0,0,0,1)  100%);
}
@media (max-width: 920px) {
  /* En móvil el texto ocupa todo el ancho — opacidad ajustada y mask
     vertical más permisivo (también reducido 15% en transparencia). */
  .hero__video {
    opacity: .50;
    -webkit-mask-image: linear-gradient(to bottom,
                         rgba(0,0,0,.15) 0%,
                         rgba(0,0,0,.15) 30%,
                         rgba(0,0,0,.95) 70%,
                         rgba(0,0,0,1)  100%);
    mask-image:         linear-gradient(to bottom,
                         rgba(0,0,0,.15) 0%,
                         rgba(0,0,0,.15) 30%,
                         rgba(0,0,0,.95) 70%,
                         rgba(0,0,0,1)  100%);
  }
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: -1; mask-image: linear-gradient(to bottom, black 60%, transparent 100%); }
.hero__bg::before, .hero__bg::after { content:""; position: absolute; border-radius: 50%; border: 1px solid var(--brand-light); opacity: .25; }
.hero__bg::before { width: 760px; height: 760px; right: -260px; top: -180px; animation: pulse 8s var(--ease) infinite; }
.hero__bg::after  { width: 1100px; height: 1100px; right: -440px; top: -360px; animation: pulse 10s var(--ease) infinite reverse; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .18; } 50% { transform: scale(1.04); opacity: .42; } }

/* ===== Strip ===== */
.strip { border-block: 1px solid var(--gray-200); background: var(--gray-100); overflow: hidden; }
.strip__track { display: flex; gap: 56px; padding: 18px 0; width: max-content; animation: slide 50s linear infinite; }
.strip__item { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; color: var(--gray-700); font-weight: 500; white-space: nowrap; letter-spacing: .04em; }
.strip__item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Sections ===== */
section { padding: clamp(72px, 10vw, 130px) 0; }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(40px, 5vw, 64px); flex-wrap: wrap; }
.section__title { max-width: 22ch; }
.section__lede { max-width: 44ch; color: var(--gray-700); font-size: clamp(1rem, 1.2vw, 1.1rem); }

/* ===== Verticales ===== */
.vertical { background: var(--gray-100); }
.verticals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--gray-200); border: 1px solid var(--gray-200); border-radius: var(--radius-m); overflow: hidden; }
@media (max-width: 980px) { .verticals { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .verticals { grid-template-columns: 1fr; } }
.v-card { background: var(--white); padding: 36px 32px; display: flex; flex-direction: column; gap: 16px; transition: background .3s var(--ease); position: relative; }
.v-card:hover { background: var(--brand-soft); }
.v-card__num { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: 14px; color: var(--brand); }
.v-card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.v-card__icon svg { width: 24px; height: 24px; }
.v-card h3 { font-size: 1.2rem; color: var(--ink); }
.v-card p { font-size: 15px; color: var(--gray-700); }
.v-card .arrow { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--brand); font-weight: 500; opacity: .85; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.v-card:hover .arrow { opacity: 1; transform: translateX(4px); }

/* ===== Productos ===== */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--gray-200); font-size: 13px; font-weight: 500; color: var(--gray-700); transition: all .25s var(--ease); background: #fff; }
.filter:hover { border-color: var(--brand); color: var(--brand); }
.filter.is-active { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 4px 12px rgba(1,151,214,.25); }
.filter span { margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: rgba(255,255,255,.2); font-size: 11px; }
.filter:not(.is-active) span { background: var(--gray-100); color: var(--gray-500); }

.catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px) { .catalog { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .catalog { grid-template-columns: 1fr; } }

.product {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-m); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  cursor: pointer; text-align: left;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-light); }
.product:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.product.is-hidden { display: none; }
.product__media {
  aspect-ratio: 4 / 3; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--ink) 100%);
  color: #fff;
}
.product__media svg { width: 100%; height: 100%; }
.product__tag { position: absolute; top: 14px; left: 14px; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.15); backdrop-filter: blur(8px); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: #fff; }
.product__more { position: absolute; bottom: 14px; right: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.15); backdrop-filter: blur(8px); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: #fff; opacity: 0; transform: translateY(6px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.product:hover .product__more { opacity: 1; transform: none; }
.product__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product__cat { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--brand); font-weight: 600; }
.product p { font-size: 15px; color: var(--ink); flex: 1; line-height: 1.55; }
.product__specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.product__specs span { font-size: 11px; padding: 4px 9px; background: var(--gray-100); border-radius: 6px; color: var(--gray-700); font-weight: 500; }

.catalog__empty { grid-column: 1 / -1; padding: 60px 20px; text-align: center; color: var(--gray-500); border: 1px dashed var(--gray-200); border-radius: var(--radius-m); }

/* ===== Tecnologías ===== */
.tech { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.tech::before { content:""; position: absolute; top: -200px; left: -200px; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, var(--brand-light), transparent 70%); opacity: .12; }
.tech::after { content:""; position: absolute; bottom: -200px; right: -200px; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, var(--brand), transparent 70%); opacity: .15; }
.tech .wrap { position: relative; }
.tech .eyebrow { color: var(--brand-light); }
.tech .eyebrow::before { background: var(--brand-light); }
.tech p { color: rgba(255,255,255,.65); }

.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-m); overflow: hidden; }
@media (max-width: 980px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tech-grid { grid-template-columns: 1fr; } }

.tech-card { background: var(--ink); padding: 28px 26px; display: flex; flex-direction: column; gap: 12px; transition: background .3s var(--ease); }
.tech-card:hover { background: #142433; }
.tech-card__name { font-size: 28px; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.tech-card__name em { font-style: normal; background: linear-gradient(120deg, var(--brand-light), var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tech-card__desc { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.55; }
.tech-card__meta { margin-top: auto; padding-top: 18px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.4); }

/* ===== CTA + Contact ===== */
.cta { background: linear-gradient(135deg, var(--ink) 0%, #051422 100%); color: #fff; border-radius: var(--radius-l); padding: clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.cta::before { content:""; position: absolute; right: -180px; top: -180px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, var(--brand), transparent 70%); opacity: .35; }
.cta::after  { content:""; position: absolute; left: -120px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, var(--brand-light), transparent 70%); opacity: .25; }
.cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); position: relative; }
@media (max-width: 820px) { .cta__grid { grid-template-columns: 1fr; } }

.cta h2 { color: #fff; max-width: 14ch; }
.cta p { color: rgba(255,255,255,.75); max-width: 38ch; margin-top: 16px; }
.cta__list { margin-top: 28px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.cta__list li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,.88); font-size: 15px; list-style: none; }
.cta__list li::before {
  content:""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: var(--brand-light);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>");
  background-size: 14px; background-repeat: no-repeat; background-position: center;
}

.form { display: flex; flex-direction: column; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.6); font-weight: 500; }
.field input, .field textarea, .field select {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: 12px;
  color: #fff; padding: 14px 16px; font: inherit;
  transition: border-color .25s var(--ease), background .25s var(--ease); width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.35); }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--brand-light); background: rgba(255,255,255,.08); }
.field textarea { resize: vertical; min-height: 110px; }
.form .btn-primary { background: var(--brand); justify-content: center; padding: 16px 22px; }
.form .btn-primary:hover { background: var(--brand-light); color: var(--ink); }

/* ===== Footer ===== */
footer { padding: 48px 0 32px; border-top: 1px solid var(--gray-200); color: var(--gray-500); font-size: 13px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__brand { display: flex; flex-direction: column; gap: 4px; }
.footer__brand strong { color: var(--ink); font-weight: 700; font-size: 14px; }
.footer__brand span { font-size: 9px; letter-spacing: .3em; color: var(--brand); font-weight: 500; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__links a:hover { color: var(--brand); }

/* ===== Reveal animations ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--delay, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .strip__track, .hero__bg::before, .hero__bg::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===========================================================
   Modal de producto
   =========================================================== */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: flex-start; justify-content: center;
  padding: clamp(16px, 4vw, 56px) clamp(12px, 4vw, 32px);
  background: rgba(11, 24, 34, .55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  overflow-y: auto;
}
.modal.is-open { display: flex; animation: modalFade .25s var(--ease); }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }

.modal__panel {
  width: 100%; max-width: 980px;
  background: var(--white); border-radius: var(--radius-l);
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
  animation: modalIn .35s var(--ease);
  margin: auto;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.modal__close {
  position: absolute; top: 18px; right: 18px; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.modal__close:hover { background: var(--gray-100); transform: rotate(90deg); }
.modal__close svg { width: 18px; height: 18px; }

.modal__hero {
  aspect-ratio: 21/9;
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--ink) 100%);
  color: #fff; position: relative; overflow: hidden;
  padding: clamp(28px, 4vw, 48px);
  display: flex; align-items: end;
}
.modal__hero svg.bgsvg {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55;
}
.modal__hero-content { position: relative; z-index: 2; }
.modal__cat {
  display: inline-block;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.15); backdrop-filter: blur(6px);
  margin-bottom: 14px;
}
.modal__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem); color: #fff; font-weight: 700; letter-spacing: -.02em;
  line-height: 1.1; max-width: 22ch;
}
.modal__tagline {
  margin-top: 10px; color: rgba(255,255,255,.78);
  font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.modal__body { padding: clamp(28px, 4vw, 48px); }
.modal__body > * + * { margin-top: clamp(28px, 3vw, 44px); }

.modal__summary { font-size: clamp(1rem, 1.2vw, 1.05rem); color: var(--gray-700); max-width: 64ch; line-height: 1.65; }

.modal__sectionTitle {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600;
  color: var(--brand); margin-bottom: 18px; display: flex; align-items: center; gap: 10px;
}
.modal__sectionTitle::before { content:""; width: 24px; height: 1px; background: currentColor; }

.modal__features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 720px) { .modal__features { grid-template-columns: 1fr; } }
.modal__feature {
  background: var(--gray-100); border-radius: var(--radius-m);
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
  border: 1px solid transparent; transition: border-color .25s var(--ease);
}
.modal__feature:hover { border-color: var(--brand-light); }
.modal__feature-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light)); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.modal__feature-icon svg { width: 20px; height: 20px; }
.modal__feature h4 { font-size: 1rem; font-weight: 600; color: var(--ink); margin: 0; }
.modal__feature p { font-size: 14px; color: var(--gray-700); margin: 0; }

.modal__operations { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 720px) { .modal__operations { grid-template-columns: 1fr; } }
.modal__op {
  padding: 18px 20px; border: 1px solid var(--gray-200); border-radius: var(--radius-s);
  background: #fff;
}
.modal__op h4 {
  font-size: .95rem; font-weight: 600; color: var(--ink); margin: 0 0 6px 0;
  display: flex; align-items: center; gap: 8px;
}
.modal__op h4::before {
  content:""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand); flex: none;
}
.modal__op p { font-size: 13.5px; color: var(--gray-700); margin: 0; line-height: 1.55; }

.modal__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 720px) { .modal__specs { grid-template-columns: 1fr; gap: 20px; } }
.modal__spec-group h4 {
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  color: var(--ink); margin: 0 0 12px 0;
}
.modal__spec-group dl {
  margin: 0; display: grid; grid-template-columns: 1fr auto; row-gap: 0;
  border-top: 1px solid var(--gray-200);
}
.modal__spec-group dt {
  padding: 10px 0;
  font-size: 13px; color: var(--gray-700);
  border-bottom: 1px solid var(--gray-200);
}
.modal__spec-group dd {
  margin: 0; padding: 10px 0;
  font-size: 13px; color: var(--ink); font-weight: 600; text-align: right;
  border-bottom: 1px solid var(--gray-200);
  font-variant-numeric: tabular-nums;
}

.modal__cta {
  margin-top: clamp(28px, 3vw, 44px);
  padding: 24px clamp(20px, 3vw, 32px);
  background: linear-gradient(135deg, var(--brand-soft), #fff);
  border: 1px solid var(--brand-soft);
  border-radius: var(--radius-m);
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.modal__cta p { font-size: 15px; color: var(--ink); margin: 0; max-width: 50ch; }
.modal__cta .btn-primary { padding: 12px 20px; }

/* ===========================================================
   Spin 360° — visor de producto rotativo
   ----------------------------------------------------------------
   - Cross-fade automático cada 1.5 s entre las 3 vistas
   - Pause al pasar el cursor (desktop)
   - Drag con cursor o swipe táctil para girar manualmente
   - mix-blend-mode: multiply elimina el fondo blanco
   - Fondo claro del contenedor → producto "flota"
   =========================================================== */
.spin360 {
  position: absolute; inset: 0;
  display: block;
  background:
    radial-gradient(ellipse at 50% 65%, rgba(11,24,34,.10), transparent 55%),
    linear-gradient(180deg, #FAFCFD 0%, #E5ECF2 100%);
  cursor: grab;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.spin360.is-dragging { cursor: grabbing; }

/* Cada frame es una <img> apilada que se desvanece */
.spin360__frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 8%;
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity .45s ease-in-out;
  pointer-events: none;
  -webkit-user-drag: none;
}
.spin360__frame.is-active { opacity: 1; }

/* Hint sutil que invita a girar */
.spin360__hint {
  position: absolute; bottom: 12px; left: 50%;
  transform: translateX(-50%);
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600;
  color: var(--gray-700);
  background: rgba(255,255,255,.85);
  padding: 5px 12px; border-radius: 999px;
  pointer-events: none;
  opacity: .55;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  display: inline-flex; align-items: center; gap: 6px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.spin360:hover .spin360__hint { opacity: .95; transform: translateX(-50%) translateY(-2px); }
.spin360__hint svg { width: 14px; height: 14px; }

/* Indicador de progreso: 3 puntos, uno por vista */
.spin360__dots {
  position: absolute; top: 12px; right: 12px;
  display: flex; gap: 5px;
  pointer-events: none;
}
.spin360__dots span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gray-500); opacity: .35;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.spin360__dots span.is-active { opacity: 1; background: var(--brand); transform: scale(1.4); }

/* Cuando el media area de la card usa spin360, fondo transparente
   (el spin360 mismo trae su gradiente claro) */
.product__media--spin { background: transparent; }
.product__media--spin .product__tag {
  background: rgba(11,24,34,.78);
  color: #fff;
}

/* Modal hero versión spin360: el visor ocupa todo el hero,
   el caption (título + tag) va sobre un degradado al pie */
.modal__hero--spin {
  background: linear-gradient(180deg, #FAFCFD 0%, #E5ECF2 100%);
  padding: 0;
  aspect-ratio: 16/9;
  align-items: stretch;
}
.modal__hero--spin .modal__hero-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: clamp(20px, 3vw, 32px);
  background: linear-gradient(180deg, transparent, rgba(11,24,34,.85));
  color: #fff;
}
.modal__hero--spin .modal__title { color: #fff; }
.modal__hero--spin .modal__tagline { color: rgba(255,255,255,.85); }
.modal__hero--spin .modal__cat {
  background: rgba(255,255,255,.92);
  color: var(--ink);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Responsive */
@media (max-width: 600px) {
  .spin360__hint { font-size: 9px; padding: 4px 10px; letter-spacing: .18em; }
  .spin360__frame { padding: 6%; }
}

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