/* ==========================================================================
   Walogy — web pública
   Colores y tipografías de los catálogos impresos; composición inspirada en
   las webs de producto broadcast: portada a pantalla completa, cifras grandes,
   titulares cortos terminados en punto, bloques que alternan imagen y texto.
   ========================================================================== */

/* Fuentes alojadas en el propio servidor (sin peticiones a Google). Licencia: assets/fonts/OFL.txt */
@font-face { font-family: 'Josefin Sans'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/JosefinSans-Light.woff2') format('woff2'); }
@font-face { font-family: 'Josefin Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/JosefinSans-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Josefin Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/JosefinSans-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Josefin Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/JosefinSans-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Poiret One'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/PoiretOne-Regular.woff2') format('woff2'); }

:root {
    --ink: #0f1011;
    --ink-2: #131416;
    --panel: #17191b;
    --panel-2: #1e2124;
    --line: #2a2d30;
    --line-soft: #202326;
    --text: #f2f2f2;
    --soft: #c9ccd0;
    --muted: #8f949a;
    --lime: #aad400;
    --lime-hover: #c6ec2e;
    --lime-glow: rgba(170, 212, 0, .16);
    --display: 'Poiret One', 'Josefin Sans', sans-serif;
    --body: 'Josefin Sans', system-ui, sans-serif;
    --wrap: 1240px;
    --gutter: clamp(16px, 4vw, 40px);
    --head-h: 76px;
    --radius: 18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 56px); }
body { margin: 0; background: var(--ink); color: var(--soft); font-family: var(--body); font-weight: 300; font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--lime); text-decoration: none; }
a:hover { color: var(--lime-hover); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { color: #fff; margin: 0; font-weight: 400; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--lime); color: var(--ink); padding: 8px 14px; z-index: 60; }
a.skip:focus { position: fixed; }

.eyebrow { display: block; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); margin-bottom: 14px; }

/* ----- Botones y enlaces ----- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--body); font-weight: 600; font-size: 16px; line-height: 1.2; padding: 14px 26px; border-radius: 999px; border: 1px solid var(--lime); background: var(--lime); color: var(--ink); transition: background .2s, border-color .2s, color .2s, transform .2s; }
.btn:hover { background: var(--lime-hover); border-color: var(--lime-hover); color: var(--ink); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .02); color: var(--text); border-color: #3a3e42; }
.btn-ghost:hover { background: rgba(255, 255, 255, .05); border-color: var(--lime); color: #fff; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.link-arrow { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; color: var(--lime); }
.link-arrow span { transition: transform .2s; }
.link-arrow:hover span { transform: translateX(4px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 15px; font-weight: 400; color: var(--text); white-space: nowrap; transition: border-color .2s, color .2s; }
.chips a:hover { border-color: var(--lime); color: #fff; }

.hidden-tag { display: inline-block; vertical-align: middle; font-family: var(--body); font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); background: #e0a63a; border-radius: 4px; padding: 2px 7px; margin-left: 8px; }

/* ----- Cabecera ----- */
.site-head { position: sticky; top: 0; z-index: 30; height: var(--head-h); background: rgba(15, 16, 17, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); transition: background .3s, border-color .3s; }
.is-home .site-head { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.is-home .site-head.scrolled, .is-home .site-head.nav-open { background: rgba(15, 16, 17, .9); border-bottom-color: var(--line-soft); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.site-head .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-block; line-height: 0; flex-shrink: 0; }
.logo img { height: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 34px); font-size: 16px; font-weight: 400; }
.site-nav a { color: var(--soft); padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--lime); }
.site-nav .nav-cta { border: 1px solid #3a3e42; border-radius: 999px; padding: 9px 18px; color: #fff; }
.site-nav .nav-cta:hover, .site-nav .nav-cta[aria-current="page"] { border-color: var(--lime); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 0; cursor: pointer; color: #fff; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; margin: 0 auto; position: relative; transition: transform .25s, background .25s; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }
.nav-open .nav-toggle .bars { background: transparent; }
.nav-open .nav-toggle .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ----- Fondo con halo (portada, fichas) ----- */
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-bg::before { content: ""; position: absolute; width: 900px; height: 900px; right: -180px; top: -160px; border-radius: 50%; background: radial-gradient(circle, var(--lime-glow), transparent 62%); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%); }

/* ----- La lente: producto sobre el anillo verde ----- */
.lens { position: relative; width: min(100%, 560px); aspect-ratio: 1; margin-inline: auto; display: flex; align-items: center; justify-content: center; }
.lens::before { content: ""; position: absolute; inset: 7%; border-radius: 50%; border: 1.5px solid var(--lime); opacity: .55; box-shadow: 0 0 60px var(--lime-glow), inset 0 0 60px rgba(170, 212, 0, .06); }
.lens::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle at 50% 42%, #24272b, var(--ink-2) 72%); }
.lens img { position: relative; z-index: 1; width: 84%; height: 84%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
a:hover > .lens img, .lens:hover img { transform: scale(1.03); }
.lens .lens-name { position: relative; z-index: 1; text-align: center; padding: 22%; font-family: var(--display); font-size: clamp(30px, 5vw, 52px); line-height: 1; color: var(--muted); }
.lens.small { width: 150px; }
.lens.small .lens-name { font-size: 20px; padding: 18%; }

/* ----- Portada ----- */
.hero { position: relative; min-height: min(100vh, 980px); min-height: min(100svh, 980px); display: flex; flex-direction: column; justify-content: center; padding: calc(var(--head-h) + 24px) 0 40px; overflow: hidden; }
.hero > .wrap { width: 100%; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(24px, 4vw, 64px); align-items: center; width: 100%; }
.hero h1 { font-family: var(--display); font-size: clamp(48px, 7vw, 96px); line-height: .96; letter-spacing: -1px; }
.hero .intro { margin: 26px 0 34px; font-size: clamp(18px, 1.6vw, 21px); max-width: 32em; color: var(--soft); }
.hero-product { display: block; }
.hero-product .lens { width: min(100%, 640px); }

.stats { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); }
.stats li { padding: 22px 16px 4px 0; display: flex; flex-direction: column; gap: 4px; }
.stats li + li { padding-left: 18px; border-left: 1px solid var(--line-soft); }
.stats strong { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 3.6vw, 52px); line-height: 1; color: #fff; }
.stats span { font-size: 14px; color: var(--muted); letter-spacing: .02em; }

/* ----- Secciones ----- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding-top: clamp(40px, 6vw, 72px); }
.section-panel { background: var(--ink-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { margin-bottom: clamp(32px, 4vw, 52px); max-width: 760px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--display); font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -.5px; }
.section-head p:not(.eyebrow) { margin-top: 16px; font-size: 18px; }

/* Ecosistema */
.eco { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.eco-card { position: relative; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--panel), var(--ink-2)); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 30px 28px 26px; color: var(--soft); overflow: hidden; transition: border-color .3s, transform .3s; }
.eco-card:hover { border-color: rgba(170, 212, 0, .5); transform: translateY(-4px); color: var(--soft); }
.eco-label { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.eco-card h3 { font-family: var(--display); font-size: clamp(32px, 3.2vw, 42px); line-height: 1.05; margin: 8px 0 10px; }
.eco-card p { font-size: 16px; min-height: 3.2em; }
.eco-img { position: relative; aspect-ratio: 4 / 3; margin: 18px -8px 14px; display: flex; align-items: center; justify-content: center; }
.eco-img::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--lime-glow), transparent 65%); }
.eco-img img { position: relative; max-height: 92%; max-width: 82%; width: auto; object-fit: contain; filter: drop-shadow(0 20px 28px rgba(0, 0, 0, .5)); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.eco-card:hover .eco-img img { transform: scale(1.05); }
.eco-more { margin-top: auto; font-weight: 600; color: var(--lime); }

/* Escaparate de series */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: center; padding: clamp(28px, 4vw, 48px) 0; }
.feature-row + .feature-row { border-top: 1px solid var(--line-soft); }
.feature-row.flip .feature-media { order: 2; }
.feature-media { display: block; }
.feature-media .lens { width: min(100%, 500px); }
.feature-copy h3 { font-family: var(--display); font-size: clamp(44px, 5.6vw, 76px); line-height: 1; letter-spacing: -.5px; }
.feature-copy h3 a { color: #fff; }
.feature-copy h3 a:hover { color: var(--lime); }
.feature-copy .desc { margin: 18px 0 22px; font-size: 18px; max-width: 34em; }
.feature-copy .chips { margin-bottom: 24px; }

/* Conectividad */
.io { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.io .section-head { margin-bottom: 0; }
.io-groups { display: grid; gap: 28px; }
.io-group h3 { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.io-group ul { display: flex; flex-wrap: wrap; gap: 10px; }
.io-group li { font-size: 17px; font-weight: 600; color: #fff; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 12px 18px; }

/* Sectores */
.sectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sectors li { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 30px 28px; transition: border-color .3s; }
.sectors li:hover { border-color: rgba(170, 212, 0, .4); }
.sectors .icon { color: var(--lime); margin-bottom: 18px; }
.sectors h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.sectors p { font-size: 16px; }

/* Instalaciones reales */
.field-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.field-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--panel); }
.field-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.field-card:hover img { transform: scale(1.04); }
.field-card figcaption { position: absolute; inset: auto 0 0 0; padding: 60px 22px 20px; background: linear-gradient(transparent, rgba(10, 11, 12, .92)); display: flex; flex-direction: column; gap: 4px; }
.field-card figcaption .eyebrow { margin: 0; }
.field-card strong { color: #fff; font-weight: 600; font-size: 18px; line-height: 1.3; }
.field-text { font-size: 15px; }

/* Llamada final */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--panel), var(--ink-2)); border: 1px solid var(--line-soft); border-radius: 24px; padding: clamp(32px, 5vw, 64px); display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-band::before { content: ""; position: absolute; right: -120px; top: 50%; width: 420px; aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; border: 1.5px solid var(--lime); opacity: .35; box-shadow: 0 0 80px var(--lime-glow); }
.cta-band > * { position: relative; }
.cta-band h2 { font-family: var(--display); font-size: clamp(34px, 4.4vw, 56px); line-height: 1.02; }
.cta-band p { margin-top: 10px; font-size: 18px; }
.home-dist { margin-top: clamp(40px, 5vw, 64px); }

/* Distribuidor */
.dist { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.dist-item { border-left: 2px solid var(--lime); padding: 4px 0 4px 24px; }
.dist-item .eyebrow { margin-bottom: 6px; }
.dist-item h3 { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.dist-item p { font-size: 16px; }
.dist-contact { margin-top: 10px; display: flex; flex-direction: column; gap: 2px; }

/* ----- Cabecera de páginas interiores ----- */
.page-hero { position: relative; padding: clamp(48px, 8vw, 104px) 0 clamp(32px, 4vw, 56px); }
.page-hero h1 { font-family: var(--display); font-size: clamp(54px, 8vw, 110px); line-height: .95; letter-spacing: -1px; }
.page-hero .sub { font-size: 20px; color: var(--text); margin-top: 14px; }
.chips-nav { margin-top: 28px; }

/* Gama: tarjetas */
.range-cat { padding: clamp(32px, 5vw, 64px) 0; border-top: 1px solid var(--line-soft); }
.range-cat .section-head { margin-bottom: 28px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; transition: border-color .3s, transform .3s; }
.card:hover { border-color: rgba(170, 212, 0, .45); transform: translateY(-3px); }
.card-media { position: relative; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; padding: 28px; background: radial-gradient(circle at 50% 55%, #23262a, var(--ink-2) 70%); }
.card-media::before { content: ""; position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(170, 212, 0, .35); }
.card-media img { position: relative; max-height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .5)); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-media img { transform: scale(1.05); }
.card-media .lens-name { position: relative; font-family: var(--display); font-size: 34px; color: var(--muted); text-align: center; }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-family: var(--display); font-size: 34px; line-height: 1.05; }
.card-body h3 a { color: #fff; }
.card-body h3 a:hover { color: var(--lime); }
.card-body .sub { color: var(--soft); font-size: 16px; }
.card-body .chips { margin-top: 8px; }
.card-body .chips a { font-size: 14px; padding: 5px 12px; }
.card-body .link-arrow { margin-top: auto; padding-top: 8px; }

/* ----- Ficha de producto y serie ----- */
.crumbs { font-size: 15px; color: var(--muted); padding-top: 24px; position: relative; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--lime); }
.product-hero { position: relative; padding-bottom: clamp(32px, 4vw, 56px); overflow: hidden; }
.product-hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(16px, 3vw, 32px); }
.product-hero h1 { font-family: var(--display); font-size: clamp(60px, 9vw, 124px); line-height: .92; letter-spacing: -1.5px; }
.product-hero .sub { font-size: clamp(19px, 1.8vw, 22px); color: var(--text); margin-top: 16px; max-width: 30em; }
.product-hero .desc { margin-top: 16px; max-width: 36em; font-size: 18px; }
.product-hero .actions { margin-top: 30px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tags:empty { display: none; }
.status { display: inline-block; font-size: 14px; font-weight: 600; border: 1px solid var(--lime); color: var(--lime); border-radius: 999px; padding: 3px 12px; }
.status.legacy { border-color: var(--muted); color: var(--muted); }

.highlights { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); }
.highlights li { padding: 20px 18px 4px 0; color: var(--text); font-weight: 400; font-size: 16px; line-height: 1.35; }
.highlights li + li { padding-left: 18px; border-left: 1px solid var(--line-soft); }
.highlights li::before { content: ""; display: block; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--lime); margin-bottom: 12px; }

.subnav { position: sticky; top: var(--head-h); z-index: 20; background: rgba(19, 20, 22, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.subnav .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 52px; }
.subnav strong { font-family: var(--display); font-weight: 400; font-size: 22px; color: #fff; }
.subnav div { display: flex; gap: clamp(14px, 2.4vw, 28px); font-size: 15px; overflow-x: auto; }
.subnav a { color: var(--soft); white-space: nowrap; }
.subnav a:hover { color: var(--lime); }

.lead { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.4; color: var(--text); max-width: 34em; margin-bottom: clamp(40px, 5vw, 64px); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.feature { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 28px 28px 30px; }
.feature-num { display: block; font-family: var(--display); font-size: 28px; color: var(--lime); margin-bottom: 14px; }
.feature h3 { font-size: 21px; font-weight: 600; margin-bottom: 8px; line-height: 1.3; }
.feature p { font-size: 16px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery a { position: relative; display: block; background: radial-gradient(circle at 50% 50%, #22252a, var(--panel) 75%); border: 1px solid var(--line-soft); border-radius: 14px; aspect-ratio: 4 / 3; overflow: hidden; transition: border-color .3s; }
.gallery a:hover { border-color: rgba(170, 212, 0, .45); }
.gallery img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.gallery span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; font-size: 13px; color: var(--soft); background: linear-gradient(transparent, rgba(15, 16, 17, .9)); opacity: 0; transition: opacity .25s; }
.gallery a:hover span, .gallery a:focus-visible span { opacity: 1; }

/* Especificaciones */
.spec-group { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 30px 0; border-top: 1px solid var(--line); }
.spec-group h3 { font-family: var(--display); font-size: 30px; line-height: 1.1; }
.spec-group dl { margin: 0; display: grid; grid-template-columns: minmax(150px, 34%) 1fr; }
.spec-group dt, .spec-group dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
.spec-group dt { color: var(--muted); padding-right: 20px; font-weight: 400; }
.spec-group dd { color: var(--text); }
.spec-group dl > :nth-last-child(-n+2) { border-bottom: 0; }
.fineprint { margin-top: 20px; font-size: 14px; color: var(--muted); }

.downloads li { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.downloads li:first-child { border-top: 1px solid var(--line); }
.downloads a { font-weight: 600; }
.downloads .meta { color: var(--muted); font-size: 15px; }

/* Tabla comparativa */
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 14px; }
.compare { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.compare thead th { font-family: var(--display); font-weight: 400; font-size: 26px; color: #fff; background: var(--panel); border-bottom: 2px solid var(--lime); }
.compare thead th a { color: #fff; }
.compare thead th a:hover { color: var(--lime); }
.compare tbody th { color: var(--muted); font-weight: 400; width: 200px; }
.compare td { color: var(--text); }
.compare tbody tr:hover > * { background: rgba(255, 255, 255, .02); }
.compare tr:last-child > * { border-bottom: 0; }

/* ----- Pie ----- */
.site-foot { border-top: 1px solid var(--line-soft); background: var(--ink-2); padding: 56px 0 28px; margin-top: clamp(40px, 6vw, 72px); font-size: 15px; color: var(--muted); }
.site-foot .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot-brand p { margin-top: 16px; max-width: 26em; }
.site-foot nav { display: flex; flex-direction: column; gap: 8px; }
.site-foot h2 { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text); margin-bottom: 6px; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--lime); }
.site-foot .foot-bottom { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: 14px; }
.site-foot .foot-legal { flex-direction: row; gap: 20px; }

/* ----- Páginas legales ----- */
.legal { max-width: 760px; padding-bottom: 32px; }
.legal h2 { font-family: var(--display); font-size: clamp(28px, 3vw, 36px); line-height: 1.1; margin: 44px 0 14px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { margin-bottom: 14px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal-data { display: grid; grid-template-columns: 180px 1fr; margin: 0 0 18px; border-top: 1px solid var(--line-soft); }
.legal-data dt, .legal-data dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.legal-data dt { color: var(--muted); }
.legal-data dd { color: var(--text); }
.legal-table { min-width: 560px; }
.legal-table thead th { font-family: var(--body); font-size: 15px; font-weight: 600; }
.legal-table tbody th { color: var(--text); font-family: monospace; font-size: 14px; }
.legal-nav { margin: 24px 0 8px; }
.legal-owner { margin-top: 56px; padding-top: 8px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--muted); }
.legal-owner h2 { font-family: var(--body); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); margin: 24px 0 10px; }
.legal-owner .legal-data { grid-template-columns: 150px 1fr; }
.legal-owner .legal-data dt, .legal-owner .legal-data dd { padding: 6px 0; font-size: 14px; }
.legal-owner .legal-data dd { color: var(--soft); }
.error-page { min-height: 52vh; }
.is-home .site-foot { margin-top: 0; }

/* ----- Vista previa (solo con sesión de admin) ----- */
.preview-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #e0a63a; color: var(--ink); font-size: 14px; font-weight: 600; text-align: center; padding: 8px 16px; }
.preview-bar a { color: var(--ink); text-decoration: underline; }

/* ----- Aparición al hacer scroll ----- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ----- Tablet ----- */
@media (min-width: 600px) and (max-width: 1000px) {
    .eco { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .eco-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .eco-card:last-child:nth-child(odd) .eco-img { aspect-ratio: 16 / 7; }
}
@media (max-width: 1080px) {
    .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .stats li:nth-child(4) { padding-left: 0; border-left: 0; }
    .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .io { grid-template-columns: 1fr; }
}

/* ----- Móvil ----- */
@media (max-width: 860px) {
    :root { --head-h: 64px; }
    .nav-toggle { display: block; }
    .site-nav { position: fixed; top: var(--head-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; background: rgba(15, 16, 17, .97); border-bottom: 1px solid var(--line); font-size: 19px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; }
    .nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
    .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
    .site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--line-soft); color: var(--lime); }
    .site-nav .nav-cta { margin-top: 16px; text-align: center; border: 1px solid var(--lime); border-radius: 999px; }

    .hero { min-height: 0; padding-top: calc(var(--head-h) + 16px); }
    .hero-grid, .product-hero-grid { grid-template-columns: 1fr; }
    .hero-product { order: -1; }
    .hero-product .lens { width: min(88%, 420px); }
    .product-figure { order: -1; }
    .product-figure .lens { width: min(88%, 400px); }
    .feature-row, .feature-row.flip { grid-template-columns: 1fr; }
    .feature-row.flip .feature-media { order: 0; }
    .feature-media .lens { width: min(80%, 380px); }
    .eco-card p { min-height: 0; }
    .spec-group { grid-template-columns: 1fr; gap: 12px; }
    .site-foot .wrap { grid-template-columns: 1fr 1fr; }
    .foot-brand { grid-column: 1 / -1; }
    .subnav strong { display: none; }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats li, .stats li + li { padding: 16px 12px 4px 0; border-left: 0; }
    .stats li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line-soft); }
    .sectors { grid-template-columns: 1fr; }
    .highlights { grid-template-columns: 1fr; }
    .highlights li, .highlights li + li { padding: 14px 0 0; border-left: 0; display: flex; gap: 12px; align-items: baseline; }
    .highlights li::before { flex-shrink: 0; margin: 0; }
    .spec-group dl { grid-template-columns: 1fr; }
    .spec-group dt { border-bottom: 0; padding-bottom: 0; }
    .cta-band::before { display: none; }
    .actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .reveal { opacity: 1; transform: none; }
}
