/* Lithium Energy — estilos del sitio (convertido desde Claude Design) */
:root {
  --bg: #08131f;
  --bg-2: #0a1826;
  --bg-3: #0b1d2e;
  --surface: #0c1e2e;
  --field: #0a1927;
  --text: #e8f0f5;
  --text-2: #b9d0dd;
  --text-3: #a9c4d3;
  --muted: #8fb2c7;
  --muted-2: #7fb7d6;
  --lime: #9ede4a;
  --lime-hover: #c3f086;
  --blue: #1a7fb0;
  --blue-hover: #2295cc;
  --line: rgba(122, 190, 230, .16);
  --line-2: rgba(122, 190, 230, .22);
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Barlow, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
a { color: var(--lime); text-decoration: none; }
a:hover { color: var(--lime-hover); }
img { display: block; }
h1, h2, h3 { font-family: Saira, sans-serif; }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulseGlow { 0%, 100% { opacity: .35; } 50% { opacity: .85; } }

.page { max-width: 1440px; margin: 0 auto; overflow: clip; }
.accent { color: var(--lime); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px;
  padding: 14px 20px;
  background: rgba(8, 19, 31, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(122, 190, 230, .14);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { width: auto; height: 52px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: Saira, sans-serif; font-style: italic; font-weight: 800; font-size: 19px; letter-spacing: .02em; }
.brand-text span { font-size: 10px; letter-spacing: .28em; color: var(--muted-2); margin-top: 4px; }

.site-nav {
  display: flex; flex: 1 1 300px; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 12px 22px;
  padding: 2px 0; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.nav-link { color: #bcd4e2; white-space: nowrap; }
.nav-first { margin-left: auto; }
.nav-cta {
  display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px;
  background: var(--lime); color: #07141f; font-weight: 700; white-space: nowrap;
}
.nav-cta:hover { background: var(--lime-hover); color: #07141f; }

/* ---------- Hero con scroll (video de despiece) ---------- */
.scroll-hero { position: relative; height: 380vh; }
.sh-sticky {
  position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden;
  display: flex; align-items: center;
  background: radial-gradient(900px 600px at 72% 50%, rgba(26, 127, 176, .22), transparent 70%), linear-gradient(180deg, var(--bg) 0%, var(--bg-3) 100%);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(122, 190, 230, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(122, 190, 230, .06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(700px 480px at 30% 45%, #000, transparent);
  mask-image: radial-gradient(700px 480px at 30% 45%, #000, transparent);
}
.sh-glow {
  position: absolute; right: 12%; top: 50%; width: min(52vw, 640px); aspect-ratio: 1; translate: 0 -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(26, 127, 176, .32), transparent 65%); filter: blur(12px);
  animation: pulseGlow 6s ease-in-out infinite;
}
/* El video trae fondo negro puro: con "screen" el negro desaparece y solo queda la patineta */
.sh-media { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; padding: 80px 3vw 40px 0; pointer-events: none; }
/* Se fusiona un canvas y no el <video>: los navegadores a veces pintan el video por una vía de
   hardware que ignora mix-blend-mode y muestra su fondo negro (por ejemplo al pasar el mouse). */
.sh-media canvas { width: min(62vw, 1000px, calc(100vw - 540px)); max-height: 82vh; object-fit: contain; mix-blend-mode: screen; }
.sh-media video { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.sh-content { position: relative; z-index: 2; width: 100%; max-width: 600px; padding: 90px 28px 60px; }
.sh-scenes { display: grid; }
.sh-scene {
  grid-area: 1 / 1; opacity: 0; transform: translateY(18px); pointer-events: none;
  transition: opacity .5s ease, transform .5s ease;
}
.sh-scene.is-active { opacity: 1; transform: none; pointer-events: auto; }
.sh-scene h1, .sh-scene h2 {
  font-family: Saira, sans-serif; font-style: italic; font-weight: 800; font-size: clamp(40px, 5.2vw, 74px); line-height: .96;
  margin: 20px 0 0; letter-spacing: -.015em; text-wrap: balance;
}
.pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px;
  border: 1px solid rgba(158, 222, 74, .4); border-radius: 999px;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--lime);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.lead { max-width: 520px; margin: 22px 0 0; font-size: 18px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 12px;
  font-size: 15px; transition: background .2s, border-color .2s, transform .2s;
}
.btn-primary { background: var(--lime); color: #07141f; font-weight: 700; letter-spacing: .02em; box-shadow: 0 14px 40px -14px rgba(158, 222, 74, .7); }
.btn-primary:hover { background: var(--lime-hover); color: #07141f; transform: translateY(-1px); }
.btn-ghost { border: 1px solid rgba(122, 190, 230, .35); color: #dff0fa; font-weight: 600; background: rgba(8, 19, 31, .4); }
.btn-ghost:hover { border-color: rgba(158, 222, 74, .6); color: #fff; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.stat { font-family: Saira, sans-serif; font-weight: 800; font-size: 24px; color: var(--text); }
.stat-label { font-size: 13px; color: var(--muted); }

.sh-progress { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: rgba(122, 190, 230, .08); z-index: 3; }
.sh-progress span { display: block; height: 100%; width: 100%; background: var(--lime); transform-origin: 0 50%; transform: scaleX(0); }
.sh-dots { position: absolute; right: 24px; top: 50%; translate: 0 -50%; display: flex; flex-direction: column; gap: 10px; z-index: 3; }
.sh-dots span { width: 4px; height: 28px; border-radius: 4px; background: rgba(122, 190, 230, .2); transition: height .4s, background .4s; }
.sh-dots span.is-active { height: 46px; background: var(--lime); }
.sh-counter { position: absolute; right: 24px; top: 104px; font-family: Saira, sans-serif; font-size: 12px; letter-spacing: .3em; color: var(--muted); z-index: 3; }
.sh-counter span { color: var(--lime); }
.sh-hint { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); z-index: 3; transition: opacity .4s; }
.sh-hint i { width: 1px; height: 26px; background: linear-gradient(var(--lime), transparent); animation: floaty 1.8s ease-in-out infinite; }
.scroll-hero.is-scrolled .sh-hint { opacity: 0; }

/* ---------- Secciones ---------- */
.section { padding: 90px 28px; }
.bg-a { background: var(--bg-2); }
.bg-b { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.bg-c { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.section h2 { font-style: italic; font-weight: 800; font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -.01em; margin: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 44px; }
.section-head p { max-width: 440px; margin: 0; color: #9fbccd; font-size: 16px; line-height: 1.6; }
#catalogo .section-head { margin-bottom: 40px; }
.link-strong { font-weight: 600; }
.h2-block { margin-bottom: 44px !important; }

.cards { display: grid; gap: 20px; }
.cards-260 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.cards-240 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.card {
  padding: 30px; border-radius: 18px; background: linear-gradient(160deg, #0f2537, #0b1b29); border: 1px solid var(--line);
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: rgba(158, 222, 74, .5); transform: translateY(-4px); }
.card-num {
  width: 46px; height: 46px; border-radius: 12px; background: rgba(158, 222, 74, .14); border: 1px solid rgba(158, 222, 74, .4);
  display: flex; align-items: center; justify-content: center; font-family: Saira, sans-serif; font-weight: 800; color: var(--lime);
}
.card h3 { font-weight: 700; font-size: 23px; margin: 20px 0 10px; }
.card p { margin: 0; color: var(--text-3); font-size: 15px; line-height: 1.65; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px; align-items: center; }
.eyebrow { font-family: Saira, sans-serif; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--lime); }
.h2-tight { margin: 14px 0 18px !important; }
.body-copy { margin: 0 0 26px; color: var(--text-3); font-size: 16px; line-height: 1.7; max-width: 520px; }
.specs { display: grid; gap: 12px; max-width: 520px; }
.spec {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; padding: 14px 18px; border-radius: 12px;
  background: rgba(26, 127, 176, .1); border: 1px solid var(--line);
}
.spec span:first-child { font-weight: 600; }
.spec span:last-child { color: var(--lime); font-family: Saira, sans-serif; }

.photo {
  position: relative; aspect-ratio: 4 / 3; border-radius: 20px; border: 1px solid rgba(122, 190, 230, .2);
  background: repeating-linear-gradient(135deg, #0e2131 0 14px, #0b1a27 14px 28px);
  display: flex; align-items: center; justify-content: center;
}
.photo-real { margin: 0; overflow: hidden; background: #0b1a27; }
.photo-real img { width: 100%; height: 100%; object-fit: cover; }
.photo-real figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 10px 14px; border-radius: 10px;
  background: rgba(8, 19, 31, .78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 13px; color: var(--text-2);
}

.catalog-note { margin: -24px 0 28px; color: #9fbccd; font-size: 15px; }
.product { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); transition: border-color .25s, transform .25s; }
.product:hover { border-color: rgba(158, 222, 74, .45); transform: translateY(-3px); }
.product-img {
  position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 0; cursor: zoom-in; overflow: hidden;
  background: #0b1a27;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product:hover .product-img img { transform: scale(1.04); }
.product-count {
  position: absolute; right: 10px; bottom: 10px; padding: 5px 10px; border-radius: 999px;
  background: rgba(8, 19, 31, .8); color: var(--text); font-size: 12px; font-family: Barlow, sans-serif;
}
.product-body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.product h3 { font-weight: 700; font-size: 19px; margin: 0 0 6px; }
.product p { margin: 0 0 16px; font-size: 14px; line-height: 1.55; color: #9fbccd; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.price { font-size: 13px; color: var(--lime); font-weight: 600; }
.product-ask { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(158, 222, 74, .45); font-size: 13px; font-weight: 700; white-space: nowrap; }
.product-ask:hover { background: var(--lime); color: #07141f; }

/* Visor de fotos */
.lightbox { width: min(96vw, 1100px); max-height: 94vh; padding: 0; border: 1px solid var(--line-2); border-radius: 16px; background: #050d15; color: var(--text); overflow: visible; }
.lightbox::backdrop { background: rgba(3, 8, 14, .86); }
.lightbox figure { margin: 0; }
.lightbox img { display: block; width: 100%; max-height: calc(94vh - 52px); object-fit: contain; border-radius: 16px 16px 0 0; background: #000; }
.lightbox figcaption { padding: 14px 18px; font-size: 14px; color: var(--text-2); }
.lb-close, .lb-nav {
  position: absolute; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2);
  background: rgba(8, 19, 31, .85); color: var(--text); font-size: 26px; line-height: 1; cursor: pointer;
}
.lb-close { top: 10px; right: 10px; }
.lb-nav { top: 50%; translate: 0 -50%; }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-close:hover, .lb-nav:hover { border-color: var(--lime); color: var(--lime); }
.lightbox.is-single .lb-nav { display: none; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.step { position: relative; padding-top: 26px; border-top: 2px solid rgba(122, 190, 230, .3); }
.step-active { border-top-color: rgba(158, 222, 74, .55); }
.step-num { font-family: Saira, sans-serif; font-weight: 800; font-size: 15px; color: var(--lime); letter-spacing: .16em; }
.step h3 { font-weight: 700; font-size: 21px; margin: 10px 0 8px; }
.step p { margin: 0; color: #a0bcce; font-size: 15px; line-height: 1.6; }

/* ---------- Contacto ---------- */
.contact { align-items: start; background: radial-gradient(700px 400px at 20% 20%, rgba(158, 222, 74, .12), transparent 70%), var(--bg-2); }
.h2-contact { margin: 0 0 16px !important; }
.contact .body-copy { margin-bottom: 28px; max-width: 460px; }
.contact-list { display: grid; gap: 14px; max-width: 460px; }
.contact-wa {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-radius: 14px;
  background: var(--lime); color: #07141f; font-weight: 700; transition: background .2s;
}
.contact-wa:hover { background: var(--lime-hover); color: #07141f; }
.contact-row {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; padding: 18px 22px; border-radius: 14px;
  border: 1px solid var(--line-2); color: #cfe3ee;
}
.contact-val { color: #e8f0f5; text-align: right; line-height: 1.5; }
a.contact-val:hover { color: var(--lime); }
.contact-row-top { align-items: flex-start; }

.map-card { grid-column: 1 / -1; overflow: hidden; border-radius: 20px; border: 1px solid rgba(122, 190, 230, .18); background: var(--surface); }
/* Mapa claro de Google oscurecido para que combine con el sitio */
.map-card iframe { display: block; width: 100%; height: 380px; border: 0; filter: invert(.9) hue-rotate(180deg) saturate(.8) contrast(.95); }
.map-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; }
.map-bar strong { display: block; font-family: Saira, sans-serif; font-size: 17px; }
.map-bar span { font-size: 14px; color: var(--muted); }

.form-card { display: grid; gap: 16px; padding: 30px; border-radius: 20px; background: var(--surface); border: 1px solid rgba(122, 190, 230, .18); }
.form-card label { display: grid; gap: 7px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; padding: 14px 16px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--field); color: var(--text);
  font-family: Barlow, sans-serif; font-size: 16px; text-transform: none; letter-spacing: normal;
}
.form-card textarea { resize: vertical; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(158, 222, 74, .18); }
.form-card [aria-invalid="true"] { border-color: #ff7a6b; }
.form-msg { margin: 0; min-height: 1em; font-size: 14px; color: var(--lime); }
.form-msg.is-error { color: #ff9a8c; }
.form-msg:empty { display: none; }
.btn-submit {
  padding: 16px; border: none; border-radius: 12px; background: var(--blue); color: #fff;
  font-family: Saira, sans-serif; font-weight: 700; font-size: 15px; letter-spacing: .04em; cursor: pointer; transition: background .2s;
}
.btn-submit:hover { background: var(--blue-hover); }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 30px 28px;
  background: var(--bg); border-top: 1px solid rgba(122, 190, 230, .14); color: #7c9cb0; font-size: 14px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: auto; height: 38px; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  html { scroll-padding-top: 72px; }
  .site-header { flex-wrap: nowrap; padding: 10px 16px; }
  .brand { gap: 10px; min-width: 0; }
  .brand img { height: 44px; }
  .brand-text strong { font-size: 16px; white-space: nowrap; }
  .brand-text span { display: none; }
  .site-nav { flex: 0 0 auto; justify-content: flex-end; }
  .nav-link { display: none; }
  .nav-cta { padding: 9px 14px; font-size: 12px; }
  .section { padding: 64px 16px; }
  .site-footer { padding: 26px 16px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .form-card { padding: 22px; }
  .map-card iframe { height: 300px; }
  .contact-val { text-align: left; }
  .lb-nav { top: auto; bottom: 60px; translate: none; }
}

@media (max-width: 900px) {
  .scroll-hero { height: 320vh; }
  .sh-sticky { flex-direction: column; align-items: stretch; justify-content: flex-start; }
  .sh-media { position: relative; inset: auto; flex: 0 0 auto; justify-content: center; padding: 76px 0 0; }
  .sh-media canvas { width: 100%; max-width: 560px; max-height: 38vh; }
  .sh-glow { right: 50%; top: 28%; translate: 50% -50%; width: 90vw; }
  .sh-content { padding: 8px 16px 48px; max-width: none; }
  .sh-scene h1, .sh-scene h2 { font-size: clamp(34px, 9vw, 52px); margin-top: 14px; }
  .lead { font-size: 16px; margin-top: 14px; }
  .hero-actions { margin-top: 20px; }
  .hero-stats, .sh-dots, .sh-counter { display: none; }
  .sh-hint { bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sh-glow, .sh-hint i { animation: none; }
  .product, .product-img img { transition: none; }
  .sh-scene { transition: none; }
}

/* Producto agotado (se marca desde el panel) */
.product.is-sold .product-img img { filter: grayscale(.7) brightness(.7); }
.price-sold { color: #ff9a8c; }

/* Preguntas frecuentes */
.faq { display: grid; gap: 12px; max-width: 900px; }
.faq-item { border-radius: 14px; border: 1px solid var(--line); background: var(--surface); transition: border-color .2s; }
.faq-item[open] { border-color: rgba(158, 222, 74, .4); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; flex: 0 0 auto; font-size: 22px; line-height: 1; color: var(--lime); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item h3 { margin: 0; font-size: 17px; font-weight: 700; }
.faq-item p { margin: 0; padding: 0 22px 20px; color: var(--text-3); font-size: 15px; line-height: 1.65; }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; z-index: 60; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 8px; height: 58px; padding: 0 18px 0 14px; border-radius: 999px;
  background: #25d366; color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .55), 0 4px 12px rgba(0, 0, 0, .35);
  transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(37, 211, 102, .7), 0 4px 12px rgba(0, 0, 0, .35); }
.wa-float:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 640px) {
  .wa-float { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); width: 56px; height: 56px; padding: 0; justify-content: center; }
  .wa-float-label { display: none; }
}
@media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } }
