/* ===== Espectro RF Tech ===== */
:root {
  --navy: #0b1622;
  --navy-2: #13243a;
  --ink: #1a2433;
  --muted: #5b6777;
  --line: #e2e7ee;
  --bg: #f4f6f9;
  --card: #ffffff;
  --orange: #ff6a00;
  --orange-d: #e05a00;
  --wa: #1fa855;
  --wa-d: #178a45;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(11, 22, 34, .08);
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font: 16px/1.55 var(--body); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
body.lock { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; letter-spacing: .01em; }
h2 { font-size: clamp(30px, 4vw, 42px); text-transform: uppercase; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.eyebrow { font: 600 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; }
[hidden] { display: none !important; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 12px 20px; font-weight: 600; font-size: 15px; text-decoration: none; transition: background .15s, transform .1s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-d); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-d); }
.btn-wa:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-lg { padding: 15px 26px; font-size: 17px; }
.btn-block { width: 100%; }

/* ---------- Cabecera ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: var(--navy); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.topbar-in { display: flex; align-items: center; gap: 24px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 38px; height: 38px; flex: none; }
.logo-text { font-family: var(--head); font-size: 24px; letter-spacing: .04em; line-height: 1; }
.logo-text b { font-weight: 700; }
.logo-text i { font-style: normal; font-weight: 600; color: var(--orange); margin-left: 6px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: #c9d3df; transition: color .15s; }
.nav a:hover { color: #fff; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; background: rgba(255,255,255,.08); border-radius: 8px; padding: 3px; }
.lang button { border: 0; background: none; color: #c9d3df; font-size: 13px; font-weight: 600; padding: 5px 9px; border-radius: 6px; }
.lang button.on { background: #fff; color: var(--navy); }
.cart-btn { position: relative; width: 42px; height: 42px; border: 0; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; }
.cart-btn svg { width: 22px; height: 22px; }
.cart-btn.bump { animation: bump .35s; }
@keyframes bump { 50% { transform: scale(1.15); } }
.cart-count { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; display: none; place-items: center; }
.cart-count.on { display: grid; }
.menu-btn { display: none; width: 42px; height: 42px; border: 0; background: none; padding: 10px; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2px; background: #fff; border-radius: 2px; }

/* ---------- Portada ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% 20%, #1d3654 0%, var(--navy) 60%); color: #fff; }
.hero-wave { position: absolute; inset: auto 0 0 0; width: 100%; height: 60%; opacity: .18; }
.hero-wave path { fill: none; stroke: var(--orange); stroke-width: 2; vector-effect: non-scaling-stroke; }
.hero-wave path + path { stroke: #4fa3ff; }
.hero-in > *, .about-in > *, .modal-grid > * { min-width: 0; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 70px; padding-bottom: 80px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); text-transform: uppercase; margin-bottom: 18px; }
.hero .lead { font-size: 18px; color: #c9d3df; max-width: 540px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-img { background: #fff; border-radius: 22px; padding: 22px; box-shadow: 0 30px 60px rgba(0,0,0,.35); transform: rotate(1.5deg); max-width: 520px; justify-self: end; }
.hero-img img { border-radius: 10px; }

/* ---------- Ventajas ---------- */
.perks { background: #fff; border-bottom: 1px solid var(--line); }
.perks-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 26px; padding-bottom: 26px; }
.perk { display: flex; gap: 14px; align-items: flex-start; }
.perk svg { width: 40px; height: 40px; flex: none; padding: 9px; border-radius: 10px; background: #fff1e6; color: var(--orange); }
.perk b { display: block; font-size: 15px; }
.perk span { color: var(--muted); font-size: 14px; }

/* ---------- Catálogo ---------- */
.catalog { padding: 80px 0; }
.sec-head { margin-bottom: 30px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 16px; font-size: 14px; font-weight: 500; color: var(--muted); }
.filters button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(11,22,34,.14); }
.card-img { position: relative; border: 0; padding: 18px; background: #fff; border-bottom: 1px solid var(--line); height: 270px; display: block; width: 100%; }
.card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.04); }
.badge { position: absolute; top: 14px; left: 14px; z-index: 1; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin-bottom: 6px; }
.card h3 { font-size: 24px; }
.card-body > p:not(.card-cat):not(.card-price) { color: var(--muted); font-size: 15px; }
.card-price { font-family: var(--head); font-size: 22px; font-weight: 700; color: var(--navy); margin-top: auto; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- Nosotros ---------- */
.about { background: #fff; padding: 80px 0; }
.about-in { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about p:not(.eyebrow) { color: var(--muted); font-size: 17px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; align-items: center; gap: 18px; background: var(--bg); border-radius: var(--radius); padding: 18px 22px; font-weight: 500; }
.steps b { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--head); font-size: 22px; }

/* ---------- Contacto ---------- */
.contact { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 64px 0; }
.contact-in { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.contact h2 { margin-bottom: 8px; }
.contact p { color: #c9d3df; margin: 0; max-width: 560px; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.contact-mail { color: #c9d3df; font-size: 15px; }

/* ---------- Pie ---------- */
.footer { background: #070f18; color: #9aa7b6; padding: 44px 0 0; font-size: 14px; }
.footer-in { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; }
.footer .logo-text { color: #fff; font-size: 22px; display: block; margin-bottom: 10px; }
.footer p { margin: 0 0 4px; }
.footer-nav { display: flex; gap: 22px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 9px; background: rgba(255,255,255,.07); display: grid; place-items: center; color: #fff; }
.socials svg { width: 20px; height: 20px; }
.footer-copy { border-top: 1px solid rgba(255,255,255,.07); padding-top: 16px; padding-bottom: 20px; font-size: 13px; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(31,168,85,.45); transition: transform .15s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }

/* ---------- Ficha (modal) ---------- */
.modal, .drawer { position: fixed; inset: 0; z-index: 60; }
.modal-bg { position: absolute; inset: 0; background: rgba(7,15,24,.6); backdrop-filter: blur(3px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal-box { position: relative; margin: 4vh auto; width: min(1000px, calc(100% - 32px)); max-height: 92vh; overflow: auto; background: #fff; border-radius: 18px; animation: rise .25s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--bg); font-size: 24px; line-height: 1; color: var(--ink); }
.x:hover { background: var(--line); }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; }
.m-gallery { padding: 28px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.m-thumbs { display: flex; gap: 8px; }
.m-thumbs button { width: 64px; height: 64px; padding: 4px; border: 2px solid var(--line); border-radius: 8px; background: #fff; }
.m-thumbs button.on { border-color: var(--orange); }
.m-info { padding: 30px 30px 26px; }
.m-code { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.m-info h3 { font-size: 30px; padding-right: 30px; }
.m-price { font-family: var(--head); font-size: 26px; font-weight: 700; color: var(--orange); }
.specs { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 14px; }
.specs th, .specs td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { color: var(--muted); font-weight: 500; width: 46%; padding-right: 10px; }
.m-buy { display: flex; gap: 10px; margin-bottom: 10px; }
.m-buy .btn { flex: 1; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button { width: 38px; height: 44px; border: 0; background: none; font-size: 20px; color: var(--ink); }
.qty button:hover { background: var(--bg); }
.qty input { width: 44px; border: 0; text-align: center; font: 600 16px var(--body); -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.m-info h4 { font-size: 20px; text-transform: uppercase; margin-top: 26px; }
.feat { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14.5px; color: #374253; }
.feat li { position: relative; padding-left: 24px; }
.feat li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 10px; height: 6px; border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg); }

/* ---------- Pedido (drawer) ---------- */
.drawer-box { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; display: flex; flex-direction: column; animation: slide .25s; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.drawer-head { position: relative; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 26px; text-transform: uppercase; margin: 0; }
.drawer-head .x { top: 16px; }
.drawer-body { flex: 1; overflow: auto; padding: 12px 24px; }
.empty { color: var(--muted); padding: 30px 0; text-align: center; }
.line { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line img { width: 70px; height: 70px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; padding: 4px; flex: none; }
.line-info { flex: 1; min-width: 0; }
.line-info b { display: block; font-size: 14.5px; line-height: 1.3; }
.line-info small { color: var(--muted); }
.qty.sm { display: inline-flex; margin-top: 6px; }
.qty.sm button { width: 30px; height: 30px; font-size: 16px; }
.qty.sm span { min-width: 28px; text-align: center; font-weight: 600; }
.line-x { border: 0; background: none; font-size: 22px; color: var(--muted); width: 32px; height: 32px; border-radius: 50%; }
.line-x:hover { background: var(--bg); color: var(--ink); }
.drawer-foot { padding: 18px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.field { display: grid; gap: 4px; font-size: 13px; font-weight: 500; color: var(--muted); }
.field input { border: 1.5px solid var(--line); border-radius: 9px; padding: 10px 12px; font: 15px var(--body); color: var(--ink); }
.field input:focus { outline: none; border-color: var(--orange); }
.hint { font-size: 12.5px; color: var(--muted); margin: 0; text-align: center; }

/* ---------- Aviso ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translate(-50%, 20px); background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 10px; font-size: 14.5px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Teclado ---------- */
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; padding-top: 46px; padding-bottom: 56px; }
  .hero-img { justify-self: center; max-width: 360px; transform: none; }
  .about-in { grid-template-columns: 1fr; gap: 30px; }
  .modal-grid { grid-template-columns: 1fr; }
  .m-gallery { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 22px 16px; }
  .m-gallery img { max-height: 300px; object-fit: contain; margin: 0 auto; }
}
@media (max-width: 760px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .topbar-in { gap: 10px; }
  .logo-text { font-size: 20px; }
  .logo-mark { width: 34px; height: 34px; }
  .menu-btn { display: flex; }
  .nav { position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--navy); padding: 6px 16px 14px; box-shadow: 0 12px 24px rgba(0,0,0,.3); display: none; }
  .nav-open .nav { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 16px; }
  .top-actions { margin-left: auto; gap: 8px; }
  .perks-in { grid-template-columns: 1fr; gap: 16px; }
  .catalog, .about { padding: 56px 0; }
  .grid { grid-template-columns: 1fr; }
  .modal-box { margin: 0; width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
  .m-info { padding: 22px 18px; }
  .m-buy { flex-wrap: wrap; }
  .footer-in { flex-direction: column; }
}
@media (max-width: 380px) {
  .logo-text i { display: none; }
  .lang button { padding: 5px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
