/* Módulo Web · Convoy Altec — estilos de la web pública.
   Color y tipografía llegan de /theme.css (ajustes del panel). Tres plantillas: deportivo, clasico y minimal. */
:root {
  --accent: #c8102e; --on-accent: #fff;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; --font-head: var(--font-body);
  --bg: #ffffff; --surface: #f5f5f3; --text: #141518; --muted: #5d636e; --line: #e3e3df; --dark: #141518; --on-dark: #f4f4f2;
  --radius: 14px; --wrap: 1180px; --header-h: 72px; --head-weight: 800; --head-case: none; --head-track: -0.02em;
  --shadow: 0 2px 6px rgb(0 0 0 / .06), 0 12px 32px rgb(0 0 0 / .08);
  color-scheme: light;
}
[data-template="deportivo"] { --head-weight: 900; --head-case: uppercase; --head-track: 0; --radius: 6px; }
[data-template="clasico"] { --bg: #fbf9f5; --surface: #f2eee6; --line: #e4ddcf; --head-weight: 600; --radius: 4px; --head-track: 0; }
[data-template="minimal"] { --surface: #f7f7f8; --head-weight: 650; --radius: 22px; --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 8px 24px rgb(0 0 0 / .05); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--font-body); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, h4, .display, .display-sm { font-family: var(--font-head); font-weight: var(--head-weight); text-transform: var(--head-case);
  letter-spacing: var(--head-track); line-height: 1.1; margin: 0 0 .5em; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
h3 { font-size: 1.2rem; }
.display { font-size: clamp(2.3rem, 1.4rem + 4.5vw, 4.6rem); }
.display-sm { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; z-index: 100; }
.skip:focus { left: 16px; top: 8px; background: var(--bg); padding: 8px 14px; border-radius: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.align-center { text-align: center; }
.align-center .prose { margin: 0 auto; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border-radius: 999px;
  font: 700 .98rem/1.2 var(--font-body); text-decoration: none; border: 2px solid var(--text); color: var(--text); background: transparent;
  transition: transform .2s ease, background .2s, color .2s, box-shadow .2s; }
[data-template="deportivo"] .btn { border-radius: 4px; text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); background: var(--text); color: var(--bg); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent); color: var(--on-accent); filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); }
.btn-invert { background: var(--on-accent); color: var(--accent); border-color: var(--on-accent); }
.btn-invert:hover { background: var(--on-accent); color: var(--accent); }
.btn-lg { min-height: 54px; padding: 12px 30px; font-size: 1.05rem; }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: .88rem; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgb(0 0 0 / .06); }
.header-row { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); transition: min-height .3s ease; }
.scrolled .header-row { min-height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; font: var(--head-weight) 1.25rem/1 var(--font-head);
  text-transform: var(--head-case); }
.brand-logo { height: 44px; width: auto; transition: height .3s ease; }
.scrolled .brand-logo { height: 34px; }
.nav-desktop ul, .nav-mobile ul { list-style: none; margin: 0; padding: 0; }
.nav-desktop ul { display: flex; gap: 4px; }
.nav-desktop a { display: block; padding: 8px 14px; text-decoration: none; font-weight: 600; border-radius: 999px; position: relative; }
.nav-desktop a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.nav-desktop a:hover::after, .nav-desktop a[aria-current]::after { transform: scaleX(1); }
.nav-mobile { display: none; }
.nav-mobile summary { list-style: none; cursor: pointer; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 10px; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 24px; height: 2px; background: currentColor; position: relative; transition: transform .3s, background .3s; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -7px; } .burger::after { top: 7px; }
.nav-mobile[open] .burger { background: transparent; }
.nav-mobile[open] .burger::before { transform: translateY(7px) rotate(45deg); }
.nav-mobile[open] .burger::after { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 20px 18px; }
.nav-mobile a { display: block; padding: 14px 4px; font: var(--head-weight) 1.25rem var(--font-head); text-transform: var(--head-case); text-decoration: none; border-bottom: 1px solid var(--line); }
.nav-mobile a[aria-current] { color: var(--accent); }
@media (max-width: 899px) { .nav-desktop { display: none; } .nav-mobile { display: block; } }

/* Secciones */
.blk { padding: clamp(56px, 8vw, 110px) 0; position: relative; }
.blk.full { padding: 0; }
.bg-alt { background: var(--surface); }
.bg-dark { background: var(--dark); color: var(--on-dark); --muted: #b3b7bf; --line: #2c2e33; }
.bg-dark .btn { border-color: var(--on-dark); color: var(--on-dark); }
.bg-dark .btn:hover { background: var(--on-dark); color: var(--dark); }
.bg-accent { background: var(--accent); color: var(--on-accent); --muted: color-mix(in srgb, var(--on-accent) 80%, transparent); }
.bg-accent .lede { color: var(--muted); }
.page-head { padding-top: 48px; }
.prose { max-width: 68ch; }
.prose p { margin: 0 0 1em; }
.prose h3, .prose h4 { margin-top: 1.4em; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.bg-accent .prose a { color: inherit; }
.prose blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 4px solid var(--accent); font-size: 1.15rem; font-style: italic; }
.rounded { border-radius: var(--radius); }

/* Portada */
.hero { position: relative; display: grid; align-items: end; overflow: hidden; color: #fff;
  background: radial-gradient(120% 120% at 0% 100%, color-mix(in srgb, var(--accent) 85%, #000) 0%, var(--accent) 45%, color-mix(in srgb, var(--accent) 70%, #000) 100%); }
.h-full { min-height: calc(100svh - var(--header-h)); } .h-large { min-height: min(78svh, 760px); } .h-medium { min-height: min(52svh, 520px); }
.hero-media { position: absolute; inset: -8% 0; will-change: transform; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .05) 30%, rgb(0 0 0 / .65) 100%); }
.hero-content { position: relative; z-index: 2; padding-top: 80px; padding-bottom: clamp(48px, 8vw, 96px); }
.hero .lede { color: rgb(255 255 255 / .9); font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem); }
[data-template="deportivo"] .hero .display { font-style: italic; }
[data-template="deportivo"] .hero:not(.has-image)::before { content: ""; position: absolute; right: -10%; top: -20%; width: 60%; height: 140%;
  background: rgb(0 0 0 / .12); transform: skewX(-18deg); }

/* Slider */
.slider { position: relative; overflow: hidden; background: #000; color: #fff; }
.slides { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; height: 100%; }
.slides::-webkit-scrollbar { display: none; }
.slider.h-full .slides, .slider.h-full .slide { min-height: calc(100svh - var(--header-h)); }
.slider.h-large .slides, .slider.h-large .slide { min-height: min(78svh, 760px); }
.slider.h-medium .slides, .slider.h-medium .slide { min-height: min(52svh, 520px); }
.slide { position: relative; margin: 0; scroll-snap-align: start; overflow: hidden; display: grid; align-items: end; }
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 0) 35%, rgb(0 0 0 / .7) 100%); }
.slide-caption { position: relative; z-index: 2; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px clamp(80px, 10vw, 120px); }
.slide-caption p { font-size: clamp(1.05rem, 1rem + .5vw, 1.35rem); max-width: 56ch; color: rgb(255 255 255 / .9); }
.js .slide-caption > * { opacity: 0; transform: translateY(24px); transition: opacity .8s ease .25s, transform .8s ease .25s; }
.js .slide.is-active .slide-caption > * { opacity: 1; transform: none; }
.js .slide.is-active .slide-caption > :nth-child(2) { transition-delay: .4s; }
.js .slide.is-active .slide-caption > :nth-child(3) { transition-delay: .55s; }
.kenburns .slide.is-active .slide-img { animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.slider-nav { position: absolute; z-index: 3; left: 0; right: 0; bottom: 24px; display: flex; justify-content: center; align-items: center; gap: 16px; }
.slider-prev, .slider-next { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .5); background: rgb(0 0 0 / .25);
  color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; backdrop-filter: blur(4px); transition: background .2s; }
.slider-prev:hover, .slider-next:hover { background: var(--accent); border-color: var(--accent); }
.slider-dots { display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 999px; background: rgb(255 255 255 / .5); transition: width .4s ease, background .3s; }
.dot.is-active { width: 34px; background: var(--accent); }

/* Foto y texto */
.split { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } .split.side-right .split-media { order: 2; } }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }

/* Galería */
.gallery { list-style: none; margin: 24px 0 0; padding: 0; }
.gallery.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.gallery.grid img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.gallery.mosaic { columns: 3 260px; column-gap: 12px; }
.gallery.mosaic li { break-inside: avoid; margin-bottom: 12px; }
.gallery-item { display: block; overflow: hidden; border-radius: var(--radius); position: relative; cursor: zoom-in; }
.gallery-item img { transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .4s; width: 100%; }
.gallery-item:hover img { transform: scale(1.06); filter: brightness(1.05); }
.gallery-item::after { content: "＋"; position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-weight: 700; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .3s; }
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; transform: none; }
.gallery-caption { display: block; font-size: .88rem; color: var(--muted); padding: 6px 2px 0; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; color: #fff; }
.lightbox::backdrop { background: rgb(10 10 12 / .92); backdrop-filter: blur(4px); }
.lightbox[open] { display: grid; place-items: center; animation: lb-in .3s ease; }
@keyframes lb-in { from { opacity: 0; } }
.lightbox figure { margin: 0; max-width: min(92vw, 1400px); text-align: center; }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 6px; box-shadow: 0 20px 60px rgb(0 0 0 / .5); animation: lb-img .35s ease; }
@keyframes lb-img { from { opacity: 0; transform: scale(.96); } }
.lightbox figcaption { margin-top: 12px; color: #d6d8dc; }
.lb-btn { position: fixed; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .35); background: rgb(255 255 255 / .08); color: #fff;
  font-size: 1.7rem; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: var(--accent); border-color: var(--accent); }
.lb-close { top: 16px; right: 16px; } .lb-prev { left: 16px; top: 50%; translate: 0 -50%; } .lb-next { right: 16px; top: 50%; translate: 0 -50%; }
.lb-count { position: fixed; top: 26px; left: 24px; font-size: .9rem; color: #c3c6cc; }

/* Antes y después */
.compare { --pos: 50%; position: relative; margin-top: 24px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); user-select: none; touch-action: pan-y; }
.compare img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; }
.compare-handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; color: var(--text); display: grid; place-items: center; font-weight: 700; box-shadow: 0 4px 14px rgb(0 0 0 / .3); }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare-range:focus-visible + .compare-handle, .compare:focus-within .compare-handle::after { outline: 3px solid var(--accent); }
.compare-label { position: absolute; top: 14px; padding: 4px 12px; border-radius: 999px; background: rgb(0 0 0 / .55); color: #fff; font-size: .82rem; font-weight: 700; }
.compare-label.left { left: 14px; } .compare-label.right { right: 14px; }

/* Servicios */
.services { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 4px 48px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.service { display: flex; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.service > div { flex: 1; }
.service h3 { margin: 0 0 4px; }
.service p { margin: 0; color: var(--muted); font-size: .98rem; }
.price { font: var(--head-weight) 1.2rem var(--font-head); color: var(--accent); white-space: nowrap; }
.bg-accent .price { color: inherit; }

/* Logos */
.logos { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 28px; align-items: center; }
.logos img { max-height: 64px; width: auto; margin: 0 auto; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s, transform .3s; }
.logos li:hover img, .logos a:focus-visible img { filter: none; opacity: 1; transform: scale(1.05); }

/* Cifras */
.stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; text-align: center; }
.stat-value { display: block; font: var(--head-weight) clamp(2.6rem, 2rem + 3vw, 4.2rem)/1 var(--font-head); color: var(--accent); font-variant-numeric: tabular-nums; }
.bg-accent .stat-value, .bg-dark .stat-value { color: inherit; }
.stat-label { display: block; margin-top: 8px; color: var(--muted); font-weight: 600; }

/* Preguntas */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font: 700 1.1rem/1.4 var(--font-body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; translate: 0 -50%; font-size: 1.6rem; color: var(--accent); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .prose { padding-bottom: 16px; color: var(--muted); }

/* Tiendas */
.locations { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.location { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: transform .3s; }
.bg-default .location { background: var(--surface); box-shadow: none; }
.location:hover { transform: translateY(-4px); }
.location h3 { color: var(--accent); }
.location p { margin: 0 0 12px; }
.location .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }

/* Vídeo */
.video { margin: 20px 0; }
.video-play { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.video-play img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .6s, opacity .3s; }
.video-play:hover img { transform: scale(1.04); opacity: 1; }
.video-icon { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; font-size: 2rem; padding-left: 6px; box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 22px transparent; } }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); display: block; }
.video-note { font-size: .8rem; color: var(--muted); margin: 6px 0 0; }

/* Pie */
.site-footer { background: var(--dark); color: var(--on-dark); padding: 64px 0 24px; font-size: .95rem; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 12px; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer-brand { font: var(--head-weight) 1.4rem var(--font-head); text-transform: var(--head-case); margin: 0 0 8px; }
.footer-title { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: #9ea3ab; }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid #2c2e33; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.footer-bottom .legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom .muted, .site-footer .muted { color: #9ea3ab; margin: 0; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgb(0 0 0 / .25); transition: transform .3s; }
.wa-float svg { width: 32px; height: 32px; fill: currentColor; }
.wa-float:hover { transform: scale(1.08); }
.not-found { min-height: 50vh; display: grid; place-content: center; justify-items: center; }

/* Aparición al desplazar (solo con JavaScript, y nunca con «reducir movimiento») */
.js [data-anim="fade"] > .wrap, .js [data-anim="up"] > .wrap, .js [data-anim="zoom"] > .wrap { opacity: 0; transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js [data-anim="up"] > .wrap { transform: translateY(40px); }
.js [data-anim="zoom"] > .wrap { transform: scale(.94); }
.js [data-anim].in > .wrap { opacity: 1; transform: none; }
.js [data-anim="up"].in .services li, .js [data-anim="up"].in .locations li, .js [data-anim="up"].in .stats li, .js [data-anim="up"].in .gallery li { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.js .in li:nth-child(2) { animation-delay: .08s; } .js .in li:nth-child(3) { animation-delay: .16s; } .js .in li:nth-child(4) { animation-delay: .24s; }
.js .in li:nth-child(5) { animation-delay: .32s; } .js .in li:nth-child(6) { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-anim] > .wrap, .js .slide-caption > * { opacity: 1 !important; transform: none !important; }
  .hero-media { transform: none !important; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .slider-prev, .slider-next { display: none; }
  .service { flex-direction: column; gap: 4px; }
}
@media print { .site-header, .slider-nav, .wa-float, .video-play { display: none; } }

/* =====================================================================
   V1.1 · Bloques nuevos (todas las plantillas)
   ===================================================================== */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/inter-latin-var.woff") format("woff"); }
.ico { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.15em; }
.sec-head { max-width: 760px; margin: 0 auto 32px; text-align: center; }
.sec-head .lede { margin: 12px auto 0; }
.kicker { margin: 0 0 10px; color: var(--accent); font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.kicker a { color: inherit; text-decoration: none; }
.accent-text { color: var(--accent); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.btn-block { display: flex; width: 100%; }
.btn-glass { border-color: var(--line); }

/* Selector de idioma */
.lang-switch { display: flex; align-items: center; gap: 2px; font-size: .9rem; }
.lang-switch a, .lang-switch [aria-current] { padding: 6px; text-decoration: none; }
.lang-switch a { opacity: .6; } .lang-switch a:hover { opacity: 1; }
.lang-switch [aria-current] { font-weight: 800; }
.lang-switch .sep { opacity: .35; }

/* Portada con logo */
.brand-hero { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 920px; }
.logo-wrap { position: relative; width: min(300px, 88%); margin: -10px auto -20px; }
.brand-hero-logo { width: 100%; height: auto; }
.logo-electrons { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.brand-title { margin: 0; text-transform: none; }
.brand-name-lg { display: block; font-size: clamp(2.1rem, 1.2rem + 4.2vw, 4rem); letter-spacing: .06em; line-height: 1.02; text-transform: uppercase; }
.brand-tagline { display: block; margin-top: 18px; font-size: clamp(1.2rem, 1.05rem + .8vw, 1.5rem); font-weight: 500; letter-spacing: 0; text-transform: none; }
.brand-divider { width: 100%; max-width: 760px; height: 1px; background: var(--line); margin: 22px auto 18px; }
.brand-text { max-width: 680px; color: var(--muted); font-size: 1.08rem; line-height: 1.55; margin: 0; }
.brand-ctas { display: grid; gap: 14px; width: 100%; max-width: 360px; margin-top: 26px; }
.brand-note { margin: 12px 0 0; color: var(--muted); font-size: .88rem; }
.brand-link-sm { margin-top: 18px; color: var(--accent); font-size: .95rem; text-decoration: none; }
.brand-link-sm:hover { text-decoration: underline; }
.brand-sub { margin: 4px 0 0; color: var(--muted); font-size: .76rem; opacity: .8; }
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 8px; width: 100%; max-width: 920px; margin-top: 32px; padding: 20px 4px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quick a, .quick > span { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .85rem; text-decoration: none; transition: transform .2s; }
.quick a:hover { transform: translateY(-2px); }
.ico-lg { font-size: 1.9rem; }
.more { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 24px; color: var(--muted); font-size: .82rem; text-decoration: none; }
.more .ico { font-size: 1.1rem; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }

/* Tarjetas */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards.cols-2, .cards.cols-3, .cards.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cards.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { position: relative; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.bg-default .card { background: var(--surface); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin: 0 0 10px; font-size: 1.25rem; }
.card h3 a { text-decoration: none; }
.card-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 14px; font-size: 1.5rem;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-tag, .card-date { color: var(--muted); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.card-date { letter-spacing: .02em; text-transform: none; font-weight: 600; }
.badge { padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; border: 1px solid; }
.badge-live { color: #1f7a46; background: rgb(37 211 102 / .12); border-color: rgb(37 211 102 / .4); }
.badge-dev { color: #8a5a00; background: rgb(255 196 61 / .15); border-color: rgb(255 196 61 / .45); }
.badge-soon { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.card-quote { margin: 0; color: var(--muted); font-size: .98rem; font-style: italic; line-height: 1.5; }
.card-text { margin: 10px 0 0; font-size: 1rem; line-height: 1.55; }
.card-quote + .card-text { margin-top: 12px; }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; color: var(--accent); font-weight: 700; text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.stretched::after { content: ""; position: absolute; inset: 0; }
.cards-footer { margin: 22px auto 0; text-align: center; color: var(--muted); }
.cards-footer.prose { max-width: none; }

/* Comparación */
.versus { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .versus { grid-template-columns: 1fr 1fr; } }
.versus-col { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.versus-col.is-best { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 7%, var(--bg)); box-shadow: var(--shadow); }
.versus-col h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 1.15rem; text-transform: none; }
.versus-col.is-best h3 { color: var(--accent); }
.versus-col ul { list-style: none; margin: 0; padding: 0; }
.versus-col li { position: relative; padding: 9px 0 9px 26px; border-top: 1px solid var(--line); line-height: 1.45; color: var(--muted); }
.versus-col li:first-child { border-top: 0; }
.versus-col li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.versus-col.is-best li { color: var(--text); }
.versus-col.is-best li::before { background: var(--accent); }
.blk-versus .center { margin-top: 24px; }

/* Pasos */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.steps li { counter-increment: step; padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%;
  border: 2px solid var(--accent); color: var(--accent); font-weight: 800; }
.steps h3 { margin: 0 0 8px; font-size: 1.15rem; text-transform: none; }
.steps p { margin: 0; color: var(--muted); line-height: 1.55; }

/* Blog */
.post-cover { width: calc(100% + 48px); max-width: none; margin: -24px -24px 18px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.tag-list { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tag-list a { display: inline-flex; gap: 6px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .9rem; }
.tag-list a span { color: var(--muted); }
.tag-list a[aria-current] { border-color: var(--accent); color: var(--accent); }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.blog-about { margin: 40px auto 0; text-align: center; color: var(--muted); }
.breadcrumbs { font-size: .88rem; color: var(--muted); margin-bottom: 22px; }
.breadcrumbs a { text-decoration: none; } .breadcrumbs a:hover { text-decoration: underline; }
.post-head .display-sm { text-transform: none; }
.post-meta { color: var(--muted); font-size: .95rem; margin: 0 0 26px; }
.post-cover-lg { margin: 0 0 28px; } .post-cover-lg img { width: 100%; border-radius: var(--radius); }
.post-body { max-width: none; font-size: 1.08rem; }
.post-body h2 { font-size: 1.6rem; margin-top: 1.6em; text-transform: none; }
.post-body h3 { margin-top: 1.4em; text-transform: none; }
.post-body figure { margin: 1.5em 0; } .post-body figure img { border-radius: var(--radius); }
.post-body figcaption { font-size: .88rem; color: var(--muted); margin-top: 6px; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.post-body code { padding: 1px 6px; border-radius: 6px; background: var(--surface); font-size: .92em; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 32px 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: .95rem; }
.share a { color: var(--accent); }
.post-pager { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 12px 0 28px; }
.post-pager a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.post-pager small { display: block; color: var(--muted); }
.post-pager .pager-older { text-align: right; }
.social a { display: inline-flex; align-items: center; gap: 8px; }
.footer-logo { width: 36px; height: 36px; display: inline-block; vertical-align: middle; margin-right: 10px; }

/* =====================================================================
   Plantilla «Convoy»: fondo azul noche, cian, Inter y cortina de electrones
   ===================================================================== */
[data-template="convoy"] { --bg: #050b18; --surface: rgb(255 255 255 / .035); --text: #ffffff; --muted: #c5d8e7; --line: rgb(255 255 255 / .12);
  --dark: #030812; --on-dark: #e8f2fa; --radius: 22px; --head-weight: 800; --head-case: none; --head-track: 0; --wrap: 1120px;
  --shadow: 0 18px 40px rgb(0 0 0 / .3); color-scheme: dark; }
[data-template="convoy"] body { background: var(--bg); }
[data-template="convoy"] body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 50% 12%, rgb(0 200 255 / .08), transparent 55%), linear-gradient(180deg, #050b18 0%, #07101f 100%); }
[data-template="convoy"] .electron-flow { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
[data-template="convoy"] .site-header, [data-template="convoy"] main, [data-template="convoy"] .site-footer { position: relative; z-index: 1; }
[data-template="convoy"] .site-header { z-index: 40; position: sticky; background: transparent; backdrop-filter: none; }
[data-template="convoy"] .site-header.scrolled { background: rgb(5 11 24 / .85); backdrop-filter: blur(12px); border-color: var(--line); box-shadow: none; }
[data-template="convoy"] .brand { font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; }
[data-template="convoy"] .brand-logo { height: 34px; }
[data-template="convoy"] .nav-desktop a { color: var(--muted); font-size: .95rem; }
[data-template="convoy"] .nav-desktop a:hover, [data-template="convoy"] .nav-desktop a[aria-current] { color: #fff; }
[data-template="convoy"] .nav-mobile summary { border: 1px solid rgb(159 232 255 / .22); border-radius: 999px; }
[data-template="convoy"] .nav-mobile nav { background: rgb(7 16 31 / .97); border: 1px solid rgb(159 232 255 / .22); border-radius: 18px; left: 12px; right: 12px; }
[data-template="convoy"] .nav-mobile a { font-size: 1.05rem; font-weight: 600; border-color: var(--line); }
[data-template="convoy"] .blk { padding: clamp(56px, 7vw, 88px) 0; }
[data-template="convoy"] .blk-brand_hero { padding-top: 0; }
[data-template="convoy"] .bg-alt { background: rgb(255 255 255 / .02); }
[data-template="convoy"] .bg-accent { background: radial-gradient(circle at 50% 0%, rgb(63 220 255 / .16), transparent 65%), rgb(255 255 255 / .03); color: #fff;
  --muted: #c5d8e7; border-top: 1px solid rgb(159 232 255 / .22); border-bottom: 1px solid rgb(159 232 255 / .22); }
[data-template="convoy"] .btn { border-color: rgb(180 220 255 / .32); color: #fff; font-weight: 700; }
[data-template="convoy"] .btn:hover { background: rgb(255 255 255 / .08); color: #fff; box-shadow: none; }
[data-template="convoy"] .btn-accent, [data-template="convoy"] .btn-invert { border: 0; color: #021019; background: linear-gradient(180deg, #9af5ff 0%, #3fdcff 55%, #1fb6e0 100%);
  box-shadow: 0 10px 30px rgb(0 200 255 / .35), inset 0 1px 0 rgb(255 255 255 / .4); }
[data-template="convoy"] .btn-accent:hover, [data-template="convoy"] .btn-invert:hover { color: #021019; background: linear-gradient(180deg, #b0f8ff 0%, #57e2ff 55%, #2bc1ea 100%); filter: none; }
[data-template="convoy"] .btn-glass { background: rgb(255 255 255 / .06); box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 8px 18px rgb(0 0 0 / .2); }
[data-template="convoy"] .contact-actions .btn:first-child[href^="https://wa.me"], [data-template="convoy"] .contact-actions .btn-accent { background: #25d366; color: #04210f; box-shadow: 0 10px 26px rgb(37 211 102 / .28); }
[data-template="convoy"] .kicker { color: #9fe8ff; }
[data-template="convoy"] .accent-text, [data-template="convoy"] .text-link, [data-template="convoy"] .card-link { color: var(--accent); }
[data-template="convoy"] .brand-hero-logo { filter: drop-shadow(0 0 25px rgb(0 200 255 / .35)); }
[data-template="convoy"] .brand-name-lg { text-shadow: 0 2px 10px rgb(0 0 0 / .28); }
[data-template="convoy"] .brand-text { color: #9fc2dd; }
[data-template="convoy"] .brand-link-sm { color: #9fe8ff; }
[data-template="convoy"] .quick { border-color: rgb(255 255 255 / .15); }
[data-template="convoy"] .quick .ico { color: #e8f6ff; filter: drop-shadow(0 0 8px rgb(120 220 255 / .3)); }
[data-template="convoy"] .card { background: var(--surface); }
[data-template="convoy"] .card:hover { background: rgb(255 255 255 / .06); border-color: rgb(159 232 255 / .22); box-shadow: none; }
[data-template="convoy"] .card-icon { color: #9fe8ff; background: rgb(63 220 255 / .1); }
[data-template="convoy"] .card-text { color: #fff; }
[data-template="convoy"] .badge-live { color: #6ee7a2; background: rgb(37 211 102 / .14); border-color: rgb(37 211 102 / .35); }
[data-template="convoy"] .badge-dev { color: #ffd27a; background: rgb(255 196 61 / .12); border-color: rgb(255 196 61 / .32); }
[data-template="convoy"] .badge-soon { color: #9fe8ff; background: rgb(159 232 255 / .1); border-color: rgb(159 232 255 / .22); }
[data-template="convoy"] .versus-col.is-best { border-color: rgb(159 232 255 / .22); background: linear-gradient(180deg, rgb(63 220 255 / .08), rgb(63 220 255 / .02)); }
[data-template="convoy"] .versus-col.is-best h3 { color: #9fe8ff; }
[data-template="convoy"] .versus-col li::before { background: rgb(255 255 255 / .25); }
[data-template="convoy"] .versus-col.is-best li::before { background: var(--accent); box-shadow: 0 0 10px rgb(63 220 255 / .7); }
[data-template="convoy"] .steps li::before { border-width: 1px; border-color: rgb(159 232 255 / .22); }
[data-template="convoy"] .stats li { padding: 22px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
[data-template="convoy"] .stats { gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
[data-template="convoy"] .stat-value { text-shadow: 0 0 18px rgb(63 220 255 / .35); }
[data-template="convoy"] .stat-label { font-weight: 500; font-size: .92rem; }
[data-template="convoy"] .faq summary { font-size: 1.05rem; }
[data-template="convoy"] .faq summary::after { content: "+"; width: 30px; height: 30px; border: 1px solid rgb(159 232 255 / .22); border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; }
[data-template="convoy"] .prose a { color: var(--accent); }
[data-template="convoy"] .post-body code { background: rgb(255 255 255 / .08); }
[data-template="convoy"] .site-footer { background: transparent; border-top: 1px solid var(--line); color: #8fb0c8; }
[data-template="convoy"] .site-footer a:hover { color: #fff; }
[data-template="convoy"] .footer-brand { color: #fff; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; }
[data-template="convoy"] .footer-title { color: #fff; }
[data-template="convoy"] .footer-bottom { border-color: rgb(255 255 255 / .06); }
[data-template="convoy"] .social { display: flex; flex-wrap: wrap; gap: 10px; }
[data-template="convoy"] .social a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[data-template="convoy"] .social a { width: 44px; height: 44px; justify-content: center; border: 1px solid rgb(159 232 255 / .22); border-radius: 50%; color: #9fe8ff; font-size: 1.2rem; }
[data-template="convoy"] .social li { margin: 0; }
[data-template="convoy"] .hero:not(.has-image) { background: radial-gradient(circle at 50% 0%, rgb(63 220 255 / .14), transparent 70%); }
[data-template="convoy"] .page-head { padding-top: 40px; text-align: center; }
[data-template="convoy"] .tag-list a { border-color: rgb(159 232 255 / .22); }
@media (min-width: 768px) { [data-template="convoy"] .logo-wrap { width: 330px; } }
@media (min-width: 1024px) { [data-template="convoy"] .logo-wrap { width: 370px; margin: -14px auto -30px; } }
@media (prefers-reduced-motion: reduce) { .logo-electrons, .electron-flow { display: none; } .more .ico { animation: none; } }
.site-footer li a { display: inline-flex; align-items: center; gap: 8px; }

/* Botón destacado del menú (Ajustes → Menú) */
.nav-button { white-space: nowrap; }
.nav-mobile .nav-button-item a { color: var(--accent); }
@media (max-width: 899px) { .nav-button { display: none; } }
