/* =========================================================
   SemiBox — Hoja de estilos
   Para cambiar los colores de la marca, editá las variables
   de :root (las líneas que empiezan con --).
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --ink: #16181d;
  --muted: #5b616e;
  --line: #e4e6eb;
  --accent: #1d4ed8;
  --accent-soft: #eef2ff;
  --wa: #1fa855;
  --wa-dark: #178a45;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 7vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
.lead { font-size: 1.125rem; color: var(--muted); }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 650; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .75rem;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 100; }

/* ---------- Encabezado y menú ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem;
  color: var(--ink); text-decoration: none; letter-spacing: -.03em;
}
.logo svg { width: 30px; height: 30px; }
.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nav-btn {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: 10px;
}
.nav-btn span, .nav-btn span::before, .nav-btn span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--ink);
  border-radius: 2px; position: relative; transition: transform .2s, background .2s;
}
.nav-btn span::before { position: absolute; top: -7px; }
.nav-btn span::after { position: absolute; top: 7px; }
.nav-toggle:checked + .nav-btn span { background: transparent; }
.nav-toggle:checked + .nav-btn span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked + .nav-btn span::after { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle:focus-visible + .nav-btn { outline: 2px solid var(--accent); }
.nav {
  position: absolute; top: 64px; left: 0; right: 0; background: #fff;
  border-bottom: 1px solid var(--line); display: none; flex-direction: column;
  padding: 8px 20px 20px; box-shadow: var(--shadow);
}
.nav a { padding: 12px 4px; color: var(--ink); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav a.btn { margin-top: 14px; border: 0; justify-content: center; color: #fff; }
.nav-toggle:checked ~ .nav { display: flex; }

@media (min-width: 880px) {
  .nav-btn { display: none; }
  .nav {
    position: static; display: flex; flex-direction: row; align-items: center; gap: 4px;
    padding: 0; border: 0; background: none; box-shadow: none;
  }
  .nav a { border: 0; padding: 8px 12px; border-radius: 8px; }
  .nav a:not(.btn):hover { background: var(--bg-soft); }
  .nav a.btn { margin: 0 0 0 10px; padding: 10px 18px; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px;
  font-weight: 600; text-decoration: none; border: 1px solid transparent; font-size: 1rem;
  transition: background .15s, transform .15s, border-color .15s; line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #c5c9d2; }
.btn-light { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Secciones ---------- */
.section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.hero { padding: 44px 0 64px; background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.hero-badges li {
  font-size: .875rem; background: #fff; border: 1px solid var(--line); padding: 6px 12px;
  border-radius: 999px; color: var(--muted);
}
.page-head { padding: 48px 0 36px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-head p { max-width: 640px; }

@media (min-width: 880px) {
  .hero { padding: 80px 0 96px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .section { padding: 96px 0; }
  .page-head { padding: 72px 0 48px; }
}

/* ---------- Fotos (con texto de reemplazo si falta la imagen) ---------- */
.photo {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #ffffff 0%, var(--bg-soft) 70%);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .9rem; text-align: center;
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-label { padding: 16px; width: 100%; display: flex; justify-content: center; }
.photo-label svg { width: 55%; max-width: 240px; height: auto; filter: drop-shadow(0 12px 18px rgba(16, 24, 40, .10)); }
.photo-square { aspect-ratio: 1 / 1; }

/* ---------- Grillas y tarjetas ---------- */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }
.icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.icon svg { width: 22px; height: 22px; }

.split { display: grid; gap: 40px; align-items: start; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* Pasos numerados */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
@media (min-width: 880px) { .steps { grid-template-columns: repeat(3, 1fr); } .steps.steps-4 { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps li::before {
  content: counter(step); display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff;
  font-weight: 700; margin-bottom: 14px;
}
.steps h3 { margin-bottom: .35em; }
.steps p { margin: 0; color: var(--muted); }

/* Tabla de especificaciones */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 42%; color: var(--muted); font-weight: 500; padding-right: 16px; }

/* Etiquetas (modelos compatibles) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: .92rem; }

/* Lista con tildes */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 30px; margin: 10px 0; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Texto pendiente de completar (resaltado en amarillo para que no se te pase) */
.todo { background: #fff3c4; border-radius: 4px; padding: 0 4px; color: #6b5000; }

/* Franja de llamado a la acción */
.cta-band {
  background: var(--ink); color: #fff; border-radius: 24px; padding: 40px 28px;
  display: grid; gap: 24px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c9ccd3; margin: 0; }
@media (min-width: 880px) { .cta-band { grid-template-columns: 1fr auto; align-items: center; padding: 56px; } }

/* Preguntas frecuentes */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary {
  font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  gap: 16px; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Contacto */
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .icon { margin: 0; flex: none; }
.contact-item h3 { margin-bottom: .2em; font-size: 1rem; color: var(--muted); font-weight: 500; }
.contact-item p { margin: 0; font-size: 1.1rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-item a { color: var(--ink); text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }

/* Textos legales */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.3rem; margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .35em 0; }
.legal-box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin: 1em 0 1.5em; }
.legal-box p { margin: .2em 0; }

/* ---------- Pie de página ---------- */
.site-footer { background: #0f1115; color: #c9ccd3; padding: 56px 0 96px; font-size: .95rem; }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.site-footer a { color: #fff; }
.site-footer h2 {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #8b909c;
  margin-bottom: 14px; font-weight: 650;
}
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 880px) { .footer-grid { grid-template-columns: 1fr 1.4fr .7fr; } .site-footer { padding-bottom: 32px; } }
.legal-data { margin: 0; }
.legal-data div { display: grid; grid-template-columns: 118px 1fr; gap: 10px; padding: 5px 0; }
.legal-data dt { color: #8b909c; }
.legal-data dd { margin: 0; color: #fff; overflow-wrap: anywhere; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 7px 0; }
.footer-links a { color: #c9ccd3; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid #23262e; margin-top: 40px; padding-top: 20px; font-size: .85rem; color: #8b909c; }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22); z-index: 60; transition: transform .15s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }
