/* =========================================================================
   MEGAYUNTAS — Sistema de diseño
   Colores de marca conservados: teal #51A8B1 · coral #E8866C · coral claro #F2A28C · gris #DBDBDB
   ========================================================================= */
:root {
  --teal: #51a8b1;
  --teal-50: #eef8f9;
  --teal-100: #d6eef0;
  --teal-300: #8ccbd2;
  --teal-600: #3d8f98;
  --teal-700: #2c727a;
  --teal-900: #123f45;
  --ink: #0b2a2f;
  --ink-2: #0f353b;
  --coral: #e8866c;
  --coral-300: #f2a28c;
  --coral-600: #d4694d;
  --sand: #dbdbdb;
  --bg: #f5f9f9;
  --surface: #ffffff;
  --text: #183338;
  --muted: #5b7378;
  --line: #e2eced;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 6px rgba(11, 42, 47, .06);
  --shadow: 0 10px 30px -12px rgba(11, 42, 47, .22);
  --shadow-lg: 0 30px 60px -20px rgba(11, 42, 47, .35);
  --glow-teal: 0 0 0 1px rgba(81, 168, 177, .25), 0 18px 50px -18px rgba(81, 168, 177, .65);
  --glow-coral: 0 18px 40px -16px rgba(232, 134, 108, .75);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --nav-h: 74px;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--coral-600); }
h1, h2, h3, h4, h5 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.7rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); letter-spacing: -.02em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
::selection { background: var(--coral-300); color: var(--ink); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -60px; z-index: 1000; background: var(--coral); color: #fff; padding: .6rem 1rem; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 1rem; color: #fff; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 32px, 860px); margin-inline: auto; }

/* ---------- barra de progreso de lectura ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--teal), var(--coral)); }

/* ---------- navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .35s var(--ease), box-shadow .35s, height .35s var(--ease);
}
.nav.is-solid, .nav--light {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 rgba(11, 42, 47, .06), 0 10px 30px -20px rgba(11, 42, 47, .35);
}
.nav.is-solid { --nav-h: 64px; height: 64px; }
.nav__inner { display: flex; align-items: center; gap: 1.5rem; width: min(100% - 32px, 1280px); margin-inline: auto; }
.nav__logo { display: flex; align-items: center; flex: none; }
.nav__logo img { height: 44px; width: auto; transition: height .35s var(--ease), filter .35s; }
.nav:not(.is-solid):not(.nav--light) .nav__logo img { filter: drop-shadow(0 4px 16px rgba(0, 0, 0, .35)); }
.nav.is-solid .nav__logo img { height: 38px; }
.nav__links { display: flex; align-items: center; gap: .25rem; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav__links a {
  position: relative; display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem .9rem; border-radius: 999px; font-weight: 600; font-size: .94rem; color: #fff;
  transition: background .25s, color .25s;
}
.nav.is-solid .nav__links a, .nav--light .nav__links a { color: var(--ink); }
.nav__links a .fa { opacity: .7; font-size: .9em; }
.nav__links a::after {
  content: ''; position: absolute; left: 50%; bottom: 4px; width: 0; height: 2px; border-radius: 2px;
  background: var(--coral); transition: width .3s var(--ease), left .3s var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 40%; left: 30%; }
.nav__links a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.nav.is-solid .nav__links a:hover, .nav--light .nav__links a:hover { background: var(--teal-50); color: var(--teal-700); }
.nav__links a[aria-current="page"] { color: var(--coral-300); }
.nav.is-solid .nav__links a[aria-current="page"], .nav--light .nav__links a[aria-current="page"] { color: var(--coral-600); }
.nav__actions { display: flex; align-items: center; gap: .5rem; }
.nav__burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .14); cursor: pointer; position: relative; }
.nav.is-solid .nav__burger, .nav--light .nav__burger { background: var(--teal-50); }
.nav__burger span, .nav__burger span::before, .nav__burger span::after {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: #fff; content: ''; transition: transform .3s var(--ease), top .3s, opacity .2s;
}
.nav.is-solid .nav__burger span, .nav.is-solid .nav__burger span::before, .nav.is-solid .nav__burger span::after,
.nav--light .nav__burger span, .nav--light .nav__burger span::before, .nav--light .nav__burger span::after { background: var(--ink); }
.nav__burger span { top: 22px; }
.nav__burger span::before { left: 0; right: 0; top: -7px; }
.nav__burger span::after { left: 0; right: 0; top: 7px; }
.nav-open .nav__burger span { background: transparent !important; }
.nav-open .nav__burger span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav__burger span::after { top: 0; transform: rotate(-45deg); }

.user-menu { position: relative; }
.user-menu__btn { display: inline-flex; align-items: center; gap: .5rem; border: 0; cursor: pointer; background: rgba(255, 255, 255, .14); color: #fff; padding: .35rem .8rem .35rem .35rem; border-radius: 999px; font: inherit; font-weight: 600; font-size: .9rem; }
.nav.is-solid .user-menu__btn, .nav--light .user-menu__btn { background: var(--teal-50); color: var(--ink); }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--coral)); color: #fff; font-weight: 700; font-size: .8rem; flex: none; }
.user-menu__list { position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; padding: .5rem; margin: 0; list-style: none; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none; transition: .2s var(--ease); }
.user-menu.is-open .user-menu__list { opacity: 1; transform: none; pointer-events: auto; }
.user-menu__list a, .user-menu__list button { display: flex; width: 100%; gap: .6rem; align-items: center; padding: .6rem .8rem; border-radius: 10px; color: var(--ink); background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.user-menu__list a:hover, .user-menu__list button:hover { background: var(--teal-50); }

/* ---------- botones ---------- */
.btn {
  --b: var(--coral); --c: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 0; cursor: pointer; overflow: hidden; isolation: isolate;
  font: inherit; font-weight: 700; font-size: .95rem; line-height: 1; letter-spacing: .01em; white-space: nowrap;
  background: var(--b); color: var(--c); box-shadow: var(--glow-coral);
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s;
}
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, .45) 50%, transparent 80%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover { transform: translateY(-2px); color: var(--c); }
.btn:hover::before { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--teal { --b: var(--teal); box-shadow: var(--glow-teal); }
.btn--dark { --b: var(--ink); box-shadow: var(--shadow); }
.btn--ghost { --b: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); backdrop-filter: blur(8px); }
.btn--ghost:hover { --b: rgba(255, 255, 255, .2); }
.btn--outline { --b: transparent; --c: var(--teal-700); box-shadow: inset 0 0 0 2px var(--teal); }
.btn--outline:hover { --b: var(--teal); --c: #fff; }
.btn--light { --b: #fff; --c: var(--ink); box-shadow: var(--shadow); }
.btn--sm { padding: .6rem 1.05rem; font-size: .85rem; }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; }
.link-arrow .fa { transition: transform .25s var(--ease); }
.link-arrow:hover .fa { transform: translateX(4px); }

.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; background: var(--teal-50); color: var(--teal-700); }
.chip--coral { background: #fdeee9; color: var(--coral-600); }
.chip--dark { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--coral-600); margin-bottom: .9rem; }
.eyebrow::before { content: ''; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }

/* ---------- HERO (portada) ---------- */
.hero {
  position: relative; min-height: min(100vh, 940px); padding: calc(var(--nav-h) + 40px) 0 120px;
  display: flex; align-items: center; overflow: hidden; color: #e7f4f5; isolation: isolate;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(81, 168, 177, .45), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(232, 134, 108, .28), transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, var(--teal-900) 55%, #0c3238 100%);
}
.hero__canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero__floor {
  position: absolute; left: -50%; right: -50%; bottom: -2px; height: 55%; z-index: -2;
  background-image: linear-gradient(rgba(81, 168, 177, .35) 1px, transparent 1px), linear-gradient(90deg, rgba(81, 168, 177, .35) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(500px) rotateX(62deg); transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, #000 10%, transparent 85%); -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  animation: floor 3.5s linear infinite;
}
@keyframes floor { to { background-position: 0 60px, 0 0; } }
.hero__blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55; animation: blob 18s ease-in-out infinite alternate; }
.hero__blob--a { width: 420px; height: 420px; background: var(--teal); top: 8%; right: 6%; }
.hero__blob--b { width: 360px; height: 360px; background: var(--coral); bottom: 6%; left: -4%; animation-delay: -6s; opacity: .35; }
@keyframes blob { 50% { transform: translate(-40px, 30px) scale(1.12); } 100% { transform: translate(30px, -20px) scale(.92); } }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 1.2rem; }
.hero h1 .grad { background: linear-gradient(100deg, var(--coral-300), var(--coral) 40%, #ffd1c2 60%, var(--teal-300)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
.hero__lead { font-size: 1.15rem; color: #bcdcdf; max-width: 560px; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__rotator { display: inline-block; position: relative; color: var(--coral-300); min-width: 8ch; }
.hero__rotator span { position: absolute; left: 0; top: 0; opacity: 0; transform: translateY(18px) rotateX(-70deg); transform-origin: 50% 0; transition: .55s var(--ease); white-space: nowrap; }
.hero__rotator span.is-on { position: relative; opacity: 1; transform: none; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.stat { display: flex; flex-direction: column; }
.stat b { font-size: 2rem; line-height: 1; color: #fff; font-weight: 700; }
.stat b em { font-style: normal; color: var(--coral-300); }
.stat > span { font-size: .82rem; color: #9fc7cb; margin-top: .35rem; }

/* Escena 3D: carrusel de cajas de producto */
.stage { position: relative; height: 520px; perspective: 1400px; perspective-origin: 50% 35%; }
.stage__ring { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .1s linear; }
.stage__spin { position: absolute; inset: 0; transform-style: preserve-3d; animation: ring 24s linear infinite; }
.stage:hover .stage__spin { animation-play-state: paused; }
@keyframes ring { to { transform: rotateY(-360deg); } }
.stage__item { position: absolute; left: 50%; top: 50%; width: 230px; margin: -170px 0 0 -115px; transform-style: preserve-3d; }
.stage__item a { display: block; transform-style: preserve-3d; }
.stage__item img { width: 100%; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .45)); transition: transform .4s var(--ease); -webkit-box-reflect: below 6px linear-gradient(transparent 70%, rgba(255, 255, 255, .18)); }
.stage__item a:hover img { transform: translateY(-14px) scale(1.04); }
.stage__label { position: absolute; left: 50%; bottom: -54px; transform: translateX(-50%); white-space: nowrap; font-weight: 700; font-size: .85rem; color: #fff; padding: .35rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(6px); }
.stage__halo { position: absolute; left: 50%; top: 72%; width: 520px; height: 140px; margin-left: -260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(81, 168, 177, .55), transparent); filter: blur(10px); transform: rotateX(75deg); }
.stage__orbit { position: absolute; left: 50%; top: 50%; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%; border: 1px dashed rgba(140, 203, 210, .35); transform: rotateX(78deg); animation: orbit 30s linear infinite; }
.stage__orbit::after { content: ''; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 20px var(--coral); }
@keyframes orbit { to { transform: rotateX(78deg) rotateZ(360deg); } }

.scroll-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .4); }
.scroll-hint::after { content: ''; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Onda separadora */
.wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; z-index: 1; }
.wave path { fill: var(--bg); }

/* Cabecera de páginas internas */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate; color: #dff1f2;
  padding: calc(var(--nav-h) + 56px) 0 96px;
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(81, 168, 177, .5), transparent 60%),
    radial-gradient(600px 300px at 0% 100%, rgba(232, 134, 108, .3), transparent 60%),
    linear-gradient(160deg, var(--ink), var(--teal-900));
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .6rem; }
.page-hero p { color: #b6d8db; max-width: 640px; font-size: 1.08rem; margin: 0; }
.page-hero .hero__canvas { opacity: .6; }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .85rem; margin-bottom: 1rem; color: #9fc7cb; padding: 0; list-style: none; }
.crumbs a { color: #cfe8ea; }
.crumbs a:hover { color: var(--coral-300); }
.crumbs li + li::before { content: '/'; margin-right: .4rem; opacity: .5; }

/* ---------- secciones ---------- */
.section { position: relative; padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--alt { background: linear-gradient(180deg, #fff, var(--teal-50)); }
.section--dark { background: linear-gradient(160deg, var(--ink), var(--teal-900)); color: #cfe6e8; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 3.2rem; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section--dark .section-head p { color: #a9cfd3; }
.section-head--left { margin-left: 0; text-align: left; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }

.grid { display: grid; gap: 1.6rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ---------- tarjetas ---------- */
.card { position: relative; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); padding: 1.8rem; transition: transform .35s var(--ease), box-shadow .35s; }
.card:hover { box-shadow: var(--shadow), 0 0 0 1px var(--teal-100); }
.card--lift:hover { transform: translateY(-6px); }
.card__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; margin-bottom: 1.2rem; font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, var(--teal), var(--teal-600)); box-shadow: var(--glow-teal); }
.card__icon--coral { background: linear-gradient(135deg, var(--coral-300), var(--coral)); box-shadow: var(--glow-coral); }
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--muted); margin: 0; }

.tilt { transform-style: preserve-3d; will-change: transform; transition: transform .5s var(--ease), box-shadow .35s; }
.tilt__glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .55), transparent 45%); opacity: 0; transition: opacity .3s; mix-blend-mode: soft-light; }
.tilt:hover .tilt__glare { opacity: 1; }
.depth { transform: translateZ(40px); }

/* Producto */
.prod-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.prod-card__media { position: relative; height: 290px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 70%, rgba(81, 168, 177, .35), transparent 60%), linear-gradient(160deg, var(--teal-50), #fff); }
.prod-card__media::before { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: conic-gradient(from 0deg, var(--teal-300), var(--coral-300), var(--teal-300)); filter: blur(40px); opacity: .45; animation: spin 14s linear infinite; }
.prod-card__media img { position: relative; height: 230px; width: auto; transform: translateZ(60px); filter: drop-shadow(0 24px 24px rgba(11, 42, 47, .35)); transition: transform .5s var(--ease); }
.prod-card:hover .prod-card__media img { transform: translateZ(80px) rotate(-3deg) scale(1.05); }
.prod-card__body { padding: 1.6rem 1.8rem 1.8rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.prod-card__body p { color: var(--muted); margin: 0; }
.prod-card__foot { margin-top: auto; padding-top: .6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.prod-card__version { font-size: .8rem; color: var(--muted); }

/* Guía (consulta) */
.guide { display: flex; flex-direction: column; overflow: hidden; padding: 0; color: inherit; height: 100%; }
.guide:hover { color: inherit; }
.guide__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--teal-50); }
.guide__media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .7s var(--ease); }
.guide:hover .guide__media img { transform: scale(1.06); }
.guide__media .chip { position: absolute; top: 12px; left: 12px; backdrop-filter: blur(6px); background: rgba(255, 255, 255, .9); }
.guide__media .chip--man { left: auto; right: 12px; background: rgba(232, 134, 108, .95); color: #fff; }
.guide__body { padding: 1.2rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.guide__body h3 { font-size: 1.04rem; margin: 0; transition: color .2s; }
.guide:hover h3 { color: var(--teal-700); }
.guide__body p { font-size: .9rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.guide__meta { margin-top: auto; padding-top: .6rem; display: flex; gap: 1rem; font-size: .78rem; color: var(--muted); }
.guide__meta .fa { color: var(--teal); margin-right: .25rem; }

/* Libros 3D (manuales) */
.books { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 3rem 2rem; }
.book-wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.4rem; color: inherit; }
.book-wrap:hover { color: inherit; }
.book { position: relative; width: 190px; height: 262px; perspective: 1000px; }
.book__inner { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(-28deg) rotateX(4deg); transition: transform .7s var(--ease); }
.book-wrap:hover .book__inner { transform: rotateY(-8deg) rotateX(0) translateZ(20px); }
.book__face { position: absolute; inset: 0; border-radius: 3px 8px 8px 3px; overflow: hidden; backface-visibility: hidden; }
.book__front { transform: translateZ(14px); background: #fff; box-shadow: inset 4px 0 10px rgba(0, 0, 0, .15); }
.book__front img { width: 100%; height: 100%; object-fit: cover; }
.book__front::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(255, 255, 255, .5), transparent 30%, transparent 70%, rgba(0, 0, 0, .12)); }
.book__band { position: absolute; left: 0; right: 0; bottom: 0; padding: .9rem .8rem; text-align: left; color: #fff; background: linear-gradient(transparent, rgba(11, 42, 47, .92)); font-weight: 700; font-size: .8rem; line-height: 1.25; }
.book__spine { width: 28px; left: 0; transform: rotateY(-90deg) translateZ(0) translateX(-14px); transform-origin: left; background: linear-gradient(90deg, var(--teal-700), var(--teal)); border-radius: 3px 0 0 3px; }
.book__pages { width: 26px; right: 0; left: auto; transform: rotateY(90deg) translateZ(176px) translateX(13px); background: repeating-linear-gradient(90deg, #fff 0 2px, #e9eef0 2px 3px); }
.book__back { transform: translateZ(-14px) rotateY(180deg); background: var(--teal-700); }
.book__shadow { position: absolute; left: 10%; right: -10%; bottom: -26px; height: 30px; border-radius: 50%; background: radial-gradient(closest-side, rgba(11, 42, 47, .35), transparent); filter: blur(4px); transition: transform .7s var(--ease); }
.book-wrap:hover .book__shadow { transform: scale(1.1) translateX(-8px); }
.book-wrap h3 { margin: 0; font-size: 1.1rem; }
.book-wrap p { margin: 0; color: var(--muted); font-size: .92rem; max-width: 300px; }
.section--dark .book-wrap p { color: #a9cfd3; }

/* Testimonios (marquesina) */
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 1.2rem; width: max-content; animation: marquee 60s linear infinite; padding: 1rem 0; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee--rev .marquee__track { animation-direction: reverse; animation-duration: 70s; }
@keyframes marquee { to { transform: translateX(-50%); } }
.quote { width: 320px; flex: none; padding: 1.3rem 1.4rem; border-radius: 16px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); color: #d6ecee; }
.quote__who { display: flex; gap: .8rem; align-items: center; }
.quote__who b { display: block; color: #fff; font-size: .88rem; line-height: 1.3; }
.quote__who small { color: var(--coral-300); font-weight: 600; font-size: .75rem; }
.quote p { margin: .9rem 0 0; font-size: .95rem; font-style: italic; }
.stars { color: #f6c26b; font-size: .75rem; letter-spacing: 2px; }

/* Banda CTA */
.cta { position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; padding: clamp(2.2rem, 5vw, 4rem); color: #fff;
  background: radial-gradient(500px 260px at 100% 0%, rgba(255, 255, 255, .25), transparent 60%), linear-gradient(120deg, var(--coral) 0%, #e9977f 40%, var(--teal) 100%); box-shadow: var(--shadow-lg); }
.cta h2 { color: #fff; margin-bottom: .4rem; }
.cta p { margin: 0; opacity: .92; font-size: 1.08rem; }
.cta__row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta__ring { position: absolute; z-index: -1; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); }
.cta__ring--a { width: 380px; height: 380px; right: -120px; top: -160px; animation: spin 40s linear infinite; border-style: dashed; }
.cta__ring--b { width: 240px; height: 240px; left: -80px; bottom: -120px; }

/* Línea de tiempo */
.timeline { position: relative; display: grid; gap: 1.6rem; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--teal), var(--coral)); border-radius: 2px; }
.timeline__item { position: relative; }
.timeline__item::before { content: ''; position: absolute; left: -2rem; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--teal); box-shadow: 0 0 0 6px var(--teal-50); }
.timeline__item b { color: var(--coral-600); font-size: .85rem; letter-spacing: .06em; }
.timeline__item h3 { margin: .2rem 0 .3rem; font-size: 1.08rem; }
.timeline__item p { margin: 0; color: var(--muted); }

/* ---------- Centro de ayuda ---------- */
.search-box { position: relative; max-width: 720px; margin-top: 1.8rem; }
.search-box input { width: 100%; padding: 1.2rem 1.4rem 1.2rem 3.6rem; border: 0; border-radius: 18px; font: inherit; font-size: 1.08rem; color: var(--ink); background: #fff; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5), 0 0 0 6px rgba(255, 255, 255, .08); transition: box-shadow .25s; }
.search-box input:focus { outline: none; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5), 0 0 0 6px rgba(232, 134, 108, .45); }
.search-box > .fa { position: absolute; left: 1.35rem; top: 50%; transform: translateY(-50%); color: var(--teal); font-size: 1.2rem; }
.search-box kbd { position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); font: 600 .75rem/1 inherit; color: var(--muted); padding: .35rem .5rem; border-radius: 6px; background: var(--teal-50); }
.suggest { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; font-size: .88rem; color: #a9cfd3; align-items: center; }
.suggest button { border: 0; cursor: pointer; font: inherit; font-size: .82rem; padding: .3rem .75rem; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; transition: background .2s; }
.suggest button:hover { background: var(--coral); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1.6rem; }
.filter { border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: .88rem; padding: .55rem 1rem; border-radius: 999px; background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line); transition: .2s var(--ease); }
.filter:hover { box-shadow: 0 0 0 1px var(--teal); }
.filter.is-active { background: var(--ink); color: #fff; box-shadow: none; }
.filter small { opacity: .6; margin-left: .25rem; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; color: var(--muted); font-size: .92rem; }
.results-bar select { font: inherit; padding: .5rem .8rem; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; margin-top: 2.4rem; }
.pager button { min-width: 42px; height: 42px; padding: 0 .8rem; border: 0; border-radius: 12px; cursor: pointer; font: inherit; font-weight: 700; background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line); transition: .2s; }
.pager button:hover { box-shadow: 0 0 0 1px var(--teal); }
.pager button.is-active { background: var(--teal); color: #fff; box-shadow: var(--glow-teal); }
.pager button[disabled] { opacity: .4; pointer-events: none; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty .fa { font-size: 2.6rem; color: var(--teal-300); margin-bottom: 1rem; }
mark { background: rgba(242, 162, 140, .45); color: inherit; border-radius: 3px; padding: 0 2px; }

.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.side-list a { display: flex; gap: .7rem; align-items: center; padding: .55rem .6rem; border-radius: 10px; color: var(--ink); font-size: .92rem; line-height: 1.35; }
.side-list a:hover { background: var(--teal-50); color: var(--teal-700); }
.side-list .rank { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--teal-50); color: var(--teal-700); font-weight: 700; font-size: .78rem; }
.side-list li:nth-child(-n+3) .rank { background: linear-gradient(135deg, var(--coral-300), var(--coral)); color: #fff; }

/* Artículo (detalle de consulta / producto) */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 3rem; align-items: start; }
.sticky { position: sticky; top: calc(var(--nav-h) + 20px); }
.prose { font-size: 1.06rem; }
.prose p, .prose li { color: #2c474c; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--coral); }
.prose img { border-radius: 12px; margin: 1rem 0; box-shadow: var(--shadow); }
.prose a { text-decoration: underline; text-decoration-color: var(--coral-300); text-underline-offset: 3px; }
.figure { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); cursor: zoom-in; background: #fff; }
.figure img { width: 100%; }
.figure__zoom { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(11, 42, 47, .75); color: #fff; }
.manual-ref { display: grid; grid-template-columns: 120px 1fr; gap: 1.2rem; align-items: center; padding: 1rem; border-radius: var(--radius); background: linear-gradient(135deg, #fff, var(--teal-50)); box-shadow: 0 0 0 1px var(--teal-100); color: inherit; transition: transform .3s var(--ease), box-shadow .3s; }
.manual-ref:hover { transform: translateY(-3px); box-shadow: var(--glow-teal); color: inherit; }
.manual-ref img { border-radius: 8px; box-shadow: var(--shadow); transform: perspective(600px) rotateY(12deg); transition: transform .4s var(--ease); }
.manual-ref:hover img { transform: perspective(600px) rotateY(0); }
.manual-ref small { color: var(--coral-600); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.manual-ref h4 { margin: .2rem 0; font-size: 1rem; }
.feedback { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding: 1.1rem 1.3rem; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.feedback button { border: 0; cursor: pointer; font: inherit; font-weight: 700; padding: .5rem 1rem; border-radius: 999px; background: var(--teal-50); color: var(--teal-700); transition: .2s; }
.feedback button:hover { background: var(--teal); color: #fff; }
.feedback.is-done button { display: none; }

.features-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; }
.features-list li { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line); line-height: 1.45; font-size: .95rem; transition: transform .25s var(--ease), box-shadow .25s; }
.features-list li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.features-list li::before { content: '\f00c'; font-family: FontAwesome; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--teal-50); color: var(--teal-700); font-size: .8rem; }

.tabs { display: flex; gap: .4rem; overflow-x: auto; padding: .4rem; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); margin-bottom: 2rem; scrollbar-width: none; }
.tabs button { flex: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: .92rem; padding: .7rem 1.1rem; border-radius: 12px; background: none; color: var(--muted); transition: .25s var(--ease); }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.tab-panel { animation: fadeUp .5s var(--ease); }
.tab-panel[hidden] { display: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.gallery a { position: relative; display: block; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); aspect-ratio: 4/3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery a:hover img { transform: scale(1.08); }
.gallery a::after { content: '\f00e'; font-family: FontAwesome; position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.6rem; color: #fff; background: rgba(11, 42, 47, .45); opacity: 0; transition: opacity .3s; }
.gallery a:hover::after { opacity: 1; }
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.doc-list a { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line); color: var(--ink); font-weight: 600; transition: .25s var(--ease); }
.doc-list a:hover { transform: translateX(6px); box-shadow: var(--glow-teal); }
.doc-list .fa-file-pdf-o { font-size: 1.6rem; color: var(--coral); }
.doc-list span { margin-left: auto; color: var(--muted); font-size: .82rem; font-weight: 400; }

/* ---------- Visor de manuales: índice, miniaturas y búsqueda ---------- */
.reader { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 2rem; align-items: start; }
.reader__toc { position: sticky; top: calc(var(--nav-h) + 16px); max-height: calc(100vh - var(--nav-h) - 32px); overflow: auto; padding: 1.2rem; }
.toc { list-style: none; margin: 0; padding: 0; }
.toc button { display: flex; gap: .5rem; width: 100%; padding: .45rem .6rem; border: 0; border-radius: 9px; background: none; text-align: left; cursor: pointer; font: inherit; font-size: .88rem; color: var(--ink); line-height: 1.35; }
.toc button:hover { background: var(--teal-50); }
.toc button.is-current { background: var(--teal); color: #fff; }
.toc button small { margin-left: auto; opacity: .55; flex: none; }
.toc .l2 button { padding-left: 1.4rem; font-size: .84rem; }
.toc .l3 button { padding-left: 2.2rem; font-size: .8rem; color: var(--muted); }
.toc .l3 button.is-current { color: #fff; }
.thumbs { display: flex; gap: .6rem; overflow-x: auto; padding: 1rem .2rem .4rem; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.thumbs button { position: relative; flex: none; width: 70px; border: 0; padding: 0; border-radius: 6px; overflow: hidden; cursor: pointer; scroll-snap-align: center; opacity: .6; box-shadow: 0 0 0 1px var(--line); transition: .2s; background: #fff; }
.thumbs button:hover, .thumbs button.is-current { opacity: 1; box-shadow: 0 0 0 2px var(--coral); }
.thumbs button span { position: absolute; right: 3px; bottom: 3px; font-size: .65rem; font-weight: 700; background: rgba(11, 42, 47, .75); color: #fff; padding: 0 .3rem; border-radius: 4px; }
.thumbs img { width: 100%; }
.search-results { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .4rem; max-height: 320px; overflow: auto; }
.search-results button { width: 100%; text-align: left; border: 0; cursor: pointer; font: inherit; font-size: .84rem; padding: .6rem .7rem; border-radius: 10px; background: var(--teal-50); color: var(--ink); line-height: 1.4; }
.search-results button:hover { background: var(--teal-100); }
.search-results b { color: var(--coral-600); }
.mini-search { position: relative; }
.mini-search input { width: 100%; padding: .7rem .9rem .7rem 2.3rem; border-radius: 12px; border: 1px solid var(--line); font: inherit; font-size: .9rem; }
.mini-search input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-50); }
.mini-search .fa { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); }

/* ---------- formularios ---------- */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; padding: 1.35rem 1rem .55rem; border-radius: 14px; border: 1.5px solid var(--line); background: #fff;
  font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field label { position: absolute; left: 1rem; top: 1rem; color: var(--muted); font-size: 1rem; pointer-events: none; transition: .2s var(--ease); transform-origin: 0 0; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(81, 168, 177, .15); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { transform: translateY(-.62rem) scale(.78); color: var(--teal-700); font-weight: 600; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--coral-600); }
.field__error { display: block; margin-top: .35rem; font-size: .8rem; color: var(--coral-600); }
.field__hint { display: block; margin-top: .35rem; font-size: .8rem; color: var(--muted); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.pass-meter { height: 5px; border-radius: 5px; background: var(--line); overflow: hidden; margin-top: .5rem; }
.pass-meter span { display: block; height: 100%; width: 0; border-radius: 5px; transition: width .3s, background .3s; }

.contact-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.contact-card .card__icon { margin: 0; width: 48px; height: 48px; font-size: 1.1rem; flex: none; }
.contact-card b { display: block; color: var(--ink); }
.contact-card span, .contact-card a { color: var(--muted); font-size: .95rem; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 100%; min-height: 320px; background: var(--teal-50); }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ---------- alertas, toasts, modal, lightbox ---------- */
.alert { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: 14px; margin-bottom: 1rem; background: var(--teal-50); color: var(--teal-900); box-shadow: inset 0 0 0 1px var(--teal-100); }
.alert--danger { background: #fdeee9; color: #8a3520; box-shadow: inset 0 0 0 1px #f6cfc3; }
.alert--success { background: #e9f7ef; color: #1d6b3d; box-shadow: inset 0 0 0 1px #c5ead4; }
.toasts { position: fixed; right: 1rem; bottom: 1rem; z-index: 400; display: grid; gap: .6rem; width: min(380px, calc(100vw - 2rem)); }
.toast { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: 14px; background: var(--ink); color: #e6f3f4; box-shadow: var(--shadow-lg); animation: toastIn .45s var(--ease); }
.toast .fa { color: var(--teal-300); margin-top: .2rem; }
.toast--danger .fa { color: var(--coral-300); }
.toast--success .fa { color: #7fdca5; }
.toast.is-out { animation: toastOut .35s var(--ease) forwards; }
.toast button { margin-left: auto; background: none; border: 0; color: inherit; opacity: .6; cursor: pointer; font-size: 1.1rem; line-height: 1; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 1rem; background: rgba(6, 24, 27, .62); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__dialog { position: relative; width: min(480px, 100%); max-height: calc(100vh - 2rem); overflow: auto; background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); padding: 2.2rem; transform: translateY(24px) scale(.96) rotateX(8deg); transition: transform .45s var(--ease); }
.modal--wide .modal__dialog { width: min(720px, 100%); }
.modal.is-open .modal__dialog { transform: none; }
.modal__close { position: absolute; right: 1rem; top: 1rem; width: 40px; height: 40px; border: 0; border-radius: 12px; cursor: pointer; background: var(--teal-50); color: var(--ink); font-size: 1.3rem; line-height: 1; }
.modal__close:hover { background: var(--coral); color: #fff; }
.modal h2 { font-size: 1.6rem; margin-bottom: .3rem; }
.modal__sub { color: var(--muted); margin-bottom: 1.6rem; }
.auth-switch { text-align: center; margin: 1.2rem 0 0; color: var(--muted); font-size: .92rem; }
.auth-switch button { border: 0; background: none; color: var(--coral-600); font: inherit; font-weight: 700; cursor: pointer; }

.lightbox { position: fixed; inset: 0; z-index: 350; display: grid; place-items: center; background: rgba(6, 24, 27, .92); opacity: 0; pointer-events: none; transition: opacity .3s; padding: 3rem 1rem; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(1200px, 100%); max-height: 100%; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); transform: scale(.94); transition: transform .4s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox button { position: absolute; width: 50px; height: 50px; border: 0; border-radius: 50%; cursor: pointer; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.3rem; }
.lightbox button:hover { background: var(--coral); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__cap { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; color: #cfe6e8; font-size: .9rem; }

/* Comentarios */
.comment { display: flex; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.comment:first-child { border-top: 0; }
.comment__body { flex: 1; }
.comment__head { display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.comment__head b { color: var(--ink); }
.comment__head small { color: var(--muted); }
.comment p { margin: .3rem 0 0; color: #2c474c; white-space: pre-line; }
.comment form { margin-left: auto; }
.linkish { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: .8rem; cursor: pointer; }
.linkish:hover { color: var(--coral-600); }

/* ---------- pie de página ---------- */
.footer { position: relative; overflow: hidden; background: var(--ink); color: #9fc2c6; padding: 84px 0 0; margin-top: 0; }
.footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--teal), var(--coral), var(--teal)); background-size: 200% 100%; animation: shine 8s linear infinite; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer h4 { color: #fff; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1.2rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer a { color: #b9d8db; }
.footer a:hover { color: var(--coral-300); }
.footer__logo { background: #fff; display: inline-block; padding: .6rem .9rem; border-radius: 14px; margin-bottom: 1.2rem; }
.footer__logo img { height: 40px; width: auto; }
.footer__contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer__contact .fa { color: var(--teal); width: 16px; margin-top: .3rem; }
.socials { display: flex; gap: .6rem; margin-top: 1.2rem; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .06); color: #fff; transition: .25s var(--ease); }
.socials a:hover { background: var(--coral); color: #fff; transform: translateY(-3px) rotate(-6deg); }
.footer__bottom { margin-top: 3.5rem; padding: 1.4rem 0; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }
.to-top { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90; width: 50px; height: 50px; border: 0; border-radius: 16px; cursor: pointer; display: grid; place-items: center; background: var(--coral); color: #fff; box-shadow: var(--glow-coral); opacity: 0; transform: translateY(20px); pointer-events: none; transition: .35s var(--ease); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-4px); }

/* ---------- animaciones al hacer scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="zoom"] { transform: scale(.9); }
.js [data-reveal="flip"] { transform: perspective(900px) rotateX(18deg) translateY(30px); transform-origin: 50% 100%; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.page-enter { animation: pageIn .8s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; } }

.cursor-glow { position: fixed; left: 0; top: 0; z-index: 1; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(81, 168, 177, .14), transparent); transition: opacity .3s; mix-blend-mode: multiply; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .reader { grid-template-columns: 1fr; }
  .reader__toc { max-height: none; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1180px) {
  .nav__burger { display: block; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); z-index: 99; margin: 0;
    flex-direction: column; align-items: stretch; gap: .3rem; padding: calc(var(--nav-h) + 20px) 1.2rem 2rem;
    background: rgba(11, 42, 47, .97); backdrop-filter: blur(12px);
    transform: translateX(100%); transition: transform .45s var(--ease);
  }
  .nav-open .nav__links { transform: none; box-shadow: -30px 0 60px rgba(0, 0, 0, .35); }
  .nav__links a, .nav.is-solid .nav__links a, .nav--light .nav__links a { color: #e6f3f4; padding: .9rem 1rem; font-size: 1.05rem; border-radius: 14px; }
  .nav__links a:hover, .nav.is-solid .nav__links a:hover, .nav--light .nav__links a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .nav__links li { opacity: 0; transform: translateX(20px); transition: .4s var(--ease); }
  .nav-open .nav__links li { opacity: 1; transform: none; }
  .nav-open .nav__links li:nth-child(2) { transition-delay: .05s; } .nav-open .nav__links li:nth-child(3) { transition-delay: .1s; }
  .nav-open .nav__links li:nth-child(4) { transition-delay: .15s; } .nav-open .nav__links li:nth-child(5) { transition-delay: .2s; }
  .nav-open .nav__links li:nth-child(6) { transition-delay: .25s; } .nav-open .nav__links li:nth-child(7) { transition-delay: .3s; }
  .nav__burger { z-index: 101; order: 3; }
  .nav__actions { margin-left: auto; }
  .nav-backdrop { position: fixed; inset: 0; z-index: 98; background: rgba(0, 0, 0, .4); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
}
@media (max-width: 920px) {
  .hero { min-height: auto; padding-bottom: 110px; }
  .hero__grid, .split { grid-template-columns: 1fr; }
  .stage { height: 400px; order: -1; }
  .stage__item { width: 170px; margin: -130px 0 0 -85px; }
  .stage__orbit { width: 400px; height: 400px; margin: -200px 0 0 -200px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .cursor-glow { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .grid--2, .grid--3, .grid--4, .form-row, .footer__grid { grid-template-columns: 1fr; }
  .hero__trust { gap: 1.2rem 2rem; }
  .stat b { font-size: 1.6rem; }
  .stage { height: 330px; }
  .stage__item { width: 130px; margin: -100px 0 0 -65px; }
  .stage__label { display: none; }
  .modal__dialog { padding: 1.6rem 1.3rem; border-radius: 20px; }
  .manual-ref { grid-template-columns: 80px 1fr; }
  .search-box kbd { display: none; }
  .section-head { margin-bottom: 2.2rem; }
  .user-menu__btn .name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
@media print {
  .nav, .footer, .to-top, .toasts, .hero__canvas, .cursor-glow { display: none !important; }
  .page-hero { padding: 1rem 0; background: none; color: #000; }
  .page-hero h1 { color: #000; }
}

/* ---------- complementos ---------- */
@keyframes float { 50% { transform: translateY(-16px) rotateY(8deg); } }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { padding: 1rem 1.2rem; text-align: center; border-bottom: 1px solid var(--line); }
.compare th { background: var(--ink); color: #fff; font-size: .9rem; letter-spacing: .02em; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare tbody tr { transition: background .2s; }
.compare tbody tr:hover { background: var(--teal-50); }
.compare .yes { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #fff; box-shadow: var(--glow-teal); }
.compare .no { color: var(--sand); font-weight: 700; }
.client[hidden] { display: none; }
@media (max-width: 920px) { #contacto-grid { grid-template-columns: 1fr !important; } }

/* =========================================================================
   Ajustes v2: diseño más sobrio y ordenado (menos carga visual)
   ========================================================================= */
.section { padding: clamp(52px, 7vw, 92px) 0; }
.section-head { margin-bottom: 2.4rem; }
.page-hero { padding: calc(var(--nav-h) + 36px) 0 72px; }
.page-hero h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.hero { min-height: auto; padding: calc(var(--nav-h) + 48px) 0 110px; }
.hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
.js [data-reveal], .js [data-reveal="left"], .js [data-reveal="right"], .js [data-reveal="zoom"], .js [data-reveal="flip"] { transform: translateY(16px); transition-duration: .6s; }
.js [data-reveal].is-visible { transform: none; }
.footer::before { animation: none; }
.card--lift:hover { transform: translateY(-3px); }
.prod-card__media::before { animation: none; opacity: .3; }
.prod-card:hover .prod-card__media img { transform: translateY(-6px); }
.prod-card__media img { transform: none; }

/* Productos estáticos en la portada */
.hero-products { display: flex; justify-content: center; align-items: flex-end; gap: 0; padding: 1rem 0 2rem; }
.hero-products__item { position: relative; display: flex; flex-direction: column; align-items: center; gap: .9rem; width: 31%; margin: 0 -2%; transition: transform .35s var(--ease); }
.hero-products__item:nth-child(2) { width: 38%; z-index: 2; }
.hero-products__item img { width: 100%; filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .4)); }
.hero-products__item span { font-size: .8rem; font-weight: 700; color: #fff; padding: .3rem .75rem; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.hero-products__item:hover { transform: translateY(-8px); }
.hero-products__item:hover span { background: var(--coral); }

/* Lista de guías (formato de la web original) */
.guide-list { background: #fff; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.guide-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) 24px; gap: 1.1rem; align-items: center; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); color: inherit; transition: background .2s; }
.guide-row:last-child { border-bottom: 0; }
.guide-row:hover { background: var(--teal-50); color: inherit; }
.guide-row img { width: 112px; height: 76px; object-fit: cover; object-position: top left; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); background: var(--teal-50); }
.guide-row h3 { font-size: 1rem; margin: 0 0 .25rem; color: var(--teal-700); }
.guide-row p { font-size: .88rem; color: var(--muted); margin: 0 0 .35rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.guide-row small { font-size: .78rem; color: var(--muted); font-weight: 600; }
.guide-row small .chip { padding: .1rem .5rem; font-size: .7rem; margin-left: .3rem; }
.guide-row > .fa { color: var(--teal-300); font-size: 1.4rem; transition: transform .2s, color .2s; }
.guide-row:hover > .fa { color: var(--coral); transform: translateX(3px); }
.help-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding: .8rem; margin-bottom: 1rem; border-radius: 14px; background: var(--teal); }
.help-bar select, .help-bar input { font: inherit; font-size: .92rem; padding: .6rem .8rem; border-radius: 10px; border: 0; background: #fff; color: var(--ink); }
.help-bar input { flex: 1; min-width: 180px; }
.help-bar button { border: 0; border-radius: 10px; padding: .6rem 1rem; background: var(--coral); color: #fff; cursor: pointer; font: inherit; font-weight: 700; }
.help-count { font-size: .88rem; color: var(--muted); margin: 0 0 .6rem; }

.quote--light { width: auto; background: #fff; color: var(--text); box-shadow: 0 0 0 1px var(--line); }
.quote--light .quote__who b { color: var(--ink); }
.quote--light .quote__who small { color: var(--coral-600); }
.product-shot { display: block; max-width: 300px; margin: 0 auto; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .4)); }

@media (max-width: 1080px) {
  .reader .viewer { order: -1; }
  .reader__toc { max-height: 340px; }
}
@media (max-width: 640px) {
  .guide-row { grid-template-columns: 76px minmax(0, 1fr); gap: .8rem; padding: .9rem; }
  .guide-row img { width: 76px; height: 56px; }
  .guide-row > .fa { display: none; }
  .hero-products { padding-bottom: 0; }
}

/* ---------- Visor de manuales: página fija con zoom ---------- */
.viewer { display: flex; flex-direction: column; min-width: 0; background: #fff; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.viewer__bar { position: sticky; top: var(--nav-h); z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; padding: .7rem .9rem; background: var(--ink); }
.viewer__bar .group { display: flex; align-items: center; gap: .4rem; }
.viewer__bar .icon-btn { width: 40px; height: 40px; background: rgba(255, 255, 255, .1); color: #fff; box-shadow: none; }
.viewer__bar .icon-btn:hover { background: var(--teal); }
.viewer__bar .page-indicator { color: #fff; font-weight: 600; }
.viewer__bar .page-indicator input { width: 3.6em; border: 0; color: var(--ink); }
.zoom-val { min-width: 3.4em; text-align: center; color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.viewer__canvas { position: relative; height: calc(100vh - var(--nav-h) - 170px); min-height: 420px; overflow: auto; background: #e9eff0; padding: 18px; text-align: center; outline: none; }
.viewer__canvas img { display: inline-block; width: 100%; max-width: none; height: auto; background: #fff; box-shadow: 0 6px 24px rgba(11, 42, 47, .18); user-select: none; vertical-align: top; }
.viewer__canvas.is-zoomed { cursor: grab; text-align: left; }
.viewer__canvas.is-dragging { cursor: grabbing; }
.viewer__canvas.is-loading img { opacity: .55; }
.viewer:fullscreen { border-radius: 0; }
.viewer:fullscreen .viewer__bar { top: 0; }
.viewer:fullscreen .viewer__canvas { height: calc(100vh - 150px); }
.viewer .thumbs { padding: .7rem .8rem; border-top: 1px solid var(--line); background: #fff; }
@media (max-width: 1080px) {
  .reader__toc { position: static; max-height: 320px; }
  .viewer__bar { top: 64px; }
  .viewer__canvas { height: 75vh; padding: 10px; }
}
@media (max-width: 640px) { .viewer__bar { justify-content: center; } .viewer__bar .icon-btn { width: 36px; height: 36px; } }
