/* Hayex Technology — hoja única del sitio (v4: temas claro/oscuro) */

/* ---------- Tokens ---------- */
:root, [data-theme="light"] {
  --red: #c8221c;
  --red-2: #e0433d;
  --red-dark: #a11a15;
  --red-soft: #fdeceb;
  --bg: #ffffff;
  --bg-2: #f3f4f6;
  --surface: #ffffff;
  --ink: #0e1116;
  --ink-2: #3a414b;
  --muted: #69717c;
  --line: #e3e6ea;
  --line-2: #cfd4da;
  --plate: #ffffff;
  --nav-bg: rgba(255, 255, 255, .92);
  --fiber: #e2e5e9;
  --shadow: 0 1px 2px rgba(14, 17, 22, .05), 0 6px 20px -8px rgba(14, 17, 22, .12);
  --shadow-lg: 0 24px 48px -24px rgba(14, 17, 22, .35);
  --dark: #0e1116;
  --dark-2: #151a21;
  color-scheme: light;
}
[data-theme="dark"] {
  --red: #e0332c;
  --red-2: #ff5a52;
  --red-dark: #c8221c;
  --red-soft: rgba(224, 51, 44, .14);
  --bg: #0c0f13;
  --bg-2: #12161b;
  --surface: #161b21;
  --ink: #f2f4f6;
  --ink-2: #c4cad2;
  --muted: #8d95a0;
  --line: #242a32;
  --line-2: #343c46;
  --plate: #ffffff;
  --nav-bg: rgba(12, 15, 19, .88);
  --fiber: #1d232b;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -10px rgba(0, 0, 0, .6);
  --shadow-lg: 0 24px 48px -20px rgba(0, 0, 0, .8);
  --dark: #07090c;
  --dark-2: #11151a;
  color-scheme: dark;
}
:root {
  --t-h1: clamp(2.2rem, 4.5vw, 3.6rem);
  --t-h2: clamp(1.8rem, 3.2vw, 2.6rem);
  --t-h2s: 1.7rem;
  --t-h3: 1.3rem;
  --t-h4: 1.12rem;
  --t-lead: 1.15rem;
  --t-body: 1.0625rem;
  --t-sm: .93rem;
  --t-xs: .84rem;
  --t-num: clamp(2rem, 3.2vw, 2.5rem);
  --radius: 8px;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
  --max: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); font-size: var(--t-body); line-height: 1.6; color: var(--ink-2); background: var(--bg); -webkit-font-smoothing: antialiased; transition: background-color .3s, color .3s; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2 { text-wrap: balance; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.08; margin: 0 0 .45em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); font-weight: 600; line-height: 1.2; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
.icon { flex: none; vertical-align: middle; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
::selection { background: var(--red); color: #fff; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; position: relative; }
.section--alt { background: var(--bg-2); }
.section--tight { padding: 64px 0; }
.lead { font-size: var(--t-lead); color: var(--muted); max-width: 620px; }
.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section__head--row > div { max-width: 640px; }
.section__head p:last-child { margin-bottom: 0; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .lead { margin-left: auto; margin-right: auto; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font); font-weight: 600; font-size: var(--t-sm); color: var(--red); margin-bottom: 14px; }
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 200; border-radius: var(--radius); }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: var(--radius); font: 600 var(--t-body)/1.2 var(--font); border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .2s, box-shadow .2s; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(200, 34, 28, .7); }
.btn--outline { border-color: var(--line-2); color: var(--ink); background: var(--surface); }
.btn--outline:hover { border-color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn--light { background: #fff; color: #0e1116; }
.btn--light:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .5); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn--block { width: 100%; }
.btn.is-loading { opacity: .75; cursor: progress; }
.link { color: var(--red); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.btn .icon, .link .icon { transition: transform .2s; }
.btn:hover .icon, .link:hover .icon { transform: translateX(3px); }

/* ---------- Preloader (solo primera carga de la visita, ~1,2 s) ---------- */
.preloader { display: none; place-items: center; position: fixed; inset: 0; z-index: 300; background: var(--bg); transition: transform .7s cubic-bezier(.7, 0, .2, 1), border-radius .7s cubic-bezier(.7, 0, .2, 1); }
/* Al terminar se quita .pre (arrancan las animaciones de la página) y la cortina sube por encima */
.js.pre .preloader, .preloader.is-done { display: grid; }
.preloader.is-done { transform: translateY(-100%); border-radius: 0 0 50% 50% / 0 0 80px 80px; pointer-events: none; }
.preloader__in { display: grid; justify-items: center; gap: 14px; transition: opacity .3s, transform .45s var(--ease); }
.preloader.is-done .preloader__in { opacity: 0; transform: translateY(-24px); }
.preloader img { width: 64px; height: auto; animation: pre-logo .7s var(--ease) both; }
.preloader__name { font-family: var(--display); font-size: 1.35rem; font-weight: 500; color: var(--ink); letter-spacing: .01em; animation: pre-nombre .8s .15s var(--ease) both; }
.preloader__name strong { font-weight: 700; }
.preloader__line { position: relative; width: 180px; height: 2px; margin-top: 6px; background: var(--line); border-radius: 2px; overflow: hidden; }
.preloader__line i { position: absolute; inset: 0; background: var(--red); transform-origin: left; animation: pre-llenar 1s .1s cubic-bezier(.6, 0, .3, 1) both; }
.preloader__line i::after { content: ""; position: absolute; right: 0; top: -3px; width: 26px; height: 8px; background: radial-gradient(closest-side, #fff, rgba(255, 138, 128, .8) 40%, transparent); }
@keyframes pre-logo { from { opacity: 0; transform: translateY(8px) scale(.92); } }
@keyframes pre-nombre { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes pre-llenar { from { transform: scaleX(0); } }

/* ---------- Barra superior y navegación ---------- */
.topbar { background: var(--dark); color: #aab1ba; font-size: var(--t-xs); }
.topbar__in { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 6px; }
.topbar__right { gap: 24px !important; }
.topbar a:hover { color: #fff; }

.nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .25s, background-color .3s, border-color .3s; }
.nav.is-scrolled { box-shadow: 0 10px 28px -18px rgba(0, 0, 0, .35); }
.nav__in { display: flex; align-items: center; gap: 16px; height: 74px; border: 1px solid transparent; border-radius: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--display); font-size: 1.3rem; margin-right: auto; }
.brand img { width: 46px; height: auto; }
.brand__txt { font-weight: 500; }
.brand__txt strong { font-weight: 700; }
.menu { position: relative; display: flex; align-items: center; gap: 2px; padding: 4px; margin: 0 auto; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; transition: background-color .3s, border-color .3s; }
.menu__link { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 4px; padding: 8px 15px; border: 0; border-radius: 999px; background: none; font: 500 var(--t-body) var(--font); color: var(--ink-2); cursor: pointer; transition: color .2s; }
.menu__link:hover, .menu__link[aria-current="page"], .menu__drop[aria-expanded="true"] { color: var(--ink); }
.menu__link[aria-current="page"] { font-weight: 600; }
.menu__drop .icon { transition: transform .25s var(--ease); }
.menu__drop[aria-expanded="true"] .icon { transform: rotate(180deg); }
/* Sin JS, la página actual se marca con fondo propio; con JS lo hace el indicador */
.menu:not(.has-ind) .menu__link[aria-current="page"] { background: var(--surface); box-shadow: var(--shadow); }
.menu__ind { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: var(--ind-w, 0); transform: translateX(var(--ind-x, 0)); opacity: var(--ind-o, 0); background: var(--surface); border-radius: 999px; box-shadow: 0 1px 2px rgba(14, 17, 22, .08), 0 4px 12px -4px rgba(14, 17, 22, .18); transition: transform .4s var(--ease), width .4s var(--ease), opacity .25s; pointer-events: none; }
[data-theme="dark"] .menu__ind { background: #232a33; }
/* Hilo de fibra con un pulso de luz en la base del indicador */
.menu__ind::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--red) 0 40%, #ffd6d3 50%, var(--red) 60% 100%); background-size: 300% 100%; animation: fibra-link 2.4s linear infinite; }
@keyframes fibra-link { from { background-position: 100% 0; } to { background-position: 0 0; } }
.nav__tools { display: flex; align-items: center; gap: 8px; }
.brand { flex: none; }
.tool { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font: 500 var(--t-sm) var(--font); cursor: pointer; transition: border-color .15s, color .15s, background-color .3s; }
.tool:hover { border-color: var(--line-2); color: var(--ink); }
.tool--icon { width: 42px; padding: 0; justify-content: center; }
.nav__toggle { display: none; }
.nav__cta { white-space: nowrap; margin-left: 4px; border-radius: 999px; padding-left: 20px; padding-right: 18px; position: relative; overflow: hidden; }
/* Destello que cruza el botón al pasar el mouse */
.nav__cta::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); transition: left .6s var(--ease); }
.nav__cta:hover::before { left: 120%; }
/* Botón de menú (móvil): tres líneas que se igualan al pasar el dedo */
.burger { display: grid; gap: 4px; width: 20px; }
.burger i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: width .3s var(--ease); }
.burger i:nth-child(1) { width: 100%; }
.burger i:nth-child(2) { width: 70%; justify-self: end; }
.burger i:nth-child(3) { width: 45%; justify-self: end; }
.nav__toggle:hover .burger i { width: 100%; }
[data-theme="light"] .tema-luna, [data-theme="dark"] .tema-sol { display: none !important; }
.tema-sol, .tema-luna { display: grid; }
.theme-toggle .icon { transition: transform .5s var(--ease); }
.theme-toggle:hover .icon { transform: rotate(25deg); }

/* Barra compacta al hacer scroll: se despega del borde y flota */
.nav__in { transition: height .35s var(--ease), margin .35s var(--ease), max-width .35s var(--ease), padding .35s var(--ease), border-radius .35s var(--ease), background-color .3s, border-color .3s, box-shadow .3s; }
.brand img, .tool { transition: width .3s var(--ease), height .3s var(--ease), border-color .15s, color .15s, background-color .3s; }
.nav.is-compact { background: transparent; border-bottom-color: transparent; box-shadow: none; backdrop-filter: none; }
.nav.is-compact .nav__in { height: 60px; margin-top: 10px; max-width: calc(var(--max) - 24px); width: calc(100% - 20px); padding: 0 8px 0 16px; background: var(--nav-bg); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-color: var(--line); border-radius: 999px; box-shadow: 0 16px 40px -20px rgba(14, 17, 22, .45); }
.nav.is-compact .brand img { width: 38px; }
.nav.is-compact .tool { height: 40px; }
.nav.is-compact .tool--icon { width: 40px; }
.nav.is-compact .nav__cta { padding-top: 9px; padding-bottom: 9px; }

/* Menú desplegable de productos */
.mega { position: absolute; top: calc(100% + 8px); left: 50%; width: min(calc(var(--max) - 24px), calc(100% - 20px)); translate: -50% 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .45); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .22s, transform .3s var(--ease), visibility .22s; }
.mega.is-open { opacity: 1; visibility: visible; transform: none; }
/* Puente invisible para no perder el hover al cruzar el espacio hasta el panel */
.mega::after { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.mega::before { content: ""; position: absolute; top: -1px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, transparent, var(--red) 30%, #ff8a80 50%, var(--red) 70%, transparent); background-size: 200% 100%; animation: fibra-link 3s linear infinite; }
.mega__in { display: grid; grid-template-columns: 1fr 290px; gap: 40px; padding: 28px 28px 32px; }
.mega__cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.mega.is-open .mega__cats li { animation: subir .45s var(--ease) both; }
.mega.is-open .mega__cats li:nth-child(2) { animation-delay: .04s; }
.mega.is-open .mega__cats li:nth-child(3) { animation-delay: .08s; }
.mega.is-open .mega__cats li:nth-child(4) { animation-delay: .12s; }
.mega.is-open .mega__cats li:nth-child(5) { animation-delay: .16s; }
.mega__cat { display: flex; flex-direction: column; height: 100%; padding: 10px 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.mega__cat:hover { border-color: var(--red); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.mega__img { display: block; margin-bottom: 12px; border-radius: 8px; overflow: hidden; background: var(--plate); }
.mega__img img { aspect-ratio: 1; object-fit: contain; padding: 8px; transition: transform .5s var(--ease); }
.mega__cat:hover .mega__img img { transform: scale(1.07); }
.mega__cat strong { font-family: var(--display); font-size: var(--t-h4); font-weight: 600; line-height: 1.15; color: var(--ink); }
.mega__cat small { margin-top: 3px; font-size: var(--t-xs); color: var(--muted); }
.mega__go { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 12px; font-size: var(--t-sm); font-weight: 600; color: var(--red); }
.mega__go .icon { transition: transform .2s; }
.mega__cat:hover .mega__go .icon { transform: translateX(3px); }
.mega__side h3 { font-size: var(--t-h4); color: var(--muted); margin-bottom: 8px; }
.mega__links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-bottom: 18px; }
.mega__links a { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-weight: 500; font-size: var(--t-sm); transition: color .15s; }
.mega__links a .icon { color: var(--muted); transition: transform .2s, color .15s; }
.mega__links a:hover { color: var(--red); }
.mega__links a:hover .icon { color: var(--red); transform: translateX(3px); }
.mega__seal { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 10px; font-size: var(--t-xs); line-height: 1.3; color: var(--muted); }
.mega__seal img { height: 54px; width: auto; flex: none; background: #fff; border-radius: 6px; padding: 3px 5px; }

/* Menú móvil a pantalla completa (se abre en círculo desde el botón) */
.mmenu { display: none; }
html.menu-open { overflow: hidden; }

/* ---------- Fibras con pulsos de luz ---------- */
.fibras { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.fibras__hilo { fill: none; stroke: var(--fiber); stroke-width: 1.3; transition: stroke .3s; }
.fibras__pulso { fill: none; stroke: url(#fg); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 70 930; stroke-dashoffset: 1000; animation: pulso calc(6s + var(--i) * 1.3s) linear infinite; animation-delay: calc(var(--i) * -2.1s); }
@keyframes pulso { to { stroke-dashoffset: 0; } }
.fibras--hero { -webkit-mask-image: linear-gradient(90deg, transparent 48%, #000 72%); mask-image: linear-gradient(90deg, transparent 48%, #000 72%); }
.fibras--dark .fibras__hilo, .fibras--phead .fibras__hilo { stroke: rgba(255, 255, 255, .07); }
.fibras--dark, .fibras--phead { -webkit-mask-image: linear-gradient(90deg, transparent 55%, #000 85%); mask-image: linear-gradient(90deg, transparent 55%, #000 85%); }
.fibras--dark { -webkit-mask-image: linear-gradient(90deg, transparent 82%, #000 100%); mask-image: linear-gradient(90deg, transparent 82%, #000 100%); }
.fibras--cta .fibras__hilo { stroke: rgba(255, 255, 255, .16); }
.fibras--cta .fibras__pulso { stroke: #fff; opacity: .7; }
.fibras--cta { -webkit-mask-image: linear-gradient(90deg, transparent 45%, #000 85%); mask-image: linear-gradient(90deg, transparent 45%, #000 85%); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 76px 0 96px; background: radial-gradient(900px 500px at 82% 30%, rgba(200, 34, 28, .08), transparent 65%), linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--line-2) 1px, transparent 1px); background-size: 22px 22px; opacity: .5; -webkit-mask-image: radial-gradient(ellipse 55% 70% at 74% 45%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 55% 70% at 74% 45%, #000 10%, transparent 70%); }
.hero > .container { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero__grid > * { min-width: 0; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lead { margin-bottom: 28px; }
.hero__copy > * { animation: subir .8s var(--ease) both; }
.hero__copy > :nth-child(2) { animation-delay: .08s; }
.hero__copy > :nth-child(3) { animation-delay: .16s; }
.hero__copy > :nth-child(4) { animation-delay: .24s; }
.hero__copy > :nth-child(5) { animation-delay: .32s; }
.hero__copy > :nth-child(6) { animation-delay: .4s; }
.pre .hero__copy > *, .pre .hero__tile, .pre .hero__seal { animation-play-state: paused; }
@keyframes subir { from { opacity: 0; transform: translateY(18px); } }
.hero__search { display: flex; align-items: center; gap: 10px; max-width: 580px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 6px 6px 16px; box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s, background-color .3s; }
.hero__search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(200, 34, 28, .14), var(--shadow); }
.hero__search > .icon { color: var(--muted); }
.hero__search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: var(--t-body); color: var(--ink); padding: 8px 0; }
.hero__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: var(--t-sm); color: var(--muted); }
.hero__tags a { padding: 3px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); transition: border-color .15s, color .15s; }
.hero__tags a:hover { border-color: var(--red); color: var(--red); }
.hero__badges { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; font-size: var(--t-sm); color: var(--ink-2); }
.hero__badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero__badges .icon { color: var(--red); }
.hero__visual { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.hero__glow { position: absolute; inset: 10% 5%; background: radial-gradient(closest-side, rgba(200, 34, 28, .22), transparent); filter: blur(30px); z-index: -1; animation: latir 6s ease-in-out infinite; }
@keyframes latir { 50% { opacity: .55; transform: scale(.92); } }
.plate { margin: 0; background: var(--plate); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.plate img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.hero__tile { position: relative; padding: 12px; box-shadow: var(--shadow); animation: aparecer .9s var(--ease) both; transition: box-shadow .3s; }
.hero__tile:nth-of-type(2n) { translate: 0 32px; }
.hero__tile:nth-of-type(1) { animation-delay: .15s; }
.hero__tile:nth-of-type(2) { animation-delay: .27s; }
.hero__tile:nth-of-type(3) { animation-delay: .39s; }
.hero__tile:nth-of-type(4) { animation-delay: .51s; }
.hero__tile:hover { box-shadow: var(--shadow-lg); }
.hero__tile img { animation: flotar 7s ease-in-out infinite; }
.hero__tile:nth-of-type(2) img { animation-delay: -1.8s; }
.hero__tile:nth-of-type(3) img { animation-delay: -3.6s; }
.hero__tile:nth-of-type(4) img { animation-delay: -5.4s; }
.hero__tile figcaption { position: absolute; left: 12px; top: 10px; font-size: var(--t-xs); font-weight: 600; color: #0e1116; background: rgba(255, 255, 255, .92); padding: 2px 8px; border-radius: 4px; }
.hero__seal { position: absolute; left: -34px; bottom: -18px; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); animation: aparecer .9s .7s var(--ease) both; }
.hero__seal img { width: auto; height: 58px; background: #fff; border-radius: 8px; padding: 4px 6px; }
.hero__seal strong { display: block; font-family: var(--display); color: var(--ink); font-size: var(--t-h4); line-height: 1.1; }
.hero__seal span { font-size: var(--t-xs); color: var(--muted); }
@keyframes aparecer { from { opacity: 0; transform: translateY(24px) scale(.95); } }
@keyframes flotar { 50% { transform: translateY(-8px); } }

/* ---------- Franja roja de cifras ---------- */
.band-red { position: relative; overflow: hidden; background: var(--red); color: #fff; }
.band-red::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 14px); }
.stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 28px; border-left: 1px solid rgba(255, 255, 255, .22); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: block; font-family: var(--display); font-size: var(--t-num); font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.stat > span { display: block; margin-top: 6px; font-size: var(--t-sm); color: rgba(255, 255, 255, .85); }

/* ---------- Categorías ---------- */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cat__img { background: var(--plate); border-bottom: 1px solid var(--line); overflow: hidden; }
.cat__img img { aspect-ratio: 1; object-fit: contain; padding: 12px; transition: transform .6s var(--ease); }
.cat__body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.cat__body small { font-size: var(--t-xs); font-weight: 600; color: var(--red); margin-bottom: 2px; }
.cat__body h3 { margin-bottom: 6px; font-size: var(--t-h4); }
.cat__body p { font-size: var(--t-sm); color: var(--muted); margin-bottom: 14px; flex: 1; }
.cat__body .link { font-size: var(--t-sm); }

.cat::after, .product::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.cat:hover::after, .product:hover::after { transform: scaleX(1); }
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat:hover .cat__img img { transform: scale(1.07); }
.cat:hover .link .icon { transform: translateX(3px); }

/* ---------- Diagrama de red FTTH (portada) ---------- */
.ftth__scroll { margin: 0 -24px; padding: 8px 24px 4px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.ftth__scroll::-webkit-scrollbar { display: none; }
.ftth__track { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); min-width: 860px; }
/* La fibra: gris de fondo; se enciende en rojo hasta el tramo elegido y un pulso de luz la recorre */
.ftth__line { position: absolute; top: 46px; left: calc(50% / var(--n)); right: calc(50% / var(--n)); height: 3px; border-radius: 3px; background: var(--line-2); }
.ftth__line i { position: absolute; inset: 0; width: calc(var(--p, 0) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--red) 0 42%, #ffd6d3 50%, var(--red) 58% 100%); background-size: 260px 100%; box-shadow: 0 0 10px rgba(224, 51, 44, .45); transition: width .7s var(--ease); animation: ftth-luz 1.6s linear infinite; }
@keyframes ftth-luz { from { background-position: -260px 0; } to { background-position: 260px 0; } }
.ftth__node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 6px 6px; border: 0; background: none; color: var(--ink-2); font: inherit; text-align: center; cursor: pointer; scroll-snap-align: center; }
.ftth__dot { display: grid; place-items: center; width: 92px; height: 92px; margin-bottom: 12px; border-radius: 50%; background: var(--plate); border: 2px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden; transition: border-color .3s, box-shadow .3s, transform .35s var(--ease); }
.ftth__dot img { width: 78%; height: 78%; object-fit: contain; transition: transform .5s var(--ease); }
.ftth__node strong { font-family: var(--display); font-size: var(--t-h4); font-weight: 600; line-height: 1.15; color: var(--ink); }
.ftth__node small { font-size: var(--t-xs); color: var(--muted); }
.ftth__node:hover .ftth__dot { transform: translateY(-3px); border-color: var(--red-2); }
.ftth__node:hover .ftth__dot img { transform: scale(1.08); }
.ftth__node.is-lit .ftth__dot { border-color: var(--red); }
.ftth__node[aria-selected="true"] .ftth__dot { border-color: var(--red); transform: scale(1.08); box-shadow: 0 0 0 7px rgba(224, 51, 44, .14), 0 14px 30px -12px rgba(200, 34, 28, .55); }
.ftth__node[aria-selected="true"] strong { color: var(--red); }
.ftth__node:focus-visible { outline: none; }
.ftth__node:focus-visible .ftth__dot { outline: 2px solid var(--red); outline-offset: 4px; }

.ftth__panel { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: center; margin-top: 36px; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.ftth__panel:not([hidden]) { animation: subir .45s var(--ease) both; }
.ftth__info h3 { font-size: var(--t-h2s); margin-bottom: 10px; }
.ftth__info h3 span { font-family: var(--font); font-size: var(--t-sm); font-weight: 600; color: var(--red); margin-left: 6px; vertical-align: middle; }
.ftth__info p { font-size: var(--t-lead); color: var(--muted); margin-bottom: 22px; }
.ftth__links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.ftth__prods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ftth__prods a { display: flex; flex-direction: column; height: 100%; padding: 10px 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.ftth__prods a:hover { border-color: var(--red); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ftth__prods span { display: block; margin-bottom: 10px; border-radius: 8px; background: var(--plate); overflow: hidden; }
.ftth__prods img { aspect-ratio: 1; object-fit: contain; padding: 8px; }
.ftth__prods strong { font-family: var(--display); font-size: var(--t-h4); font-weight: 600; line-height: 1.15; color: var(--ink); }
.ftth__prods small { margin-top: 2px; font-size: var(--t-xs); color: var(--muted); }
.ftth__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 22px 0 0; font-size: var(--t-sm); color: var(--muted); }
.ftth__tools > .icon { color: var(--red); }

/* ---------- Sección oscura (siempre oscura) ---------- */
.section--dark { overflow: hidden; background: var(--dark); color: #a3abb5; }
.section--dark::before { content: ""; position: absolute; width: 760px; height: 760px; left: -260px; top: -320px; background: radial-gradient(closest-side, rgba(200, 34, 28, .28), transparent); pointer-events: none; }
.section--dark > .container { position: relative; z-index: 1; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lead { color: #a3abb5; }
.section--dark .kicker { color: #ff6b63; }

.why { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.why .lead { margin-bottom: 28px; }
.spec li { padding: 26px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.spec li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.spec h3 { margin: 0 0 6px; font-size: var(--t-h3); }
.spec p { margin: 0; color: #a3abb5; }

/* ---------- Marcas ---------- */
.marquee { display: grid; gap: 16px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__row { overflow: hidden; }
.marquee__track { display: flex; gap: 16px; width: max-content; animation: desfile 48s linear infinite; }
.marquee__row--rev .marquee__track { animation-direction: reverse; animation-duration: 54s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee li { flex: none; width: 190px; height: 88px; display: grid; place-items: center; padding: 18px 24px; background: var(--plate); border: 1px solid var(--line); border-radius: 12px; }
.marquee img { max-height: 42px; width: auto; filter: grayscale(1); opacity: .65; transition: filter .25s, opacity .25s; }
.marquee li:hover img { filter: none; opacity: 1; }
@keyframes desfile { to { transform: translateX(calc(-50% - 8px)); } }

/* ---------- Bloques con imagen ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split__img { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; }
.split__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.split__img:hover img { transform: scale(1.04); }
.split__badge { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: #0e1116; font-size: var(--t-sm); font-weight: 600; }
.split__badge .icon { color: var(--red); }
.checks li { display: flex; gap: 10px; align-items: flex-start; padding: 4px 0; color: var(--ink-2); }
.checks .icon { color: var(--red); margin-top: 5px; }

/* ---------- Llamado a la acción (franja roja) ---------- */
.cta { position: relative; overflow: hidden; background: var(--red); color: rgba(255, 255, 255, .88); border-radius: 16px; padding: 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.cta::before { content: ""; position: absolute; width: 560px; height: 560px; right: -160px; top: -260px; background: radial-gradient(closest-side, rgba(255, 255, 255, .22), transparent); pointer-events: none; }
.cta > :not(.fibras) { position: relative; z-index: 1; }
.cta h2 { color: #fff; }
.cta p { margin: 0; font-size: var(--t-lead); }
.cta__actions { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Encabezado de páginas internas ---------- */
.phead { position: relative; overflow: hidden; background: var(--dark); color: #a3abb5; padding: 64px 0 72px; }
.phead::before { content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -300px; background: radial-gradient(closest-side, rgba(200, 34, 28, .3), transparent); pointer-events: none; }
.phead__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.phead__grid > * { min-width: 0; }
.phead h1 { color: #fff; margin-bottom: 14px; }
.phead .lead { color: #aab1ba; margin: 0; }
.phead__copy > * { animation: subir .7s var(--ease) both; }
.phead__copy > :nth-child(2) { animation-delay: .06s; }
.phead__copy > :nth-child(3) { animation-delay: .12s; }
.phead__copy > :nth-child(4) { animation-delay: .18s; }
.crumbs { display: flex; gap: 8px; font-size: var(--t-sm); color: #7f8893; margin-bottom: 18px; }
.crumbs a:hover { color: #fff; }
.phead__datos { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); }
.phead__datos dt { font-family: var(--display); font-size: var(--t-num); font-weight: 700; color: #fff; line-height: 1; }
.phead__datos dd { font-size: var(--t-sm); color: #8d95a0; margin-top: 4px; }
.phead__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; animation: aparecer .9s .15s var(--ease) both; }
.phead__tiles .plate { padding: 10px; border-color: transparent; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8); }
.phead__tiles .plate:nth-child(2) { translate: 0 -22px; }
.phead__tiles .plate:nth-child(3) img { animation-delay: -3s; }
.phead__tiles img { animation: flotar 7s ease-in-out infinite; }
.phead__photo { margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 11; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); animation: aparecer .9s .15s var(--ease) both; }
.phead__photo img { width: 100%; height: 100%; object-fit: cover; }
.phead__side { animation: aparecer .9s .15s var(--ease) both; }

/* Tarjetas de contacto rápido dentro del encabezado */
.qcards { display: grid; gap: 12px; }
.qcard { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); color: #fff; transition: background .2s, border-color .2s, transform .2s; }
.qcard:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .25); transform: translateX(4px); }
.qcard .icon { color: #ff6b63; }
.qcard strong { display: block; font-family: var(--display); font-size: var(--t-h4); font-weight: 600; }
.qcard span { font-size: var(--t-sm); color: #9aa2ac; }
.qcard--wa { background: #1f9d55; border-color: #1f9d55; }
.qcard--wa .icon, .qcard--wa span { color: #e8fff1; }
.qcard--wa:hover { background: #1a8a4a; border-color: #1a8a4a; }

/* Tarjetas de contacto sobre fondo claro/oscuro del tema */
.qcards--light { margin-bottom: 28px; }
.qcards--light .qcard:not(.qcard--wa) { background: var(--surface); border-color: var(--line); color: var(--ink); }
.qcards--light .qcard:not(.qcard--wa):hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.qcards--light .qcard:not(.qcard--wa) .icon { color: var(--red); }
.qcards--light .qcard:not(.qcard--wa) span { color: var(--muted); }

/* ---------- Catálogo ---------- */
.toolbar { position: sticky; top: var(--nav-h, 75px); transition: top .3s var(--ease); z-index: 10; background: var(--nav-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.toolbar__in { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; padding-bottom: 14px; }
.finder { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--muted); transition: border-color .2s, box-shadow .2s; }
.finder:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(200, 34, 28, .14); }
.finder input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: var(--t-body); color: var(--ink); }
.finder button { display: grid; place-items: center; padding: 6px; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.finder button:hover { background: var(--bg-2); color: var(--ink); }
.finder__count { padding-left: 12px; border-left: 1px solid var(--line); font-size: var(--t-sm); white-space: nowrap; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { white-space: nowrap; padding: 6px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font: 500 var(--t-sm) var(--font); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
#catalogo { scroll-margin-top: 210px; padding-bottom: 24px; }
.catalog-group { padding: 56px 0 8px; }
.catalog-group__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.catalog-group__head h2 { font-size: var(--t-h2s); margin: 0 0 4px; }
.catalog-group__head p { margin: 0; color: var(--muted); }
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; background: var(--surface); }
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product__img { position: relative; aspect-ratio: 1; background: var(--plate); border-bottom: 1px solid var(--line); overflow: hidden; }
.product__img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; transition: transform .6s var(--ease); }
.product:hover .product__img img { transform: scale(1.07); }
.product__brand { position: absolute; z-index: 1; top: 12px; left: 12px; font-size: var(--t-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; background: #0e1116; color: #fff; padding: 3px 8px; border-radius: 4px; }
.product__body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.product__body h3 { font-size: var(--t-h4); margin-bottom: 6px; }
.product__body p { font-size: var(--t-sm); color: var(--muted); flex: 1; margin-bottom: 16px; }
.product__actions { display: flex; gap: 8px; }
.product__actions .btn { padding: 9px 12px; font-size: var(--t-sm); flex: 1; }
.empty { max-width: 580px; margin: 0 auto; padding: 72px 0 40px; text-align: center; }
.empty .ico { margin: 0 auto 18px; }
.empty h2 { font-size: var(--t-h2s); }
.empty p { color: var(--muted); }

/* ---------- Íconos en recuadro ---------- */
.ico { flex: none; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--red); display: grid; place-items: center; }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 32px; display: grid; grid-template-columns: 46px 1fr; gap: 20px; transition: transform .3s, box-shadow .3s, border-color .3s; }
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.service h3 { margin-bottom: 6px; }
.service p { color: var(--muted); margin-bottom: 14px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.steps::before { content: ""; position: absolute; top: 23px; left: 46px; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--red) 0 8px, transparent 8px 16px); opacity: .5; }
.step__n { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; margin-bottom: 18px; box-shadow: 0 0 0 6px var(--bg-2); }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Distribuidores ---------- */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.perk { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.perk:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.perk .ico { margin-bottom: 18px; }
.perk h3 { margin-bottom: 8px; }
.perk p { margin: 0; color: var(--muted); }
.perfiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.perfil { position: relative; overflow: hidden; padding: 30px 28px; border-radius: 14px; background: var(--dark); color: #a3abb5; }
.perfil::before { content: ""; position: absolute; width: 260px; height: 260px; right: -110px; top: -120px; background: radial-gradient(closest-side, rgba(200, 34, 28, .35), transparent); pointer-events: none; }
.perfil > .icon { position: relative; color: #ff6b63; margin-bottom: 18px; }
.perfil h3 { position: relative; color: #fff; margin-bottom: 8px; }
.perfil p { position: relative; margin: 0; }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.steps--3::before { right: 30%; }
.alta__h { font-size: var(--t-h2s); }

/* ---------- Eventos ---------- */
.section--tight-top { padding-top: 72px; }
.ev-tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 6px; font-size: var(--t-xs); font-weight: 600; line-height: 1.5; background: #0e1116; color: #fff; }
.ev-tag--en-curso { background: var(--red); }
.ev-tag--proximo { background: #fff; color: #0e1116; border: 1px solid var(--line-2); }
.ev-tag--pasado { background: rgba(14, 17, 22, .78); }
/* Portada de marca cuando aún no hay fotos */
.ev-ph { position: relative; display: grid; align-content: end; gap: 2px; width: 100%; height: 100%; padding: 22px; overflow: hidden; background: radial-gradient(420px 260px at 85% 0%, rgba(224, 51, 44, .5), transparent 70%), linear-gradient(160deg, #1a1f27, #0b0e12); color: #fff; }
.ev-ph .fibras { -webkit-mask-image: none; mask-image: none; opacity: .8; }
.ev-ph strong { position: relative; font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; line-height: 1; }
.ev-ph small { position: relative; color: #ff8a80; font-size: var(--t-sm); font-weight: 600; }

/* Evento en curso destacado */
.ev-live-wrap { padding-bottom: 0; }
.ev-live { display: grid; grid-template-columns: 1.15fr 1fr; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); }
.ev-live__img { display: block; min-height: 340px; background: var(--dark); overflow: hidden; }
.ev-live__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ev-live:hover .ev-live__img img { transform: scale(1.04); }
.ev-live__body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 40px; border-top: 3px solid var(--red); }
.ev-live__body h2 { font-size: var(--t-h2s); margin: 12px 0 10px; }
.ev-live__body h2 a:hover { color: var(--red); }
.ev-live__body p { color: var(--muted); }
.ev-live__meta { display: grid; gap: 4px; color: var(--ink-2) !important; }
.ev-live__meta span { display: flex; align-items: center; gap: 8px; }
.ev-live__meta .icon { color: var(--red); }
.ev-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 8px; }
.ev-actions .nota { display: inline-flex; align-items: center; gap: 6px; }

/* Próximos */
.ev-prox { display: grid; gap: 14px; }
.ev-prox__item { display: grid; grid-template-columns: 96px 1fr auto; gap: 24px; align-items: center; padding: 20px 24px 20px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s, box-shadow .25s, transform .25s var(--ease); }
.ev-prox__item:hover { border-color: var(--line-2); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.ev-prox__fecha { display: grid; justify-items: center; padding: 12px 0 10px; border-radius: 12px; background: var(--red); color: #fff; line-height: 1; }
.ev-prox__fecha strong { font-family: var(--display); font-size: 2.3rem; font-weight: 700; }
.ev-prox__fecha span { margin-top: 4px; font-weight: 600; text-transform: capitalize; }
.ev-prox__fecha small { margin-top: 4px; font-size: var(--t-xs); opacity: .8; }
.ev-prox__body small { font-size: var(--t-xs); font-weight: 600; color: var(--red); }
.ev-prox__body h3 { margin: 4px 0 6px; }
.ev-prox__body h3 a:hover { color: var(--red); }
.ev-prox__body p { margin: 0; font-size: var(--t-sm); color: var(--muted); }
.ev-prox__body p .icon { color: var(--red); }
.ev-prox__cta { display: grid; justify-items: end; gap: 10px; }
.ev-vacio { display: flex; align-items: center; gap: 22px; padding: 28px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: 14px; }
.ev-vacio > .icon { flex: none; color: var(--red); }
.ev-vacio h3 { margin-bottom: 4px; }
.ev-vacio p { margin: 0; color: var(--muted); }
.ev-vacio .btn { margin-left: auto; flex: none; }

/* Tarjetas de eventos realizados */
.ev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ev-card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.ev-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.ev-card__img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--dark); }
.ev-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.ev-card:hover .ev-card__img img { transform: scale(1.05); }
.ev-card__img .ev-tag { position: absolute; top: 12px; left: 12px; }
.ev-card__body { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 20px; flex: 1; }
.ev-card__body small { font-size: var(--t-xs); font-weight: 600; color: var(--red); }
.ev-card__body strong { font-family: var(--display); font-size: var(--t-h3); font-weight: 600; line-height: 1.2; color: var(--ink); }
.ev-card__lugar { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-sm); color: var(--muted); }
.ev-card__meta { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; font-size: var(--t-xs); color: var(--muted); }
.ev-card__meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }
.ev-card__meta .icon { margin-right: 2px; }
.ev-card[hidden] { display: none; }

/* Ficha del evento */
.ev-banda { color: #fff; }
.ev-banda--en-curso { background: var(--red); }
.ev-banda--proximo { background: #151a21; }
.ev-banda__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.ev-banda p { margin: 0; }
.ev-info { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
.ev-info__texto p { font-size: var(--t-lead); color: var(--ink-2); }
.ev-cifras { display: flex; flex-wrap: wrap; gap: 16px 48px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.ev-cifras dt { font-family: var(--display); font-size: var(--t-num); font-weight: 700; line-height: 1; color: var(--red); }
.ev-cifras dd { margin-top: 4px; font-size: var(--t-sm); color: var(--muted); }
.ev-ficha { position: sticky; top: calc(var(--nav-h, 75px) + 24px); padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.ev-ficha ul { display: grid; gap: 16px; margin-bottom: 22px; }
.ev-ficha li { display: flex; gap: 14px; align-items: flex-start; }
.ev-ficha li > .icon { flex: none; margin-top: 2px; color: var(--red); }
.ev-ficha strong { display: block; font-size: var(--t-sm); color: var(--ink); }
.ev-ficha li span:not(.ev-tag), .ev-ficha li a { color: var(--ink-2); }
.ev-ficha li a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.ev-ficha li a:hover { color: var(--red); }
.ev-compartir { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.ev-compartir > span { margin-right: auto; font-size: var(--t-sm); font-weight: 600; color: var(--ink) !important; }
.ev-compartir a, .ev-compartir button { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink-2) !important; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.ev-compartir a:hover, .ev-compartir button:hover { background: var(--red); border-color: var(--red); color: #fff !important; }
.ev-compartir button.is-ok { background: #1f9d55; border-color: #1f9d55; color: #fff !important; }

/* Momentos destacados: una grande y el resto alrededor */
.ev-momentos { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 210px; gap: 12px; }
.ev-momentos .ev-foto:first-child { grid-row: span 2; }
.ev-momentos--3 { grid-template-columns: 2fr 1fr; }
.ev-momentos--4 .ev-foto:last-child { grid-column: span 2; }
.ev-foto { position: relative; display: block; overflow: hidden; border-radius: 12px; background: var(--bg-2); cursor: zoom-in; }
.ev-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .3s; }
.ev-foto:hover img { transform: scale(1.04); filter: brightness(1.05); }
.ev-galeria { columns: 4 240px; column-gap: 12px; }
.ev-galeria .ev-foto { margin-bottom: 12px; break-inside: avoid; }
.ev-galeria .ev-foto img { height: auto; }
.ev-galeria .ev-foto[hidden] { display: none; }

/* Videos (YouTube carga solo al tocar) */
.ev-videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #000; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s, transform .6s var(--ease); }
.yt:hover img { opacity: 1; transform: scale(1.03); }
.yt__play { position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .6); transition: transform .25s var(--ease); }
.yt__play .icon { fill: currentColor; margin-left: 4px; }
.yt:hover .yt__play { transform: scale(1.08); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.ev-aviso { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; max-width: 520px; margin-bottom: 22px; padding: 14px 44px 14px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, box-shadow .25s; }
.ev-aviso:hover { border-color: var(--red); box-shadow: var(--shadow); }
.ev-aviso .ev-tag { grid-row: span 2; }
.ev-aviso strong { font-family: var(--display); font-size: var(--t-h4); font-weight: 600; line-height: 1.2; color: var(--ink); }
.ev-aviso small { font-size: var(--t-xs); color: var(--muted); }
.ev-aviso > .icon { position: absolute; right: 14px; top: 50%; translate: 0 -50%; color: var(--red); transition: transform .2s; }
.ev-aviso:hover > .icon { transform: translateX(3px); }

/* Visor de fotos */
.lb { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(7, 9, 12, .94); color: #fff; overflow: hidden; }
.lb::backdrop { background: rgba(7, 9, 12, .6); }
.lb[open] { display: grid; place-items: center; }
.lb__img { max-width: calc(100vw - 140px); max-height: calc(100vh - 110px); object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px -20px #000; user-select: none; touch-action: pan-y; }
.lb__btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; transition: background .2s; }
.lb__btn:hover { background: rgba(255, 255, 255, .16); }
.lb__cerrar { top: 18px; right: 18px; }
.lb__prev { left: 20px; top: 50%; translate: 0 -50%; }
.lb__next { right: 20px; top: 50%; translate: 0 -50%; }
.lb__cont { position: absolute; bottom: 20px; left: 50%; translate: -50% 0; font-size: var(--t-sm); color: rgba(255, 255, 255, .75); }
html.lb-open { overflow: hidden; }

/* ---------- Nosotros ---------- */
.mv { display: grid; gap: 40px; }
.mv__item { padding-top: 22px; border-top: 1px solid var(--line-2); }
.mv__tag { display: block; margin: 0 0 10px; font-size: var(--t-h3); color: var(--ink); }
.mv__item p { margin: 0; font-size: var(--t-lead); line-height: 1.6; color: var(--ink-2); }


/* ---------- Formularios ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 34px; box-shadow: var(--shadow); }
.form-card h2 { font-size: var(--t-h2s); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label, .field legend { display: block; font-size: var(--t-sm); font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field .req { color: var(--red); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: var(--t-body); color: var(--ink); padding: 11px 14px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg); transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(200, 34, 28, .14); }
.field input[type="file"] { padding: 9px; background: var(--bg-2); }
.field .hint { font-size: var(--t-xs); color: var(--muted); margin-top: 4px; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.radios { display: flex; gap: 12px; flex-wrap: wrap; }
.radios label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 10px 14px; margin: 0; cursor: pointer; }
.radios input { width: auto; accent-color: var(--red); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-sm); }
.check input { margin-top: 5px; accent-color: var(--red); }
.check a { color: var(--red); text-decoration: underline; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: var(--radius); padding: 14px 16px; margin-bottom: 20px; display: flex; gap: 10px; }
.alert--ok { background: rgba(22, 163, 74, .1); color: #15803d; border: 1px solid rgba(22, 163, 74, .35); }
[data-theme="dark"] .alert--ok { color: #6ee7a0; }
.alert--err { background: var(--red-soft); color: var(--red-dark); border: 1px solid rgba(200, 34, 28, .35); }
[data-theme="dark"] .alert--err { color: #ff9b95; }
.form-intro { margin: 0 0 24px; font-size: var(--t-sm); color: var(--muted); }
.form-intro .req { color: var(--red); }
.form-legal { font-size: var(--t-xs); color: var(--muted); margin-top: 14px; }
.form-section { font-size: var(--t-h4); margin: 8px 0 0; padding-top: 16px; border-top: 1px solid var(--line); grid-column: 1 / -1; }
.form-section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.captcha { min-height: 78px; }
.captcha--warn { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 4px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; }
.info-list li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-list li:first-child { padding-top: 0; }
.info-list strong { display: block; color: var(--ink); }
.info-list a, .info-list span { color: var(--ink-2); }
.info-list a:hover { color: var(--red); }

.prose { max-width: 760px; }
.prose h2 { font-size: var(--t-h2s); margin-top: 2em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { list-style: disc; padding-left: 1.25em; margin-bottom: 1em; }
.prose--sm { margin-top: 24px; }
.prose--sm p { font-size: var(--t-sm); }
.nota { font-size: var(--t-sm); color: var(--muted); }
.legal-box { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; font-size: var(--t-sm); }
.legal-box dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.legal-box dt { font-weight: 600; color: var(--ink); }

.jobs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.job { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: var(--surface); transition: transform .3s, box-shadow .3s; }
.job:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.job small { color: var(--red); font-weight: 600; font-size: var(--t-xs); }
.job h3 { margin: 6px 0; }
.job p { font-size: var(--t-sm); color: var(--muted); margin: 0; }

/* ---------- Pie ---------- */
.footer { background: var(--dark); color: #8d95a0; font-size: var(--t-sm); padding-top: 72px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; }
.brand--light { color: #fff; margin-bottom: 16px; }
.brand--light img { width: 40px; }
.footer__about p { max-width: 340px; }
.footer__h { color: #fff; font-family: var(--display); font-size: var(--t-h4); font-weight: 600; margin-bottom: 14px; }
.footer ul li { padding: 5px 0; }
.footer a:hover { color: #fff; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact .icon { margin-top: 4px; color: #5f6873; }
.social { display: flex; gap: 8px; margin-top: 20px; }
.social a { width: 40px; height: 40px; border-radius: 8px; border: 1px solid #262c34; display: grid; place-items: center; color: #c4cad2; transition: background .2s, color .2s, border-color .2s; }
.social a:hover { background: var(--red); color: #fff; border-color: var(--red); }
.libro { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; border: 1px solid #262c34; border-radius: 8px; padding: 10px 14px; color: #fff; font-weight: 500; }
.libro:hover { border-color: #fff; }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #1d232a; padding-top: 20px; padding-bottom: 24px; font-size: var(--t-xs); color: #8d95a0; }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #1f9d55; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); transition: transform .15s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; animation: ping-wa 2.8s infinite; }
@keyframes ping-wa { 0% { box-shadow: 0 0 0 0 rgba(31, 157, 85, .45); } 70%, 100% { box-shadow: 0 0 0 16px rgba(31, 157, 85, 0); } }

/* ---------- Buscador rápido ---------- */
.search { border: 0; padding: 0; background: transparent; width: calc(100% - 32px); max-width: 640px; margin: 10vh auto auto; overflow: visible; color: var(--ink); }
.search::backdrop { background: rgba(7, 9, 12, .6); backdrop-filter: blur(4px); }
.search[open] .search__box { animation: aparecer .22s ease-out; }
.search__box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55); overflow: hidden; }
.search__bar { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.search__bar input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: var(--t-lead); color: var(--ink); padding: 8px 0; }
.search__bar button { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.search__bar button:hover { background: var(--bg-2); color: var(--ink); }
.search__results { max-height: min(56vh, 430px); overflow: auto; padding: 8px; }
.search__results a { display: flex; align-items: center; gap: 14px; padding: 9px 10px; border-radius: 10px; }
.search__results a:hover, .search__results a:focus-visible { background: var(--bg-2); outline: 0; }
.search__results img { width: 48px; height: 48px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: var(--plate); flex: none; }
.search__results strong { display: block; color: var(--ink); font-weight: 600; }
.search__results small { color: var(--muted); font-size: var(--t-xs); }
.search__empty { padding: 22px; text-align: center; color: var(--muted); }
.search__empty a { color: var(--red); font-weight: 600; }
.search__all { display: block; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--bg-2); color: var(--red); font-weight: 600; }

/* ---------- Aparición al hacer scroll (solo con JS) ---------- */
.js .reveal { opacity: 0; translate: 0 26px;
  transition-property: opacity, translate, transform, box-shadow, border-color, background-color;
  transition-duration: .8s, .8s, .3s, .3s, .3s, .3s;
  transition-timing-function: var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms), calc(var(--d, 0) * 90ms), 0s, 0s, 0s, 0s; }
.js .reveal.is-in { opacity: 1; translate: none; }
.cat, .product { transition: transform .3s, box-shadow .3s, border-color .3s, background-color .3s; }

/* ---------- Responsive ---------- */
/* Con 6 enlaces en el menú, el buscador va solo con ícono en todas las anchuras */
.tool:not(.tool--icon) span { display: none; }
.tool:not(.tool--icon) { width: 42px; padding: 0; justify-content: center; }
@media (max-width: 1180px) {
  .menu__link { padding: 8px 11px; }
}
/* Solo escritorio angosto: el menú completo no entra con el nombre; en celular el menú va aparte y el nombre sí cabe */
@media (min-width: 901px) and (max-width: 1100px) {
  .nav__in .brand .brand__txt { display: none; } /* gana a la regla de la animación de marca del final */
  .nav__tools .theme-toggle { display: none; }
  .menu__link { padding: 8px 10px; }
}
@media (max-width: 1080px) {
  .cats { grid-template-columns: repeat(3, 1fr); }
  .products { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .jobs { grid-template-columns: repeat(2, 1fr); }
  .why { gap: 48px; }
}
@media (max-width: 900px) {
  .topbar > .container > span:first-child { display: none; }
  .topbar__in { justify-content: center; }
  .nav__toggle { display: grid; }
  .nav__cta { display: none; }
  .menu, .mega { display: none; }
  .mmenu { display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 120; overflow-y: auto; overscroll-behavior: contain; background: radial-gradient(520px 380px at 100% 0%, rgba(200, 34, 28, .38), transparent 62%), var(--dark); color: #c4cad2; visibility: hidden; clip-path: circle(0 at calc(100% - 38px) 38px); transition: clip-path .6s var(--ease), visibility 0s .6s; }
  .mmenu.is-open { visibility: visible; clip-path: circle(160% at calc(100% - 38px) 38px); transition: clip-path .6s var(--ease), visibility 0s; }
  .mmenu__top { display: flex; justify-content: space-between; align-items: center; min-height: 72px; padding: 0 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .mmenu__top .brand { margin: 0; }
  .mmenu__close { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px; background: none; color: #fff; cursor: pointer; }
  .mmenu__body { flex: 1; padding: 20px 16px 12px; }
  .mmenu__search { width: 100%; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; margin-bottom: 14px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; background: rgba(255, 255, 255, .04); color: #8d95a0; font: inherit; cursor: pointer; }
  .mmenu__links a { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-family: var(--display); font-size: var(--t-h2s); font-weight: 600; line-height: 1.1; color: #fff; opacity: 0; transform: translateX(-18px); transition: opacity .4s, transform .5s var(--ease), color .15s; }
  .mmenu.is-open .mmenu__links a { opacity: 1; transform: none; transition-delay: calc(.15s + var(--n) * .06s); }
  .mmenu__links .icon { margin-left: auto; color: #5f6873; }
  .mmenu__links a[aria-current="page"] { color: #ff6b63; }
  .mmenu__label { margin: 24px 0 10px; font-weight: 600; font-size: var(--t-sm); color: #8d95a0; }
  .mmenu__cats { display: flex; gap: 10px; margin: 0 -16px; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; }
  .mmenu__cats::-webkit-scrollbar { display: none; }
  .mmenu__cats a { flex: none; width: 118px; display: flex; flex-direction: column; gap: 8px; font-size: var(--t-sm); line-height: 1.25; color: #c4cad2; }
  .mmenu__cats span { display: block; padding: 8px; border-radius: 10px; background: #fff; }
  .mmenu__cats img { aspect-ratio: 1; object-fit: contain; }
  .mmenu__foot { display: grid; gap: 12px; padding: 16px; border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(0, 0, 0, .25); }
  .mmenu__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .mmenu__wa { background: #1f9d55; color: #fff; }
  .mmenu__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: var(--t-sm); color: #8d95a0; }
  .mmenu__row > span { display: inline-flex; align-items: center; gap: 6px; }
  .mmenu__theme { padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: none; color: #c4cad2; font: 500 var(--t-sm) var(--font); cursor: pointer; }
  .mmenu__theme span { display: inline-flex; align-items: center; gap: 6px; }
  .hero__grid, .split, .contact-grid, .cta, .why, .phead__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; }
  .ftth__panel { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .perks, .perfiles { grid-template-columns: 1fr 1fr; }
  .ev-live, .ev-info { grid-template-columns: 1fr; }
  .ev-live__img { min-height: 240px; aspect-ratio: 16 / 9; }
  .ev-live__body { padding: 28px; }
  .ev-grid { grid-template-columns: 1fr 1fr; }
  .ev-ficha { position: static; }
  .ev-momentos { grid-auto-rows: 160px; }
  .steps--3 { grid-template-columns: 1fr; }
  .hero__tile:nth-of-type(2n) { translate: none; }
  .hero__seal { position: relative; left: auto; bottom: auto; grid-column: 1 / -1; margin-top: 4px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 24px 20px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .22); }
  .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .section { padding: 76px 0; }
  .cta { padding: 36px; }
  .phead { padding: 48px 0 56px; }
  .phead__tiles { max-width: 460px; }
  .phead__photo { max-height: 300px; }
}
@media (max-width: 640px) {
  :root { --t-body: 1rem; }
  .container { padding-left: 16px; padding-right: 16px; }
  .topbar__right a[href^="mailto"] { display: none; }
  .brand__txt { font-size: 1.15rem; }
  .cats, .products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 22px; }
  .footer__grid { grid-template-columns: 1fr; }
  .jobs, .steps { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; padding: 24px; }
  .product__actions { flex-direction: column; }
  .cat__body, .product__body { padding: 14px; }
  .hero { padding: 48px 0 80px; }
  .catalog-group__head { flex-direction: column; align-items: start; }
  .toolbar { position: static; }
  .finder__count { display: none; }
  .hero__search .btn { padding: 10px 14px; }
  .marquee li { width: 150px; height: 72px; padding: 14px 18px; }
  .phead__datos { gap: 14px 28px; }
  .nav__tools { gap: 6px; }
  .nav.is-compact .nav__in { padding: 0 6px 0 12px; }
  .nav__tools .theme-toggle { display: none; }
  .cats > :last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
  .cats > :last-child:nth-child(odd) .cat__img { width: 42%; flex: none; border-bottom: 0; border-right: 1px solid var(--line); }
  .hero__tags a { padding: 7px 14px; }
  .ftth__scroll { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .ftth__track { grid-template-columns: repeat(var(--n), 108px); min-width: 0; width: max-content; }
  .ftth__dot { width: 76px; height: 76px; }
  .ftth__line { top: 38px; left: 54px; right: 54px; }
  .ftth__prods { gap: 10px; }
  .ftth__prods strong { font-size: var(--t-sm); }
  .ftth__panel { padding: 20px; margin-top: 24px; }
  .perks, .perfiles { grid-template-columns: 1fr; }
  .ev-grid, .ev-videos { grid-template-columns: 1fr; }
  .ev-prox__item { grid-template-columns: 72px 1fr; gap: 16px; padding: 16px; }
  .ev-prox__fecha strong { font-size: 1.8rem; }
  .ev-prox__cta { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
  .ev-vacio { flex-direction: column; align-items: flex-start; }
  .ev-vacio .btn { margin-left: 0; }
  .ev-banda__in { flex-direction: column; align-items: flex-start; }
  .ev-momentos, .ev-momentos--3 { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; gap: 8px; }
  .ev-momentos .ev-foto:first-child { grid-column: span 2; grid-row: span 2; }
  .ev-momentos--4 .ev-foto:last-child { grid-column: auto; }
  .ev-galeria { columns: 2; column-gap: 8px; }
  .ev-galeria .ev-foto { margin-bottom: 8px; }
  .lb__img { max-width: 100vw; max-height: calc(100vh - 140px); border-radius: 0; }
  .lb__prev, .lb__next { top: auto; bottom: 14px; translate: none; width: 46px; height: 46px; }
  .lb__cont { bottom: 28px; }
  .perk { padding: 22px; }
  .ftth__info h3 span { display: block; margin: 4px 0 0; }
  .ftth__links .btn { width: 100%; }
  .ftth__prods { gap: 8px; }
  .ftth__prods a { padding: 6px 6px 10px; }
  .ftth__prods img { padding: 2px; }
  .footer__legal { padding-bottom: 92px; } /* que el botón flotante de WhatsApp no tape el RUC */
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .fibras__pulso { display: none; }
  .mmenu .mmenu__links a { opacity: 1; transform: none; }
  .js .reveal { opacity: 1; translate: none; }
}

/* ---------- Holograma de fibra (encabezados) ---------- */
.holo { position: relative; height: 380px; display: grid; place-items: center; perspective: 900px; }
.holo__stage { position: relative; z-index: 2; width: 270px; aspect-ratio: 1; margin-bottom: 40px; transform: rotateX(8deg); animation: holo-flotar 6s ease-in-out infinite; }
.holo__svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 3px rgba(255, 70, 60, .95)) drop-shadow(0 0 16px rgba(224, 51, 44, .6)); animation: holo-parpadeo 7s infinite; }
.h-base, .h-dots, .h-pulse { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.h-base { stroke: #ff3b33; stroke-width: .2; opacity: .8; stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: h-trazar 2.4s var(--ease) forwards; animation-delay: calc(.2s + var(--i) * .18s); }
.h-dots { stroke: #ffb3ad; stroke-width: .26; stroke-dasharray: 0 .62; opacity: 0; animation: h-aparecer .8s 1.8s forwards, h-fluir 5s linear infinite; }
.h-pulse { stroke: #fff; stroke-width: .38; stroke-dasharray: 55 1000; stroke-dashoffset: 55; animation: h-pulso 3.4s linear infinite both; animation-delay: calc(2.4s + var(--i) * .55s); }
@keyframes h-trazar { to { stroke-dashoffset: 0; } }
@keyframes h-aparecer { to { opacity: .9; } }
@keyframes h-fluir { to { stroke-dashoffset: -6.2; } }
@keyframes h-pulso { from { stroke-dashoffset: 55; } to { stroke-dashoffset: -1000; } }
@keyframes holo-flotar { 50% { transform: rotateX(8deg) translateY(-10px); } }
@keyframes holo-parpadeo { 0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; } 20% { opacity: .55; } 63% { opacity: .75; } }

/* Líneas de escaneo y barrido de luz */
.holo__scan { position: absolute; inset: -12%; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(255, 90, 80, .1) 0 1px, transparent 1px 4px); -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent); mix-blend-mode: screen; overflow: hidden; }
.holo__scan::after { content: ""; position: absolute; left: 0; right: 0; height: 22%; background: linear-gradient(180deg, transparent, rgba(255, 110, 100, .28), transparent); animation: holo-barrido 3.6s linear infinite; }
@keyframes holo-barrido { from { top: -25%; } to { top: 105%; } }

/* Haz de luz desde el proyector */
.holo__beam { position: absolute; z-index: 1; left: 50%; bottom: 34px; width: 360px; height: 330px; translate: -50% 0; background: linear-gradient(0deg, rgba(224, 51, 44, .45), rgba(224, 51, 44, .08) 70%, transparent); clip-path: polygon(41% 100%, 59% 100%, 100% 0, 0 0); filter: blur(3px); animation: holo-haz 4s ease-in-out infinite; }
@keyframes holo-haz { 50% { opacity: .6; } }

/* Emisor en la base: anillos que se expanden */
.holo__base { position: absolute; z-index: 1; left: 50%; bottom: 18px; width: 200px; height: 40px; translate: -50% 0; }
.holo__base::before { content: ""; position: absolute; inset: 30% 30%; border-radius: 50%; background: #ff4a42; filter: blur(6px); box-shadow: 0 0 30px 8px rgba(224, 51, 44, .7); }
.holo__base i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 90, 80, .75); animation: holo-anillo 3s ease-out infinite; }
.holo__base i:nth-child(2) { animation-delay: 1s; }
.holo__base i:nth-child(3) { animation-delay: 2s; }
@keyframes holo-anillo { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }

/* Partículas que suben */
.holo__particles { position: absolute; z-index: 3; inset: 40px 20% 40px; pointer-events: none; }
.holo__particles i { position: absolute; bottom: 0; width: 3px; height: 3px; border-radius: 50%; background: #ff8a80; box-shadow: 0 0 6px 1px rgba(255, 90, 80, .9); opacity: 0; animation: holo-particula 4.2s linear infinite; }
@keyframes holo-particula { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-280px); opacity: 0; } }

@media (max-width: 900px) {
  .holo { height: 300px; }
  .holo__stage { width: 200px; margin-bottom: 30px; }
  .holo__beam { width: 280px; height: 260px; }
}
@media (max-width: 640px) {
  .holo { height: 210px; margin-top: -8px; overflow: hidden; }
  .holo__stage { width: 130px; margin-bottom: 26px; }
  .holo__beam { width: 190px; height: 180px; bottom: 26px; }
  .holo__base { width: 140px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .h-base { stroke-dashoffset: 0; }
  .h-dots { opacity: .9; }
  .h-pulse, .holo__particles, .holo__scan::after { display: none; }
}

/* ---------- Marca: aparición discreta del logo y el nombre al cargar ---------- */
.nav .brand img { animation: marca-logo .5s var(--ease) both; }
.nav .brand__txt { display: inline-block; white-space: nowrap; animation: marca-nombre .6s .12s var(--ease) both; }
.pre .nav .brand img, .pre .nav .brand__txt { animation-play-state: paused; }
@keyframes marca-logo { from { opacity: 0; } }
@keyframes marca-nombre { from { opacity: 0; transform: translateX(-6px); } }
