/*
Theme Name: Voltio Listo
Theme URI: https://voltiolisto.com/
Author: Voltio Listo
Description: Tema editorial para dimensionar y comparar respaldo eléctrico portátil para hogares hispanos de Estados Unidos.
Version: 1.0.0
Text Domain: voltiolisto
*/

:root {
  --vl-night: #07151d;
  --vl-panel: #0e2530;
  --vl-panel-2: #153540;
  --vl-paper: #f4f6f1;
  --vl-white: #ffffff;
  --vl-lime: #b9f238;
  --vl-cyan: #37d5e8;
  --vl-amber: #ffba45;
  --vl-ink: #10212a;
  --vl-muted: #58707b;
  --vl-line: #cbd6d4;
  --vl-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--vl-paper);
  color: var(--vl-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select { font: inherit; }
.screen-reader-text { position: absolute!important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed!important; z-index: 1000; top: 12px; left: 12px; width: auto; height: auto; padding: 10px 14px; background: #fff; clip: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 72px;
  background: rgba(7,21,29,.94);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
}
.header-inner { max-width: var(--vl-max); margin: auto; min-height: 72px; padding: 0 24px; display: grid; grid-template-columns: auto 1fr auto; gap: 38px; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; font-weight: 900; letter-spacing: -.03em; font-size: 1.12rem; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--vl-lime); color: var(--vl-night); box-shadow: inset 0 0 0 2px rgba(7,21,29,.2); }
.brand-mark svg { width: 22px; height: 22px; }
.desktop-nav ul { display: flex; justify-content: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.desktop-nav a { color: #e7f1f2; text-decoration: none; font-size: .88rem; font-weight: 750; }
.desktop-nav a:hover, .desktop-nav a:focus { color: var(--vl-lime); }
.header-cta { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 999px; background: var(--vl-lime); color: var(--vl-night); text-decoration: none; font-size: .82rem; font-weight: 900; }
.menu-toggle { display: none; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; padding: 8px 11px; background: transparent; color: #fff; font-weight: 800; }

.hero { position: relative; overflow: hidden; background: var(--vl-night); color: #fff; }
.hero:before { content: ""; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(55,213,232,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(55,213,232,.18) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to right, transparent, #000 45%, #000); }
.hero-inner { position: relative; max-width: var(--vl-max); margin: auto; min-height: 680px; padding: 90px 24px 86px; display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(44px, 7vw, 92px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 20px; color: var(--vl-cyan); font-size: .75rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow:before { content: ""; width: 24px; height: 3px; background: var(--vl-lime); }
h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -.045em; }
h1 { margin-bottom: 24px; font-size: clamp(3.35rem, 6vw, 6.1rem); }
h2 { font-size: clamp(2.25rem, 4vw, 4rem); }
h3 { font-size: 1.45rem; }
.hero h1 span { color: var(--vl-lime); }
.hero-intro { max-width: 590px; color: #cbdadd; font-size: clamp(1.05rem, 1.5vw, 1.24rem); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 13px 18px; border: 1px solid var(--vl-night); border-radius: 9px; background: var(--vl-night); color: #fff; font-weight: 850; text-decoration: none; cursor: pointer; transition: transform .18s, box-shadow .18s; }
.button:hover, .button:focus { transform: translateY(-2px); box-shadow: 0 7px 20px rgba(7,21,29,.18); }
.button.lime { background: var(--vl-lime); color: var(--vl-night); border-color: var(--vl-lime); }
.button.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.trust-strip { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 35px; color: #9eb2b7; font-size: .78rem; font-weight: 750; }
.trust-strip span { display: inline-flex; align-items: center; gap: 6px; }
.trust-strip i { width: 7px; height: 7px; border-radius: 50%; background: var(--vl-lime); box-shadow: 0 0 0 4px rgba(185,242,56,.12); }

.calculator-card { position: relative; background: var(--vl-white); color: var(--vl-ink); padding: clamp(24px, 4vw, 38px); border-radius: 18px; box-shadow: 0 26px 70px rgba(0,0,0,.3); }
.calculator-card:before { content: "CALCULADORA 01"; position: absolute; top: -12px; right: 22px; padding: 5px 10px; border-radius: 5px; background: var(--vl-cyan); color: var(--vl-night); font-size: .66rem; letter-spacing: .12em; font-weight: 950; }
.calculator-card h2 { margin-bottom: 7px; font-size: 1.7rem; }
.calculator-card .helper { margin: 0 0 22px; color: var(--vl-muted); font-size: .86rem; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-field label { display: block; margin-bottom: 5px; font-size: .74rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.calc-field input, .calc-field select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--vl-line); border-radius: 8px; background: #f8faf7; color: var(--vl-ink); }
.calc-presets { display: flex; gap: 7px; flex-wrap: wrap; margin: 18px 0; }
.calc-presets button { padding: 7px 10px; border: 1px solid var(--vl-line); border-radius: 999px; background: #fff; color: var(--vl-ink); font-size: .75rem; font-weight: 800; cursor: pointer; }
.calc-presets button:hover, .calc-presets button:focus { border-color: var(--vl-panel); background: #eef7e5; }
.calc-result { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; margin-top: 20px; padding: 20px; border-radius: 11px; background: var(--vl-night); color: #fff; }
.calc-result small { display: block; color: #9fb4b9; }
.calc-result strong { display: block; margin-top: 2px; color: var(--vl-lime); font-size: clamp(2rem, 5vw, 3.35rem); line-height: 1; letter-spacing: -.06em; }
.calc-result .result-note { max-width: 180px; color: #c7d5d8; font-size: .72rem; line-height: 1.45; }

.section { padding: clamp(72px, 9vw, 118px) 24px; }
.section-inner { max-width: var(--vl-max); margin: auto; }
.section-head { display: grid; grid-template-columns: 1fr minmax(270px, 430px); gap: 45px; align-items: end; margin-bottom: 45px; }
.section-head h2 { margin-bottom: 0; }
.section-head p { margin: 0; color: var(--vl-muted); }
.use-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.use-card { position: relative; min-height: 250px; padding: 25px; overflow: hidden; border: 1px solid var(--vl-line); border-radius: 13px; background: #fff; text-decoration: none; }
.use-card:after { content: "→"; position: absolute; right: 21px; bottom: 18px; color: var(--vl-muted); font-size: 1.4rem; }
.use-card:hover { border-color: var(--vl-panel); box-shadow: 0 15px 35px rgba(16,33,42,.09); }
.use-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--vl-night); color: var(--vl-lime); font-size: 1.35rem; font-weight: 900; }
.use-card h3 { margin: 48px 0 10px; }
.use-card p { margin: 0; color: var(--vl-muted); font-size: .9rem; }

.how-section { background: var(--vl-panel); color: #fff; }
.how-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(42px, 8vw, 100px); align-items: start; }
.how-grid > div:first-child p { color: #bdd0d4; }
.steps { border-top: 1px solid rgba(255,255,255,.18); }
.step { display: grid; grid-template-columns: 54px 1fr; gap: 15px; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.step-number { color: var(--vl-lime); font-weight: 950; }
.step h3 { margin: 0 0 6px; color: #fff; }
.step p { margin: 0; color: #b8ccd0; font-size: .9rem; }

.guides-section { background: #e9eeea; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { min-height: 310px; display: flex; flex-direction: column; padding: 25px; border-radius: 13px; background: #fff; border-top: 5px solid var(--vl-cyan); }
.post-card:nth-child(2n) { border-color: var(--vl-lime); }
.post-card:nth-child(3n) { border-color: var(--vl-amber); }
.post-card .meta { color: var(--vl-muted); font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.post-card h3 { margin: 28px 0 12px; }
.post-card h3 a { text-decoration: none; }
.post-card p { color: var(--vl-muted); font-size: .9rem; }
.post-card .read-more { margin-top: auto; font-weight: 850; }
.empty-state { padding: 28px; border: 1px dashed var(--vl-muted); border-radius: 12px; background: #fff; }

.method-banner { background: var(--vl-lime); }
.method-inner { max-width: var(--vl-max); margin: auto; padding: clamp(55px, 8vw, 90px) 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 65px; align-items: center; }
.method-inner h2 { margin-bottom: 0; color: var(--vl-night); }
.method-list { display: grid; gap: 10px; }
.method-list p { margin: 0; padding: 12px 15px; border-left: 4px solid var(--vl-night); background: rgba(255,255,255,.55); font-size: .91rem; }

.content-wrap { max-width: 1120px; margin: auto; padding: clamp(60px, 8vw, 100px) 24px; }
.article { max-width: 790px; margin: auto; }
.article-header { margin-bottom: 42px; }
.article-header h1, .archive-title { margin-bottom: 18px; font-size: clamp(2.7rem, 6vw, 5rem); }
.article-meta { color: var(--vl-muted); font-size: .84rem; }
.article-content h2 { margin-top: 2.1em; font-size: 2.05rem; }
.article-content h3 { margin-top: 1.7em; }
.article-content table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: .89rem; }
.table-scroll { max-width: 100%; overflow-x: auto; }
.article-content th, .article-content td { padding: 12px; border: 1px solid var(--vl-line); text-align: left; vertical-align: top; }
.article-content th { background: var(--vl-panel); color: #fff; }
.article-content blockquote, .editorial-note, .affiliate-disclosure { margin: 26px 0; padding: 18px 20px; border-left: 5px solid var(--vl-cyan); background: #e9f8fa; }
.affiliate-disclosure { border-color: var(--vl-amber); background: #fff4dc; font-size: .88rem; }
.affiliate-cta { margin: 30px 0; padding: 24px; border-radius: 12px; background: var(--vl-panel); color: #fff; }
.pagination { margin-top: 42px; }
.pagination .nav-links { display: flex; gap: 9px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 7px 11px; border: 1px solid var(--vl-line); border-radius: 6px; }

.site-footer { background: var(--vl-night); color: #c8d5d7; }
.footer-inner { max-width: var(--vl-max); margin: auto; padding: 52px 24px; display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 55px; }
.footer-inner h3 { color: #fff; font-size: 1rem; letter-spacing: 0; }
.footer-brand { color: #fff; font-size: 1.25rem; font-weight: 900; }
.footer-copy { max-width: 390px; color: #91a8ad; font-size: .84rem; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: #c8d5d7; font-size: .84rem; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 24px; text-align: center; color: #779198; font-size: .74rem; }

@media (max-width: 940px) {
  .desktop-nav, .header-cta { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .menu-toggle { display: block; }
  .desktop-nav.is-open { display: block; grid-column: 1 / -1; padding-bottom: 18px; }
  .desktop-nav.is-open ul { flex-direction: column; align-items: flex-start; }
  .hero-inner, .how-grid, .method-inner { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 70px; }
  .calculator-card { max-width: 680px; }
  .use-grid { grid-template-columns: 1fr 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 14px; }
  .post-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero-inner { min-height: 0; }
  h1 { font-size: clamp(3rem, 15vw, 4.45rem); }
  .calc-grid, .use-grid, .post-grid, .footer-inner { grid-template-columns: 1fr; }
  .calc-result { grid-template-columns: 1fr; }
  .calc-result .result-note { max-width: none; }
  .use-card { min-height: 220px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *:before, *:after { transition-duration: .01ms!important; } }
