/* Tema base: hoja de estilos */
:root {
  --font: "Manrope", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ink: #0a0e15;
  --ink-2: #141b27;
  --paper: #f3f4f0;
  --white: #ffffff;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  --radius: 26px;
  --bad: #ff6464;
  --acc-d: #55a9f5;
  --acc-l: #0068b3;
  --wa: #25d366;
  color-scheme: light;
}
.c-marca { --acc-d: #55a9f5; --acc-l: #0068b3; }
.c-verde { --acc-d: #4be3a5; --acc-l: #00794f; }
.c-celeste { --acc-d: #62c6ff; --acc-l: #00659a; }
.c-ambar { --acc-d: #ffc04d; --acc-l: #8a5600; }
.c-violeta { --acc-d: #bda8ff; --acc-l: #6442d0; }
.c-rojo { --acc-d: #ff6f91; --acc-l: #bb1c49; }
.c-lima { --acc-d: #cfe04d; --acc-l: #596400; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.55;
  font-weight: 500; color: #12161d; background: var(--white);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--acc-l); outline-offset: 3px; border-radius: 4px; }
.t-dark :focus-visible { outline-color: var(--acc-d); }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* Superficies */
.t-dark { background: var(--ink); color: #f1f3ef; --acc: var(--acc-d); --muted: #a6afbc; --n-bg: #161e2b; --n-line: #2e3a4c; --n-text: #e9edf2; --wire: #3d4c62; --card: #151c28; --hair: #262f3e; }
.t-light { background: var(--paper); color: #12161d; --acc: var(--acc-l); --muted: #565e6b; --n-bg: #fff; --n-line: #d3d7d0; --n-text: #1b2029; --wire: #b0b7c1; --card: #fff; --hair: #dcdfd8; }
.t-white { background: var(--white); color: #12161d; --acc: var(--acc-l); --muted: #565e6b; --n-bg: #f3f4f0; --n-line: #d3d7d0; --n-text: #1b2029; --wire: #b0b7c1; --card: #f3f4f0; --hair: #e3e5df; }

/* Navegación global */
.gnav { border-bottom: 1px solid rgba(0, 0, 0, .08); background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); color: #1d232c; position: relative; z-index: 50; font-size: 13.5px; }
.is-home .gnav { position: sticky; top: 0; }
.gnav__in { display: flex; align-items: stretch; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 42px; width: auto; display: block; }
.gnav__list { display: flex; align-items: stretch; gap: 2px; }
.gnav__list > li { display: flex; }
.gnav__list > li > a { display: flex; align-items: center; padding: 0 12px; color: #3e4552; font-weight: 600; transition: color .2s; }
.gnav__list > li > a:hover, .gnav__list > li > a[aria-current] { color: var(--acc-l); }
.gnav__list > li > a.gnav__cta { align-self: center; min-height: 38px; margin-left: 8px; padding: 0 18px; border: 1.5px solid #0068b3; border-radius: 999px; color: #0068b3; transition: background .2s, color .2s; }
.gnav__list > li > a.gnav__cta:hover, .gnav__list > li > a.gnav__cta[aria-current] { background: #0068b3; color: #fff; }
.fly { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid #e6e8e3; box-shadow: 0 24px 40px rgba(10, 14, 21, .12); padding: 34px 0 44px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s; }
.fly__in { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.fly__t { font-size: 12.5px; color: #5f6773; margin-bottom: 8px; }
.fly__cat { font-size: 26px; font-weight: 700; letter-spacing: -.025em; color: #12161d; line-height: 1.15; display: block; }
.fly__links { columns: 2; column-gap: 40px; }
.fly__links a { display: block; font-size: 17px; font-weight: 600; color: #12161d; padding: 6px 0; break-inside: avoid; }
.fly__links a:hover { color: var(--acc-l); }
@media (hover: hover) { .has-fly:hover .fly { opacity: 1; visibility: visible; transform: none; } }
.has-fly:focus-within .fly { opacity: 1; visibility: visible; transform: none; }
.burger { display: none; background: none; border: 0; color: #12161d; font: inherit; font-size: 16px; font-weight: 700; min-height: 44px; margin: auto -8px auto 0; padding: 0 8px; cursor: pointer; }

/* Navegación local */
.lnav { position: sticky; top: 0; z-index: 40; background: rgba(243, 244, 240, .86); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid rgba(0, 0, 0, .08); --acc: var(--acc-l); }
.lnav__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 52px; }
.lnav__t { font-size: 19px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.lnav__r { display: flex; align-items: center; gap: 20px; min-width: 0; }
.lnav__links { display: flex; gap: 20px; font-size: 13.5px; color: #3e4552; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.lnav__links::-webkit-scrollbar { display: none; }
.lnav__links a { padding: 6px 0; }
.lnav__links a:hover { color: var(--acc); }
.lnav__links a[aria-current] { color: var(--acc); font-weight: 700; }

/* Botones y enlaces */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px; border-radius: 999px; background: var(--acc); color: #06120d; font-weight: 700; font-size: 16px; border: 0; cursor: pointer; font-family: inherit; transition: filter .2s, transform .2s; }
.t-light .btn, .t-white .btn { color: #fff; }
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn--s { min-height: 32px; padding: 0 14px; font-size: 13px; color: #fff; white-space: nowrap; }
.go { color: var(--acc); font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.go::after { content: "›"; margin-left: 6px; font-size: 1.25em; line-height: 1; transition: transform .2s; }
.go:hover::after { transform: translateX(3px); }
.acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 26px; }

.btn.btn--wa { background: var(--wa); color: #06120d; gap: 9px; }
.btn--wa svg { width: 20px; height: 20px; flex: none; }
.wa-float { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 45; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 18px; border-radius: 999px; background: var(--wa); color: #06120d; font-weight: 800; box-shadow: 0 10px 28px rgba(10, 14, 21, .28); transition: transform .2s; }
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { width: 26px; height: 26px; }

/* Héroe */
.hero { padding: clamp(28px, 4vw, 48px) 0 clamp(40px, 6vw, 72px); text-align: center; overflow: hidden; }
h1 { font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.04; letter-spacing: -.04em; font-weight: 800; max-width: 17em; margin-inline: auto; text-wrap: balance; }
.lede { color: var(--muted); font-size: clamp(1.15rem, 2.1vw, 1.55rem); line-height: 1.32; letter-spacing: -.015em; font-weight: 600; max-width: 34em; margin: 20px auto 28px; text-wrap: balance; }
.hero__art { margin: clamp(24px, 3.5vw, 40px) auto 0; width: min(100%, 760px); }
.hero__sub { display: flex; flex-direction: column; align-items: center; gap: 20px; margin: 16px auto 0; }
.hero__sub .lede { margin: 0; max-width: 34em; }
.hero__sub + .hero__art { margin-top: clamp(4px, 1.2vw, 14px); }
.hero__sub + .hero__art--scene { margin-top: clamp(16px, 2.4vw, 30px); }
.hero__sub .btn { flex: none; }
/* Carrusel de imágenes de la portada */
.slider { position: relative; margin: clamp(32px, 5vw, 56px) auto 0; width: min(100%, 1100px); border-radius: var(--radius); overflow: hidden; background: #0b0f16; }
.slider__track { display: grid; }
.slider__item { grid-area: 1 / 1; position: relative; margin: 0; min-width: 0; aspect-ratio: 1732 / 622; display: flex; align-items: center; opacity: 0; transition: opacity .7s ease; }
.slider__item.is-on { opacity: 1; }
.slider__item img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.slider__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 9, 14, .9) 0%, rgba(6, 9, 14, .65) 42%, rgba(6, 9, 14, 0) 78%); pointer-events: none; }
.slider__cap { position: relative; z-index: 1; margin: 0; padding: 28px clamp(22px, 5vw, 64px) 44px; max-width: min(640px, 62%); text-align: left; color: #fff; }
.slider__cap .slider__t { margin: 0; max-width: none; font-size: clamp(1.6rem, 3.5vw, 2.9rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 800; color: #fff; text-wrap: balance; }
.slider__cap p { margin: 12px 0 0; font-size: clamp(1rem, 1.6vw, 1.3rem); line-height: 1.3; font-weight: 600; color: rgba(255, 255, 255, .86); text-wrap: balance; }
.hero--slider { padding-top: clamp(20px, 3vw, 36px); }
.hero--slider .slider { margin-top: 0; }
.hero--slider .slider + .acts { margin-top: 28px; }
.slider__dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 2px; }
.slider__dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.slider__dots button::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .5); transition: width .3s, background .3s; }
.slider__dots button[aria-current="true"]::before { width: 26px; background: #fff; }
.slider__dots button:focus-visible { outline: 2px solid #fff; outline-offset: -4px; border-radius: 999px; }
@media (max-width: 720px) {
  .slider { border-radius: 18px; }
  .slider__item { aspect-ratio: 1 / 1; align-items: flex-end; }
  .slider__item::after { background: linear-gradient(0deg, rgba(6, 9, 14, .92) 0%, rgba(6, 9, 14, .6) 55%, rgba(6, 9, 14, .1) 100%); }
  .slider__cap { max-width: none; padding: 24px 20px 52px; }
  .slider__cap .slider__t { font-size: clamp(1.45rem, 7vw, 1.9rem); }
}
@media (prefers-reduced-motion: reduce) { .slider__item { transition: none; } }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 30px; }
.chips a { --acc: var(--acc-d); border: 1px solid #2c3647; border-radius: 999px; padding: 9px 16px; font-size: 14.5px; font-weight: 700; color: #e6e9ee; display: inline-flex; gap: 9px; align-items: center; transition: border-color .2s; }
.chips a::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--acc); }
.chips a:hover { border-color: var(--acc); }

/* Secciones */
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.sec__h { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.07; letter-spacing: -.035em; font-weight: 800; max-width: 18em; text-wrap: balance; }
.sec__h--c { text-align: center; margin-inline: auto; }
.sec__p { color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.38; font-weight: 600; margin-top: 14px; max-width: 34em; }
.sec__p--c { text-align: center; margin-inline: auto; }

/* Mosaico de categorías */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 12px; background: var(--white); }
.tile { border-radius: var(--radius); padding: clamp(40px, 5vw, 64px) clamp(20px, 3vw, 44px) clamp(28px, 3vw, 40px); text-align: center; display: flex; flex-direction: column; overflow: hidden; }
.tile--w { grid-column: 1 / -1; }
.tile h2, .tile h3.tt { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 800; text-wrap: balance; }
.tile p { color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.25rem); line-height: 1.35; font-weight: 600; margin: 10px auto 8px; max-width: 26em; text-wrap: balance; }
.tile .art { margin: auto auto 0; padding-top: 28px; width: min(100%, 560px); }
.tile--w .art { width: min(100%, 700px); }

/* Tarjetas de características */
.grid6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: clamp(32px, 5vw, 56px); }
.card { background: var(--card); border-radius: var(--radius); padding: clamp(26px, 3vw, 40px); grid-column: span 2; display: flex; flex-direction: column; min-height: 250px; }
.card--4 { grid-column: span 4; }
.card--3 { grid-column: span 3; }
.card .ic { width: 42px; height: 42px; color: var(--acc); margin-bottom: auto; }
.card h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.14; letter-spacing: -.025em; font-weight: 800; margin-top: 44px; text-wrap: balance; }
.card--4 h3 { font-size: clamp(1.5rem, 3vw, 2.4rem); max-width: 14em; }
.card p { color: var(--muted); margin-top: 8px; font-weight: 500; max-width: 32em; }

/* Lista de usos */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.uses li { font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.26; letter-spacing: -.02em; font-weight: 700; padding: 22px 0; border-top: 1px solid var(--hair); }
.uses li:last-child { border-bottom: 1px solid var(--hair); }

/* Preguntas frecuentes */
.faq { margin-top: clamp(28px, 4vw, 48px); max-width: 860px; }
.faq details { border-top: 1px solid var(--hair); }
.faq details:last-child { border-bottom: 1px solid var(--hair); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; font-size: clamp(1.08rem, 1.8vw, 1.35rem); font-weight: 700; letter-spacing: -.018em; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5em; line-height: 1; font-weight: 500; color: var(--acc); flex: none; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); padding: 0 40px 24px 0; }

/* Relacionados y directorio */
.rel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: clamp(28px, 4vw, 48px); }
.rel a { background: var(--card); border-radius: 20px; padding: 26px; display: block; transition: transform .25s; }
.rel a:hover { transform: translateY(-3px); }
.rel .ic { width: 30px; height: 30px; color: var(--acc); margin-bottom: 26px; }
.rel h3 { font-size: 1.28rem; letter-spacing: -.02em; line-height: 1.18; font-weight: 800; }
.rel p { color: var(--muted); font-size: 15.5px; margin-top: 8px; }
.dir { padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--hair); margin-top: clamp(32px, 4vw, 48px); }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: clamp(32px, 5vw, 56px); counter-reset: s; }
.steps li { border-top: 2px solid var(--acc); padding-top: 18px; counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); color: var(--acc); font-size: 15px; font-weight: 800; }
.steps h3 { font-size: 1.4rem; letter-spacing: -.025em; font-weight: 800; margin-top: 18px; }
.steps p { color: var(--muted); margin-top: 6px; }

/* Llamado final */
.cta { text-align: center; }
.cta .sec__h { margin-inline: auto; }
.cta .lede { margin-bottom: 26px; }

/* Contacto */
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.way { background: var(--card); border-radius: 20px; padding: 26px; display: block; }
.way span { color: var(--muted); font-size: 15px; display: block; margin-bottom: 4px; }
.way--wa b { color: #0a7a3b; }
.way b { font-size: clamp(1.2rem, 2.4vw, 1.6rem); letter-spacing: -.02em; font-weight: 800; color: var(--acc); overflow-wrap: anywhere; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 700; }
.f--w { grid-column: 1 / -1; }
.f input, .f select, .f textarea { font: inherit; font-weight: 500; font-size: 17px; padding: 13px 14px; border-radius: 12px; border: 1px solid #c3c8c0; background: #fff; color: #12161d; width: 100%; }
.f textarea { min-height: 150px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 2px solid var(--acc); outline-offset: 0; border-color: transparent; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 500; }
.chk input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--acc); }
.chk a { color: var(--acc); font-weight: 700; text-decoration: underline; }
.form__acts { display: flex; flex-wrap: wrap; gap: 10px; }
.note { color: var(--muted); font-size: 14.5px; grid-column: 1 / -1; }
.contacto__intro { text-align: center; margin-bottom: clamp(24px, 3.5vw, 40px); }
.contacto__intro .lede { margin-bottom: 0; }
.cobertura { display: flex; gap: 14px; align-items: flex-start; margin-top: 24px; padding: 20px 22px; background: var(--card); border-radius: 20px; }
.cobertura svg { flex: none; width: 26px; height: 26px; color: var(--acc); }
.cobertura p { color: var(--muted); font-size: 15.5px; line-height: 1.45; }
.cobertura b { color: #12161d; font-weight: 800; }
/* Contacto en versión compacta */
.contacto.sec { padding: clamp(24px, 3.5vw, 44px) 0 clamp(48px, 6vw, 80px); }
.contacto__intro h1 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.contacto__intro .lede { font-size: clamp(1rem, 1.5vw, 1.2rem); margin-top: 12px; }
.contacto .sec__h { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.contacto .split { gap: clamp(28px, 4vw, 56px); }
.contacto .ways { gap: 10px; }
.contacto .way { padding: 16px 20px; border-radius: 16px; }
.contacto .way span { font-size: 13.5px; margin-bottom: 2px; }
.contacto .way b { font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.contacto .form { gap: 12px; }
.contacto .f { font-size: 14px; gap: 4px; }
.contacto .f input, .contacto .f select, .contacto .f textarea { font-size: 16px; padding: 9px 12px; border-radius: 10px; }
.contacto .f textarea { min-height: 110px; }
.contacto .chk { font-size: 14px; }
.contacto .btn { min-height: 42px; font-size: 15px; padding: 0 20px; }
.contacto .note { font-size: 13.5px; }
.form__estado { grid-column: 1 / -1; margin: 0; padding: 12px 16px; border-radius: 12px; background: #e5f6ee; color: #0a5c39; font-weight: 600; font-size: 15px; }
.form__estado--mal { background: #fdecee; color: #8f1a2a; }
.contacto .cobertura { margin-top: 18px; padding: 16px 18px; border-radius: 16px; }
.contacto .cobertura p { font-size: 14.5px; }

/* Documento legal */
.legal { max-width: 780px; margin-inline: auto; }
.legal h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.16; letter-spacing: -.025em; font-weight: 800; margin: 48px 0 12px; text-wrap: balance; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.12rem; letter-spacing: -.012em; font-weight: 800; margin: 22px 0 6px; }
.legal p { margin: 10px 0; color: #333a45; }
.legal ul { list-style: disc; padding-left: 22px; margin: 10px 0; color: #333a45; }
.legal li { margin: 6px 0; }
.legal a { color: var(--acc); font-weight: 700; }
.pend { background: #fff0b3; color: #4a3a00; padding: 1px 6px; border-radius: 5px; font-weight: 700; }

/* Pie de página */
.migas { background: var(--paper); color: #565e6b; font-size: 13.5px; padding-top: 28px; }
.migas + .foot { padding-top: 0; }
.foot { background: var(--paper); color: #565e6b; font-size: 13.5px; padding: 28px 0 92px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; padding-bottom: 18px; border-bottom: 1px solid #d9dcd5; margin-bottom: 28px; }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: #99a0a9; }
.crumbs a:hover { text-decoration: underline; }
.foot__cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px 20px; }
.foot__t { display: block; font-weight: 800; color: #12161d; margin-bottom: 8px; }
.foot__cols li { padding: 4px 0; }
.foot__cols a:hover { color: #12161d; text-decoration: underline; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 28px; border-top: 1px solid #d9dcd5; margin-top: 30px; padding-top: 18px; }
.foot__base a { font-weight: 700; color: #12161d; }
.foot__base div { display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* Diagramas */
.dg { width: 100%; height: auto; overflow: visible; }
.dg text { font-family: var(--font); font-size: 20px; font-weight: 700; letter-spacing: -.01em; fill: var(--n-text); text-anchor: middle; }
.dg .zl { font-size: 16px; fill: var(--muted); }
.dg .z { fill: none; stroke: var(--n-line); stroke-width: 1.5; stroke-dasharray: 3 7; stroke-linecap: round; }
.dg .n rect { fill: var(--n-bg); stroke: var(--n-line); stroke-width: 1.5; }
.dg .ni { fill: none; stroke: var(--n-text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dg .e rect { stroke: var(--acc); stroke-width: 2.5; }
.dg .e .ni { stroke: var(--acc); }
.dg .b rect { stroke: var(--bad); stroke-width: 2; }
.dg .b .ni { stroke: var(--bad); }
.dg .w { fill: none; stroke: var(--wire); stroke-width: 2; }
.dg .fl { fill: none; stroke: var(--acc); stroke-width: 2.5; stroke-dasharray: 5 11; stroke-linecap: round; animation: flow 1.15s linear infinite; }
.dg .bl { fill: none; stroke: var(--bad); stroke-width: 2.5; stroke-dasharray: 5 11; stroke-linecap: round; animation: flow 1.15s linear infinite; }
.dg .xc { fill: var(--bad); }
.dg .xm { stroke: #fff; stroke-width: 2.6; stroke-linecap: round; }
@keyframes flow { to { stroke-dashoffset: -32; } }

/* Escenas horizontales de las portadas de categoría */
.hero__art--scene { width: min(100%, 1100px); }
.scene .glow { fill: var(--acc); opacity: .08; }
.scene .big { fill: var(--n-bg); stroke: var(--acc); stroke-width: 2.5; }
.scene .big--scale, .scene .big-ico * { vector-effect: non-scaling-stroke; }
.scene .big-ico { fill: none; stroke: var(--acc); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.scene .led { fill: var(--acc); animation: led 1.6s steps(1) infinite; }
.scene .chip { fill: var(--n-bg); stroke: var(--acc); stroke-width: 2; }
.scene .ni--acc { stroke: var(--acc); }
.scene .dot { fill: var(--acc); }
.scene .ring { fill: none; stroke: var(--acc); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ring 3s ease-out infinite; }
.scene .radar { fill: none; stroke: var(--n-line); stroke-width: 1.5; }
.scene .sweep { fill: var(--acc); opacity: .18; }
.scene .track { fill: var(--n-line); }
.scene .bar { fill: var(--acc); transform-box: fill-box; transform-origin: left center; animation: bar 3.4s ease-in-out infinite; }
.scene .ln { fill: var(--n-line); }
.scene .hl { fill: var(--acc); }
.scene .lens { fill: none; stroke: var(--acc); stroke-width: 4; stroke-linecap: round; }
.scene circle.lens { fill: var(--acc); fill-opacity: .1; }
.scene .scan { animation: scan 3.6s ease-in-out infinite alternate; }
.scene .numc { fill: var(--n-bg); stroke: var(--acc); stroke-width: 2; }
.dg .num { font-size: 15px; fill: var(--acc); }
.scene .orbit { transform-box: view-box; animation: spin 26s linear infinite; }
.scene .orbit--slow { animation-duration: 40s; }
.scene .orbit--fast { animation-duration: 4s; }
.scene .counter { transform-box: fill-box; transform-origin: center; animation: spin 26s linear infinite reverse; }
.scene .pulse { transform-box: fill-box; transform-origin: center; animation: pulse 4s ease-in-out infinite; }
@keyframes led { 50% { opacity: .25; } }
@keyframes ring { from { transform: scale(1); opacity: .55; } to { transform: scale(1.75); opacity: 0; } }
@keyframes bar { 0% { transform: scaleX(0); } 70%, 100% { transform: scaleX(1); } }
@keyframes scan { from { transform: translateX(-55px); } to { transform: translateX(55px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(1.08); opacity: .14; } }
@media (max-width: 720px) {
  .hero__art--scene { overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .hero__art--scene::-webkit-scrollbar { display: none; }
  .hero__art--scene .scene { min-width: 680px; }
}

/* Aparición al desplazar */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .rv.in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .burger { display: flex; align-items: center; }
  .gnav__list { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; padding: 8px var(--gutter) 24px; gap: 0; height: calc(100dvh - 64px); overflow-y: auto; }
  .gnav.open .gnav__list { display: flex; }
  .gnav__list > li > a { font-size: 26px; font-weight: 700; letter-spacing: -.025em; color: #12161d; padding: 12px 0; }
  .gnav__list > li > a.gnav__cta { align-self: flex-start; margin: 14px 0 0; min-height: 0; padding: 10px 24px; }
  .fly { display: none; }
}
@media (max-width: 960px) {
  .foot__cols { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .lnav__links { display: none; }
  .lnav.has-links .lnav__in { flex-wrap: wrap; padding-top: 8px; gap: 2px 16px; }
  .lnav.has-links .lnav__links { display: flex; order: 3; width: 100%; padding-bottom: 6px; min-height: 40px; align-items: center; }
  .lnav.has-links .lnav__r { display: contents; }
}
@media (max-width: 720px) {
  .tiles { grid-template-columns: 1fr; padding: 8px; gap: 8px; }
  .card, .card--3, .card--4 { grid-column: 1 / -1; min-height: 0; }
  .card h3, .card--4 h3 { margin-top: 28px; font-size: 1.45rem; }
  .split, .rel, .ways, .form { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot { padding-bottom: 92px; }
  .logo img { height: 36px; }
  .wa-float { width: 56px; padding: 0; justify-content: center; }
  .wa-float span { display: none; }
  .form__acts .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Las escenas y diagramas (.dg) se animan siempre, por decisión del sitio. */
  *:not(.dg *), *:not(.dg *)::before, *:not(.dg *)::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
}
@media (max-width: 480px) {
  .lnav .btn--s { display: none; }
}

/* ---------- Imágenes con WebP y noticias (CMS) ---------- */
picture { display: contents; }
.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; margin-top: 8px; }
.news__item { background: var(--card); border: 1px solid var(--hair); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.news__img { display: block; margin: -18px -18px 6px; border-radius: 20px 20px 0 0; overflow: hidden; aspect-ratio: 16 / 9; background: var(--hair); }
.news__img img, .news-top__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news__fecha { font-size: 13.5px; font-weight: 700; color: var(--muted); margin: 0; letter-spacing: .02em; }
.news__item h3, .news-top h3 { margin: 0; font-size: 19px; line-height: 1.3; }
.news__item h3 a, .news-top h3 a { color: inherit; }
.news__item h3 a:hover, .news-top h3 a:hover { color: var(--acc); }
.news__item p:not(.news__fecha) { margin: 0; color: var(--muted); }
.news-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); align-items: center; }
.news-top__img { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--hair); }
.news-top h3 { font-size: clamp(22px, 2.6vw, 30px); }
.news-top__txt { display: flex; flex-direction: column; gap: 12px; }
.news-top__txt p:not(.news__fecha) { margin: 0; color: var(--muted); }
.pager { display: flex; gap: 18px; align-items: center; justify-content: center; margin-top: 28px; font-weight: 700; flex-wrap: wrap; }
.pager a { color: var(--acc); }
.pager span { color: var(--muted); font-weight: 600; }
@media (max-width: 760px) { .news-top { grid-template-columns: 1fr; } }

/* ---------- Páginas de categoría con noticias ligadas: franja a todo el ancho al final ---------- */
.noticias-cat { padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid #e3e5df; }
.noticias-cat .sec__h { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 18px; }
.noticias-cat__lista { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.noticias-cat__lista a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px 22px; background: var(--paper); border-radius: 18px; color: #12161d; transition: transform .25s; }
.noticias-cat__lista a:hover { transform: translateY(-3px); }
.noticias-cat__lista a:hover strong { color: var(--acc-l); }
.noticias-cat__lista time { font-size: 12.5px; font-weight: 700; color: #565e6b; }
.noticias-cat__lista strong { font-size: 1.05rem; line-height: 1.3; font-weight: 700; }
.noticias-cat__lista span { font-size: 14.5px; color: #565e6b; line-height: 1.45; }
.noticia__cat { color: var(--acc); font-weight: 700; }
/* ---------- Fabricantes: franja de logos, lista, productos y ficha ---------- */
.franja { background: #fff; border-top: 1px solid #e3e5df; padding: 22px 0 16px; overflow: hidden; }
.franja__viewport { overflow: hidden; }
.franja__pista { display: flex; justify-content: center; width: 100%; }
.franja__lista { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px clamp(36px, 6vw, 72px); list-style: none; margin: 0; padding: 0 clamp(18px, 3vw, 36px); }
.franja__lista li { flex: none; }
.franja__lista a { display: flex; align-items: center; height: 56px; }
.franja__lista img { height: 40px; width: auto; max-width: 160px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .25s, opacity .25s; }
.franja__lista a:hover img, .franja__lista a:focus-visible img { filter: none; opacity: 1; }
.franja__lista--copia { display: none; }
.franja__todos { text-align: center; margin: 10px 0 0; font-size: 14px; font-weight: 700; }
.franja__todos a { color: var(--acc-l); }
/* Con muchos logos (no caben en una línea) el script añade .franja--mueve: carrusel continuo de derecha a izquierda */
.franja--mueve .franja__viewport { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.franja--mueve .franja__pista { justify-content: flex-start; width: max-content; animation: franja-mover 40s linear infinite; }
.franja--mueve .franja__pista:hover, .franja--mueve .franja__pista:focus-within { animation-play-state: paused; }
.franja--mueve .franja__lista { flex-wrap: nowrap; flex: none; }
.franja--mueve .franja__lista--copia { display: flex; }
@keyframes franja-mover { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.fabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; list-style: none; margin: 8px 0 0; padding: 0; }
.fabs__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; background: var(--card); border: 1px solid var(--hair); border-radius: 20px; padding: 22px 18px; height: 100%; color: inherit; transition: transform .25s; }
.fabs__item:hover { transform: translateY(-3px); }
.fabs__logo { display: flex; align-items: center; justify-content: center; height: 72px; margin-bottom: 8px; }
.fabs__logo img { max-height: 64px; max-width: 160px; width: auto; height: auto; object-fit: contain; }
.fabs__item strong { font-size: 1.1rem; }
.fabs__prod { color: var(--muted); font-size: 14.5px; }
.fab-logo { display: inline-flex; background: #fff; border-radius: 16px; padding: 14px 22px; margin-bottom: 18px; }
.fab-logo img { height: 56px; width: auto; max-width: 220px; object-fit: contain; display: block; }
.etiquetas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 4px 0 14px; padding: 0; }
.etiquetas li { border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; padding: 5px 14px; font-size: 14px; font-weight: 700; color: #e6e9ee; }
.rico img{max-width:100%;height:auto}.rico blockquote{margin:1em 0;padding:2px 16px;border-left:4px solid currentColor;opacity:.85}.rico h2{margin:1.2em 0 .4em}.rico h3{margin:1.1em 0 .4em}
.rico h2{font-size:clamp(1.5rem,3vw,2rem);line-height:1.2}.rico h3{font-size:1.3rem}.rico p,.rico li{font-size:1.05rem;line-height:1.7}.rico ul,.rico ol{padding-left:1.3em}.rico a{text-decoration:underline}
/* Ficha de fabricante: encabezado claro y compacto, con la descripción pegada al título */
.fab-cab { padding: clamp(28px, 4vw, 48px) 0 clamp(16px, 2.4vw, 28px); text-align: center; }
.fab-cab .fab-logo { background: #fff; border: 1px solid var(--hair); margin-bottom: 16px; }
.fab-cab h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; margin: 0 auto 12px; max-width: 22em; text-wrap: balance; }
.fab-cab .etiquetas { margin: 0 0 14px; }
.fab-cab .etiquetas li { border-color: var(--hair); background: #fff; color: #2b3340; }
.fab-cab__resumen { margin: 0 auto 8px; max-width: 42em; font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.55; color: var(--muted); }
.fab-cab__web { margin: 4px 0 0; }
.fab-cab + .sec { padding-top: clamp(20px, 3vw, 36px); }
.fab-cab + .sec .rico { margin-inline: auto; }
.fab-cab + .sec .rico p { margin-top: 0; }
/* Menú principal: los enlaces nunca se parten en dos líneas; si no caben todos (muchos elementos), el menú pasa solo al modo «Menú» (hamburguesa) */
.gnav__list > li { flex: none; }
.gnav__list > li > a { white-space: nowrap; }
.gnav--burger .burger { display: flex; align-items: center; }
.gnav--burger .gnav__list { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; padding: 8px var(--gutter) 24px; gap: 0; height: calc(100dvh - 64px); overflow-y: auto; }
.gnav--burger.open .gnav__list { display: flex; }
.gnav--burger .gnav__list > li { flex: none; }
.gnav--burger .gnav__list > li > a { font-size: 26px; font-weight: 700; letter-spacing: -.025em; color: #12161d; padding: 12px 0; white-space: normal; }
.gnav--burger .gnav__list > li > a.gnav__cta { align-self: flex-start; margin: 14px 0 0; min-height: 0; padding: 10px 24px; }
.gnav--burger .fly { display: none; }
@media (max-width: 1360px) { .gnav__list > li > a { padding: 0 9px; } .gnav__list { gap: 0; } }
/* Ficha de fabricante: logo a la izquierda y los datos a su derecha */
.fab-cab { text-align: left; }
.fab-cab__in { display: flex; align-items: center; gap: clamp(20px, 3.5vw, 44px); }
.fab-cab .fab-logo { flex: none; margin: 0; padding: 18px 26px; }
.fab-cab .fab-logo img { height: auto; max-height: 90px; max-width: 220px; }
.fab-cab__texto { flex: 1; min-width: 0; }
.fab-cab h1 { margin: 0 0 10px; max-width: none; }
.fab-cab .etiquetas { justify-content: flex-start; }
.fab-cab__resumen { margin: 0 0 8px; max-width: 46em; }
.fab-cab + .sec .rico { margin-inline: 0; }
@media (max-width: 720px) { .fab-cab__in { flex-direction: column; align-items: flex-start; } }
/* Imágenes dentro del texto con formato: tamaño y posición */
.rico::after { content: ""; display: block; clear: both; }
.rico img.img-w25 { width: 25%; } .rico img.img-w50 { width: 50%; } .rico img.img-w75 { width: 75%; } .rico img.img-w100 { width: 100%; }
.rico img.img-izq { float: left; margin: 4px 22px 12px 0; } .rico img.img-der { float: right; margin: 4px 0 12px 22px; }
.rico img.img-centro { display: block; margin: 16px auto; }
@media (max-width: 600px) { .rico img.img-izq, .rico img.img-der { float: none; display: block; margin: 12px auto; width: 100%; } }
/* Ficha de fabricante: logo con altura fija (así se ve siempre) y contenido pegado al encabezado */
.fab-cab .fab-logo img { height: 64px; width: auto; max-height: none; max-width: 240px; min-width: 40px; object-fit: contain; }
.fabricante > .sec { padding-top: clamp(20px, 3vw, 36px); padding-bottom: clamp(28px, 4vw, 52px); }
.fabricante > .fab-cab { padding-bottom: clamp(16px, 2.4vw, 28px); }
/* La barra del menú usa más ancho que el contenido para que quepan todos los enlaces en una línea */
.gnav__in.wrap { width: min(100% - 2 * var(--gutter), 1560px); }
/* Menú principal en dos líneas cuando no cabe en una: arriba el logo, debajo los enlaces repartidos en todo el ancho */
.gnav--dos .gnav__in { flex-wrap: wrap; height: auto; align-items: center; padding-top: 6px; }
.gnav--dos .logo { margin-right: auto; padding: 2px 0 4px; }
.gnav--dos .gnav__list { order: 3; width: 100%; flex-wrap: wrap; justify-content: center; border-top: 1px solid rgba(0, 0, 0, .07); }
.gnav--dos .gnav__list > li > a { min-height: 44px; }
.gnav--dos .gnav__list > li > a.gnav__cta { min-height: 36px; margin-left: 0; }

/* Texto creado en el administrador: pegado al encabezado oscuro (noticias y páginas). */
.noticia .hero { padding-bottom: clamp(24px, 3.5vw, 40px); }
.noticia .hero + .sec, .hero + .sec:has(> .wrap > .rico) { padding-top: clamp(20px, 3vw, 36px); }
.noticia .hero + .sec .rico > :first-child, .hero + .sec .rico > :first-child { margin-top: 0; }

/* Lista de noticias pegada al encabezado oscuro y categoría bajo el título. */
.hero:has(+ .sec .news) { padding-bottom: clamp(24px, 3.5vw, 40px); }
.hero + .sec:has(.news) { padding-top: clamp(20px, 3vw, 36px); }
.news__cat { margin: 0; font-size: 13px; font-weight: 700; color: var(--acc); }

/* Lista de fabricantes pegada al encabezado oscuro; el logo con altura fija (con auto/auto el SVG quedaba en 0 px y no se veía). */
.hero:has(+ .sec .fabs) { padding-bottom: clamp(24px, 3.5vw, 40px); }
.hero + .sec:has(.fabs) { padding-top: clamp(20px, 3vw, 36px); }
.fabs { margin-top: 0; }
.fabs__logo { align-self: stretch; width: 100%; }
.fabs__logo img { height: 64px; width: auto; max-width: 100%; max-height: none; object-fit: contain; }
