:root {
  --navy: #0f1d3a;
  --navy-2: #16294f;
  --blue: #1f4e8c;
  --blue-soft: #e8eef8;
  --ink: #1a2233;
  --muted: #5b6577;
  --line: #dfe4ec;
  --bg: #ffffff;
  --bg-alt: #f4f6fa;
  --wa: #1fa855;
  --wa-dark: #178a45;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }

/* Logo recortado del banner (2000 x 960) */
.logo-crop {
  width: 46px; aspect-ratio: 550 / 355;
  background: url("img/banner.webp") no-repeat;
  background-size: 363.6% auto;
  background-position: 1.38% 6.6%;
  flex: none;
}
.logo-full {
  width: 100%; aspect-ratio: 1485 / 360;
  background: url("img/banner.webp") no-repeat;
  background-size: 134.7% auto;
  background-position: 2.9% 6.67%;
  position: relative;
}
/* Tapa la esquina de la laptop que aparece en el banner */
.logo-full::after {
  content: ""; position: absolute; top: 0; right: 0;
  width: 14%; height: 18%; background: #fff;
  box-shadow: 0 0 0 0 #fff;
}
.logo-full::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0;
  width: 1.6%; background: #fff;
}

/* Barra superior */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-family: Oswald, sans-serif; font-size: 1.45rem; letter-spacing: .04em; }
.brand-text small { font-size: .72rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; white-space: nowrap; }
.brand-text small { white-space: nowrap; }
.nav a:hover { color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); font-weight: 600; box-shadow: inset 0 -2px 0 var(--blue); }

/* Avances en el inicio */
.teaser-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.teaser-head .section-sub { margin: 0; max-width: 44rem; }
.grid.destacados { grid-template-columns: repeat(4, 1fr); }
.teaser-foot { text-align: center; margin: 28px 0 0; }

/* Pie de página */
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; margin: 0; }
.footer-links a { color: #fff; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; font-size: 1.3rem; padding: 4px 10px; cursor: pointer; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 10px; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn.sm { padding: 8px 14px; font-size: .9rem; }
.btn.block { display: flex; width: 100%; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue); }
.btn-wa, .nav a.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover, .nav a.btn-wa:hover { background: var(--wa-dark); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); }

/* Hero */
.hero { background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%); padding: 64px 0 72px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--blue); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin: 0 0 10px; }
.hero h1 { font-family: Oswald, sans-serif; color: var(--navy); font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.08; margin: 0 0 16px; }
.lead { font-size: 1.08rem; color: var(--muted); margin: 0 0 26px; max-width: 34rem; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-logo { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: 0 18px 40px -24px rgba(15,29,58,.35); }

/* Secciones */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.section-title { font-family: Oswald, sans-serif; color: var(--navy); font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin: 0 0 6px; text-transform: uppercase; letter-spacing: .02em; }
.section-sub { color: var(--muted); margin: 0 0 32px; }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.service .ico { width: 48px; height: 48px; display: grid; place-items: center; font-size: 1.5rem; background: var(--blue-soft); border-radius: 12px; margin-bottom: 14px; }
.service h3 { margin: 0 0 8px; font-size: 1.08rem; color: var(--navy); }
.service p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Empresas */
.biz { background: var(--navy); color: #fff; }
.light { color: #fff; }
.eyebrow.light { color: #8fb3ea; }
.section-sub.light { color: #c9d3e6; max-width: 46rem; }
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.biz-card { background: var(--navy-2); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 24px; }
.biz-card h3 { margin: 0 0 6px; font-family: Oswald, sans-serif; font-size: 1.3rem; letter-spacing: .01em; }
.biz-card p { margin: 0 0 12px; color: #c9d3e6; font-size: .95rem; }
.biz-card ul { margin: 0; padding: 0; list-style: none; }
.biz-card li { position: relative; padding: 5px 0 5px 22px; font-size: .92rem; border-top: 1px solid rgba(255,255,255,.07); }
.biz-card li::before { content: "✓"; position: absolute; left: 0; color: #6fd39a; font-weight: 700; }
.biz-sub { font-family: Oswald, sans-serif; font-size: 1.5rem; margin: 48px 0 18px; }
.steps { list-style: none; counter-reset: paso; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { counter-increment: paso; border-top: 2px solid #8fb3ea; padding-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.steps li::before { content: "0" counter(paso); font-family: Oswald, sans-serif; color: #8fb3ea; font-size: 1.1rem; }
.steps b { font-size: 1.05rem; }
.steps span { color: #c9d3e6; font-size: .92rem; }
.sectors { display: flex; flex-wrap: wrap; gap: 10px; }
.sectors span { border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 8px 16px; font-size: .9rem; }
.biz-cta { margin-top: 48px; background: #fff; color: var(--ink); border-radius: 18px; padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.biz-cta h3 { margin: 0 0 4px; font-family: Oswald, sans-serif; color: var(--navy); font-size: 1.5rem; }
.biz-cta p { margin: 0; color: var(--muted); }
.biz-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* Caja Clara */
.cc { background: linear-gradient(180deg, #fff 0%, var(--blue-soft) 100%); }
.cc-head { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: center; margin-bottom: 32px; }
.cc-lead { font-size: 1.08rem; color: var(--ink); margin: 0 0 20px; max-width: 40rem; }
.cc-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.cc-meta { color: var(--muted); font-size: .86rem; margin: 14px 0 0; }
.cc-giros { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc-giros li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-weight: 600; color: var(--navy); text-align: center; }
.cc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cc-grid article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.cc-grid h3 { margin: 0 0 6px; color: var(--navy); font-size: 1rem; }
.cc-grid p { margin: 0; color: var(--muted); font-size: .9rem; }
.cc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.cc-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.cc-box h3 { font-family: Oswald, sans-serif; color: var(--navy); font-size: 1.3rem; margin: 0 0 12px; }
.cc-pasos { margin: 0; padding-left: 20px; }
.cc-pasos li { margin-bottom: 8px; }
.cc-nota { color: var(--muted); font-size: .9rem; margin: 12px 0; }
.cc-sub { font-family: Oswald, sans-serif; color: var(--navy); font-size: 1.6rem; margin: 40px 0 4px; scroll-margin-top: 80px; }
.cc-subtxt { color: var(--muted); margin: 0 0 18px; }
.cc-planes { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 16px; align-items: stretch; }
.cc-plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.cc-plan h3 { font-family: Oswald, sans-serif; color: var(--navy); font-size: 1.35rem; margin: 0 0 6px; }
.cc-plan .eyebrow { margin-bottom: 4px; }
.cc-precio { font-family: Oswald, sans-serif; font-size: 2.2rem; color: var(--navy); margin: 4px 0 12px; }
.cc-precio small { font-family: Inter, sans-serif; font-size: .8rem; color: var(--muted); margin-left: 6px; font-weight: 500; }
.cc-plan > ul:not(.cc-items) { list-style: none; padding: 0; margin: 0 0 18px; }
.cc-plan > ul:not(.cc-items) li { padding: 5px 0 5px 22px; position: relative; font-size: .93rem; }
.cc-plan > ul:not(.cc-items) li::before { content: "✓"; position: absolute; left: 0; color: var(--wa-dark); font-weight: 700; }
.cc-plan .btn { margin-top: auto; }
.cc-total { border-bottom: none !important; font-weight: 700; font-size: 1.05rem; }
.cc-total b { font-size: 1.2rem; }
.cc-paquete { border: 2px solid var(--navy); }
.cc-paquete .eyebrow { margin-bottom: 4px; }
.cc-items { list-style: none; padding: 0; margin: 0; }
.cc-items li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.cc-items b { color: var(--navy); white-space: nowrap; }

/* Cómo comprar */
.buy { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 28px; }
.buy h3 { font-family: Oswald, sans-serif; color: var(--navy); font-size: 1.3rem; margin: 0 0 14px; }
.buy-steps { list-style: none; counter-reset: compra; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.buy-steps li { counter-increment: compra; display: flex; flex-direction: column; gap: 2px; padding-left: 40px; position: relative; }
.buy-steps li::before { content: counter(compra); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.buy-steps b { color: var(--navy); font-size: .95rem; }
.buy-steps span { color: var(--muted); font-size: .88rem; }
.buy-envio { margin: 16px 0 0; padding: 12px 14px; background: var(--blue-soft); border-radius: 10px; color: var(--ink); font-size: .92rem; }
.buy-foot {display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.buy-foot p { margin: 0; color: var(--ink); font-weight: 500; }

/* Productos */
.toolbar { display: flex; gap: 12px; margin-bottom: 14px; }
.toolbar input, .toolbar select {
  font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.toolbar input { flex: 1; min-width: 0; }
.toolbar input:focus, .toolbar select:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { font: inherit; font-size: .9rem; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.count { color: var(--muted); font-size: .9rem; margin: 0 0 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden;
  transition: box-shadow .15s, transform .15s;
}
.card:hover { box-shadow: 0 14px 30px -18px rgba(15,29,58,.4); transform: translateY(-2px); }
.card-img { background: #fff; aspect-ratio: 1; display: grid; place-items: center; padding: 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.card-img img { max-height: 100%; object-fit: contain; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-brand { font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: var(--blue); text-transform: uppercase; margin: 0; }
.card-name { font-size: .98rem; font-weight: 600; margin: 0; color: var(--ink); cursor: pointer; }
.card-model { font-size: .8rem; color: var(--muted); margin: 0; }
.price { font-family: Oswald, sans-serif; font-size: 1.45rem; color: var(--navy); margin: 6px 0 2px; }
.price small { font-family: Inter, sans-serif; font-size: .72rem; color: var(--muted); font-weight: 500; }
.price.big { font-size: 2rem; }.card .btn { margin-top: auto; padding: 10px; font-size: .92rem; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; grid-column: 1 / -1; }

/* Detalle */
dialog { border: none; border-radius: 18px; padding: 0; width: min(820px, 100% - 32px); max-height: 90vh; overflow: auto; }
dialog::backdrop { background: rgba(15,29,58,.55); }
.det-body { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; padding: 32px; }
.det-body img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.det-body h3 { margin: 4px 0; color: var(--navy); font-size: 1.35rem; }
.det-body ul { padding-left: 18px; color: var(--ink); }
.det-body li { margin-bottom: 4px; }
dialog .close { position: absolute; top: 12px; right: 12px; border: none; background: var(--bg-alt); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1rem; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; flex-wrap: wrap; }
.contact-list span { width: 100px; color: var(--muted); font-size: .9rem; }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-card { background: var(--navy); color: #fff; border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.contact-card h3 { margin: 0; font-family: Oswald, sans-serif; font-size: 1.5rem; }
.contact-card p { margin: 0 0 6px; color: #c9d3e6; }

/* Footer */
.footer { background: var(--navy); color: #fff; padding: 28px 0; font-size: .9rem; }
.footer p { margin: 4px 0; }
.footer .muted { color: #9fb0cf; font-size: .8rem; }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 30;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 10px 24px -8px rgba(0,0,0,.45);
}
.wa-float:hover { background: var(--wa-dark); }

/* Responsive */
@media (max-width: 1000px) and (min-width: 721px) {
  .brand-text small { display: none; }
  .nav { gap: 14px; }
}
@media (max-width: 900px) {
  .hero-inner, .contact { grid-template-columns: 1fr; }
  .hero-logo { order: -1; padding: 18px; }
  .services, .biz-grid, .steps, .buy-steps, .cc-grid { grid-template-columns: repeat(2, 1fr); }
  .cc-head, .cc-row, .cc-planes { grid-template-columns: 1fr; }
  .grid.destacados { grid-template-columns: repeat(2, 1fr); }
  .det-body { grid-template-columns: 1fr; padding: 24px; }
  .det-body img { max-height: 260px; }
}
@media (max-width: 720px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: 10px; border: none; }
  .services, .biz-grid, .steps, .buy-steps, .cc-grid { grid-template-columns: 1fr; }
  .cc-cta .btn { width: 100%; }
  .cc-box { padding: 18px; }
  .buy { padding: 18px; }
  .buy-foot .btn { width: 100%; }
  .biz-cta-btns, .biz-cta-btns .btn { width: 100%; }
  .toolbar { flex-direction: column; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 12px; }
  .price { font-size: 1.2rem; }
  .section { padding: 52px 0; }
  .hero { padding: 36px 0 48px; }
}
@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
}
