/* ── Reset ───────────────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;scroll-behavior:smooth;scroll-padding-top:72px}
body{font-family:'Outfit',system-ui,sans-serif;background:#080810;color:#e2e8f0;line-height:1.6;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
button{cursor:pointer;font-family:inherit;border:none;background:none}

/* ── Variables ──────────────────────────────────────────── */
:root{
  --amber:        #f59e0b;
  --amber-light:  #fcd34d;
  --amber-dim:    rgba(245,158,11,.15);
  --blue-deep:    #0f172a;
  --blue-mid:     #1e293b;
  --blue-muted:   #334155;
  --text:         #e2e8f0;
  --text-muted:   #94a3b8;
  --text-dim:     #64748b;
  --border:       rgba(255,255,255,.08);
  --border-mid:   rgba(255,255,255,.12);
  --surface:      rgba(255,255,255,.04);
  --surface-2:    rgba(255,255,255,.07);
  --radius:       8px;
  --radius-lg:    14px;
  --radius-xl:    20px;
  --glow:         0 0 40px rgba(245,158,11,.2);
  --shadow-dark:  0 4px 24px rgba(0,0,0,.5);
  --shadow-xl:    0 20px 60px rgba(0,0,0,.6);
}

/* ── Typography ─────────────────────────────────────────── */
h1{font-size:clamp(2.4rem,6vw,4.2rem);font-weight:800;line-height:1.08;letter-spacing:-.04em;color:#fff}
h2{font-size:clamp(1.6rem,3.5vw,2.6rem);font-weight:700;line-height:1.15;letter-spacing:-.03em;color:#fff}
h3{font-size:1.2rem;font-weight:700;line-height:1.3;color:#fff}
h4{font-size:1rem;font-weight:700;color:#fff}
p{color:var(--text-muted);line-height:1.75}
strong{color:var(--text)}

/* ── Buttons ────────────────────────────────────────────── */
.btn{display:inline-flex;align-items:center;gap:8px;padding:12px 26px;border-radius:var(--radius);font-weight:700;font-size:14.5px;transition:all .2s;white-space:nowrap;letter-spacing:.01em}
.btn-amber{background:var(--amber);color:#0a0a0a}
.btn-amber:hover{background:var(--amber-light);transform:translateY(-1px);box-shadow:0 8px 24px rgba(245,158,11,.4)}
.btn-outline{background:transparent;color:var(--text);border:1.5px solid var(--border-mid)}
.btn-outline:hover{border-color:var(--amber);color:var(--amber);background:var(--amber-dim)}
.btn-ghost{background:transparent;color:var(--text-muted);font-size:14px;font-weight:600}
.btn-ghost:hover{color:var(--amber)}
.btn-lg{padding:15px 36px;font-size:15.5px;border-radius:10px}

/* ── Layout ─────────────────────────────────────────────── */
.wrap{max-width:1200px;margin:0 auto;padding:0 28px}
.wrap-narrow{max-width:840px;margin:0 auto;padding:0 28px}
.sec{padding:88px 0}
.sec-sm{padding:56px 0}

/* ── Top bar ────────────────────────────────────────────── */
.topbar{background:var(--amber);color:#0a0a0a;text-align:center;padding:9px 20px;font-size:13px;font-weight:700;letter-spacing:.02em}
.topbar a{color:#0a0a0a;text-decoration:underline}

/* ── Navigation ─────────────────────────────────────────── */
.site-nav{position:sticky;top:0;z-index:100;background:rgba(8,8,16,.92);backdrop-filter:blur(16px);border-bottom:1px solid var(--border);height:68px;display:flex;align-items:center}
.nav-inner{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:1200px;margin:0 auto;padding:0 28px}
.nav-logo{font-size:1.45rem;font-weight:800;letter-spacing:-.04em;color:#fff;display:flex;align-items:center;gap:8px}
.nav-logo span{color:var(--amber)}
.nav-links{display:flex;align-items:center;gap:28px;list-style:none}
.nav-links a{font-size:14px;font-weight:600;color:var(--text-muted);transition:color .15s}
.nav-links a:hover{color:#fff}
.nav-links a.active{color:var(--amber)}
.nav-cta{display:flex;align-items:center;gap:10px}

/* ── Hero ───────────────────────────────────────────────── */
.hero{position:relative;min-height:88vh;display:flex;align-items:center;overflow:hidden;background:#000}
.hero-bg{position:absolute;inset:0;background-image:url('/img/hero.jpg');background-size:cover;background-position:center;opacity:.45;transition:opacity .3s}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(105deg,rgba(8,8,16,.96) 35%,rgba(8,8,16,.55) 65%,rgba(8,8,16,.2) 100%)}
.hero-content{position:relative;z-index:2;max-width:620px}
.hero-tag{display:inline-flex;align-items:center;gap:7px;background:var(--amber-dim);border:1px solid rgba(245,158,11,.3);color:var(--amber-light);border-radius:100px;padding:5px 14px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin-bottom:24px}
.hero h1{margin-bottom:20px}
.hero h1 em{font-style:normal;color:var(--amber-light)}
.hero-sub{font-size:1.1rem;color:#94a3b8;margin-bottom:36px;max-width:500px;line-height:1.7}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.hero-stats{display:flex;gap:32px;margin-top:48px;flex-wrap:wrap}
.hero-stat .val{font-size:1.9rem;font-weight:800;color:var(--amber);line-height:1}
.hero-stat .lbl{font-size:12px;color:var(--text-dim);margin-top:3px;font-weight:500}

/* ── Section headings ───────────────────────────────────── */
.sec-label{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--amber);margin-bottom:10px}
.sec-title{margin-bottom:14px}
.sec-sub{color:var(--text-muted);max-width:560px;font-size:15.5px}

/* ── Product Card (magazine) ────────────────────────────── */
.products-showcase{display:grid;grid-template-columns:1fr 1fr;gap:2px;margin-top:56px}
.product-feature{position:relative;overflow:hidden;background:#f8f8f5;min-height:420px;display:flex;flex-direction:column;justify-content:flex-end;cursor:pointer}
.product-feature:first-child{grid-row:span 2;min-height:860px}
.product-feature img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:24px;transition:transform .5s ease}
.product-feature:hover img{transform:scale(1.03)}
.product-feature-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(8,8,16,.92) 0%,rgba(8,8,16,.15) 45%,transparent 100%)}
.product-feature-content{position:relative;z-index:2;padding:32px}
.product-tech{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--amber);margin-bottom:8px}
.product-name{font-size:1.35rem;font-weight:800;color:#fff;line-height:1.2;margin-bottom:6px}
.product-feature:first-child .product-name{font-size:1.8rem}
.product-price{font-size:1.1rem;font-weight:800;color:var(--amber);margin-bottom:14px}
.product-feature:first-child .product-price{font-size:1.4rem}
.product-feature-cta{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:#fff;background:rgba(245,158,11,.2);border:1px solid rgba(245,158,11,.4);padding:8px 16px;border-radius:6px;transition:all .2s}
.product-feature:hover .product-feature-cta{background:var(--amber);color:#0a0a0a}
.product-badge{position:absolute;top:20px;left:20px;background:var(--amber);color:#0a0a0a;font-size:11px;font-weight:800;padding:4px 12px;border-radius:4px;letter-spacing:.06em;text-transform:uppercase;z-index:2}

/* ── Tech strip ─────────────────────────────────────────── */
.tech-strip{background:var(--blue-mid);border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:28px 0}
.tech-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--border)}
.tech-item{background:var(--blue-mid);padding:22px 28px;display:flex;align-items:center;gap:14px}
.tech-icon{width:42px;height:42px;border-radius:10px;background:var(--amber-dim);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.tech-item .lbl{font-size:12.5px;font-weight:700;color:#fff;line-height:1.3}
.tech-item .sub{font-size:12px;color:var(--text-dim);margin-top:2px}

/* ── Catalog grid (televisores page) ───────────────────── */
.catalog-filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:40px}
.filter-btn{padding:8px 18px;border-radius:100px;font-size:13px;font-weight:600;color:var(--text-muted);border:1.5px solid var(--border-mid);background:transparent;transition:all .15s}
.filter-btn.active,.filter-btn:hover{color:var(--amber);border-color:var(--amber);background:var(--amber-dim)}
.catalog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:24px}
.product-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;transition:border-color .2s,box-shadow .2s}
.product-card:hover{border-color:rgba(245,158,11,.3);box-shadow:0 8px 32px rgba(0,0,0,.4)}
.product-card-img{position:relative;aspect-ratio:16/10;overflow:hidden;background:#fff}
.product-card-img img{width:100%;height:100%;object-fit:contain;padding:8px;transition:transform .4s}
.product-card:hover .product-card-img img{transform:scale(1.04)}
.product-card-body{padding:20px}
.product-card-tech{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--amber);margin-bottom:6px}
.product-card-name{font-size:1rem;font-weight:700;color:#fff;margin-bottom:10px;line-height:1.35}
.product-card-specs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}
.spec-tag{font-size:11.5px;font-weight:600;color:var(--text-dim);background:var(--surface-2);padding:3px 9px;border-radius:4px}
.product-card-bottom{display:flex;align-items:center;justify-content:space-between;padding-top:14px;border-top:1px solid var(--border)}
.product-card-price{font-size:1.25rem;font-weight:800;color:var(--amber)}
.product-card-price-old{font-size:13px;color:var(--text-dim);text-decoration:line-through;margin-left:6px}

/* ── Blog cards ─────────────────────────────────────────── */
.blog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:28px;margin-top:0}
.blog-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;transition:border-color .2s,transform .2s}
.blog-card:hover{border-color:rgba(245,158,11,.3);transform:translateY(-3px)}
.blog-card-img{aspect-ratio:16/9;overflow:hidden;background:var(--blue-mid)}
.blog-card-img img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.blog-card:hover .blog-card-img img{transform:scale(1.06)}
.blog-card-body{padding:24px}
.blog-card-cat{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.09em;color:var(--amber);margin-bottom:8px}
.blog-card-title{font-size:1.05rem;font-weight:700;color:#fff;line-height:1.4;margin-bottom:10px}
.blog-card-excerpt{font-size:13.5px;color:var(--text-muted);line-height:1.65;margin-bottom:14px}
.blog-card-meta{display:flex;align-items:center;gap:14px;font-size:12px;color:var(--text-dim)}

/* ── Article page ───────────────────────────────────────── */
.article-hero{position:relative;height:60vh;overflow:hidden;display:flex;align-items:flex-end;background:#000}
.article-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.5}
.article-hero-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(8,8,16,1) 0%,rgba(8,8,16,.4) 60%,transparent 100%)}
.article-hero-content{position:relative;z-index:2;padding:0 0 48px}
.article-cat{display:inline-block;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--amber);background:var(--amber-dim);padding:4px 12px;border-radius:4px;margin-bottom:14px}
.article-hero h1{font-size:clamp(1.8rem,4.5vw,3.2rem);max-width:760px;line-height:1.12}
.article-meta{display:flex;gap:20px;align-items:center;margin-top:16px;font-size:13px;color:var(--text-dim);flex-wrap:wrap}
.article-body{padding:56px 0 80px}
.article-body p{font-size:16.5px;color:#cbd5e1;line-height:1.85;margin-bottom:22px;max-width:720px}
.article-body h2{font-size:1.65rem;color:#fff;margin:44px 0 16px}
.article-body h3{font-size:1.2rem;color:#e2e8f0;margin:32px 0 12px}
.article-body blockquote{border-left:3px solid var(--amber);padding:16px 24px;background:var(--surface);border-radius:0 var(--radius) var(--radius) 0;margin:28px 0;font-style:italic;font-size:17px;color:#e2e8f0}
.article-body .highlight{background:linear-gradient(135deg,rgba(245,158,11,.1),rgba(245,158,11,.05));border:1px solid rgba(245,158,11,.2);border-radius:var(--radius-lg);padding:28px 32px;margin:36px 0}
.article-body .highlight p{margin-bottom:0;max-width:none}

/* ── Product cards in article ───────────────────────────── */
.article-products{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:20px;margin:40px 0}
.article-product{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;transition:border-color .2s}
.article-product:hover{border-color:rgba(245,158,11,.3)}
.article-product img{width:100%;aspect-ratio:16/9;object-fit:contain;background:#fff;padding:10px}
.article-product-body{padding:16px}
.article-product-name{font-size:14px;font-weight:700;color:#fff;margin-bottom:4px}
.article-product-tech{font-size:11px;color:var(--amber);font-weight:700;text-transform:uppercase;letter-spacing:.06em;margin-bottom:10px}
.article-product-price{font-size:1.15rem;font-weight:800;color:var(--amber);margin-bottom:12px}
.article-product a.btn{font-size:13px;padding:9px 18px;width:100%;justify-content:center}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer{background:#050508;border-top:1px solid var(--border);padding:64px 0 32px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:48px;margin-bottom:48px}
.footer-logo{font-size:1.45rem;font-weight:800;letter-spacing:-.04em;color:#fff;margin-bottom:12px}
.footer-logo span{color:var(--amber)}
.footer-desc{font-size:13.5px;color:var(--text-dim);line-height:1.7;max-width:280px}
.footer-col h4{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--text-muted);margin-bottom:16px}
.footer-col ul{list-style:none;display:flex;flex-direction:column;gap:9px}
.footer-col ul a{font-size:13.5px;color:var(--text-dim);transition:color .15s}
.footer-col ul a:hover{color:var(--amber)}
.footer-contact{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.footer-contact a{font-size:13px;color:var(--text-dim);display:flex;align-items:center;gap:7px;transition:color .15s}
.footer-contact a:hover{color:var(--amber)}
.footer-bottom{border-top:1px solid var(--border);padding-top:28px;display:flex;justify-content:space-between;align-items:flex-start;gap:20px;flex-wrap:wrap}
.footer-bottom-legal{font-size:12px;color:var(--text-dim);line-height:1.7}
.footer-legal-links{display:flex;gap:20px;flex-wrap:wrap}
.footer-legal-links a{font-size:12px;color:var(--text-dim);transition:color .15s}
.footer-legal-links a:hover{color:var(--amber)}

/* ── Cookie banner ──────────────────────────────────────── */
.cookie-banner{position:fixed;bottom:0;left:0;right:0;z-index:999;background:#0f172a;border-top:1px solid var(--border-mid);padding:20px 28px;display:flex;align-items:center;gap:20px;flex-wrap:wrap;justify-content:space-between;transform:translateY(100%);transition:transform .35s ease;box-shadow:0 -8px 32px rgba(0,0,0,.5)}
.cookie-banner.visible{transform:translateY(0)}
.cookie-text{font-size:13.5px;color:var(--text-muted);line-height:1.6;flex:1;min-width:240px}
.cookie-text a{color:var(--amber);text-decoration:underline}
.cookie-btns{display:flex;gap:10px;flex-shrink:0}
.btn-cookie-accept{background:var(--amber);color:#0a0a0a;border:none;padding:10px 22px;border-radius:var(--radius);font-weight:700;font-size:13.5px;cursor:pointer}
.btn-cookie-decline{background:transparent;color:var(--text-muted);border:1.5px solid var(--border-mid);padding:10px 22px;border-radius:var(--radius);font-weight:700;font-size:13.5px;cursor:pointer}
.btn-cookie-decline:hover{border-color:var(--amber);color:var(--amber)}

/* ── Legal pages ────────────────────────────────────────── */
.legal-hero{background:var(--blue-mid);border-bottom:1px solid var(--border);padding:48px 0 36px}
.legal-body{padding:56px 0 80px;font-size:15px;color:var(--text-muted);line-height:1.8}
.legal-body h2{font-size:1.35rem;color:#fff;margin:36px 0 12px;padding-top:8px}
.legal-body h3{font-size:1.05rem;color:#e2e8f0;margin:24px 0 8px}
.legal-body p{margin-bottom:14px}
.legal-body ul{padding-left:20px;margin-bottom:14px;display:flex;flex-direction:column;gap:6px}
.legal-body table{width:100%;border-collapse:collapse;font-size:13.5px;margin:14px 0}
.legal-body th{text-align:left;padding:10px 12px;background:var(--surface);color:var(--text-muted);font-size:12px;font-weight:700;text-transform:uppercase;border:1px solid var(--border)}
.legal-body td{padding:10px 12px;border:1px solid var(--border);color:var(--text-muted)}
.legal-body a{color:var(--amber);text-decoration:underline}

/* ── Contact form ───────────────────────────────────────── */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:56px;margin-top:48px}
.form-field{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}
.form-field label{font-size:12.5px;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em}
.form-field input,.form-field textarea,.form-field select{background:var(--surface);border:1.5px solid var(--border-mid);border-radius:var(--radius);padding:12px 14px;font-size:14px;color:#fff;font-family:inherit;transition:border .15s}
.form-field input:focus,.form-field textarea:focus{outline:none;border-color:var(--amber)}
.form-field input.err,.form-field textarea.err{border-color:#f87171}
.form-err-msg{font-size:12px;color:#f87171;margin-top:4px;display:none}
.form-inline-error{background:rgba(248,113,113,.1);border:1px solid rgba(248,113,113,.3);border-radius:var(--radius);padding:12px;font-size:13.5px;color:#fca5a5;margin-bottom:14px;display:none}

/* ── Cart icon in nav ───────────────────────────────────── */
.nav-cart{position:relative;display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:var(--radius);color:var(--text-muted);transition:color .15s,background .15s}
.nav-cart:hover{color:#fff;background:var(--surface-2)}
.nav-cart-badge{position:absolute;top:-4px;right:-4px;min-width:18px;height:18px;background:var(--amber);color:#0a0a0a;font-size:11px;font-weight:800;border-radius:9px;display:flex;align-items:center;justify-content:center;padding:0 4px;line-height:1}

/* ── Mobile nav ─────────────────────────────────────────── */
.nav-burger{display:none;flex-direction:column;justify-content:space-between;width:26px;height:20px;padding:0;background:none;border:none;cursor:pointer}
.nav-burger span{display:block;height:2px;background:#fff;border-radius:2px;transition:transform .25s,opacity .2s}
.nav-burger.open span:nth-child(1){transform:translateY(9px) rotate(45deg)}
.nav-burger.open span:nth-child(2){opacity:0}
.nav-burger.open span:nth-child(3){transform:translateY(-9px) rotate(-45deg)}
.nav-mobile-overlay{position:fixed;inset:0;top:0;z-index:200;background:rgba(8,8,16,.98);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;transform:translateX(100%);transition:transform .3s ease;padding:80px 28px 40px}
.nav-mobile-overlay.open{transform:translateX(0)}
.nav-mobile-overlay ul{list-style:none;display:flex;flex-direction:column;align-items:center;gap:6px;width:100%}
.nav-mobile-overlay ul a{display:block;font-size:1.3rem;font-weight:700;color:#fff;padding:12px 20px;text-align:center;border-radius:var(--radius);transition:background .15s,color .15s}
.nav-mobile-overlay ul a:hover{background:var(--amber-dim);color:var(--amber)}

/* ── Responsive ─────────────────────────────────────────── */
@media(max-width:1024px){
  .products-showcase{grid-template-columns:1fr}
  .product-feature:first-child{min-height:520px}
  .product-feature:first-child .product-name{font-size:1.5rem}
  .footer-grid{grid-template-columns:1fr 1fr}
  .tech-grid{grid-template-columns:repeat(2,1fr)}
  .contact-grid{grid-template-columns:1fr}
}
@media(max-width:768px){
  .sec{padding:64px 0}
  .nav-links{display:none}
  .nav-burger{display:flex}
  .nav-cta-desktop{display:none}
  .hero{min-height:70vh}
  .hero h1{font-size:2rem}
  .hero-stats{gap:20px}
  .footer-grid{grid-template-columns:1fr}
  .footer-bottom{flex-direction:column}
  .blog-grid{grid-template-columns:1fr}
  .catalog-grid{grid-template-columns:1fr}
  .article-hero{height:50vh}
  .article-hero h1{font-size:1.7rem}
  .article-body p{font-size:15.5px}
  .article-products{grid-template-columns:1fr}
}
@media(max-width:480px){
  .wrap{padding:0 18px}
  .hero-actions{flex-direction:column;align-items:stretch}
  .hero-actions .btn{justify-content:center}
  .tech-grid{grid-template-columns:1fr}
  .topbar{font-size:11.5px}
}
