:root {
  --brand: #e97c25;
  --brand-900: #e97c25;
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --card: #ffffff;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text); background: var(--bg);
  /* 🔒 evita desbordes laterales */
  overflow-x: hidden;
}
img { max-width:100%; display:block; }

/* ✅ container sin vw que provoque overflow */
.container {
  max-width: 1100px;
  width: 100%;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid #eee; }
.nav { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding: .75rem 0; }
.brand { display:flex; align-items:center; gap:.6rem; font-weight:800; text-decoration:none; color: var(--text); }
.brand img { width:36px; height:36px; border-radius:6px; }
.nav .links { list-style:none; display:flex; gap:1rem; margin:0; padding:0; }
.nav .links a { text-decoration:none; color: var(--text); font-weight:600; }
.nav .btn-outline { border:1px solid var(--brand); color:var(--brand); padding:.5rem .9rem; border-radius:.65rem; }
.nav-toggle { display:none; background:none; border:none; font-size:1.5rem; }

.hero { background: var(--brand); color:white; padding: 3.5rem 0; }
.hero-content { display:grid; grid-template-columns: 1fr auto; align-items:center; gap:2rem; }
.hero-logo { width: 160px; border-radius: 16px; justify-self:end; }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); line-height:1.1; margin:0 0 .5rem; }
.hero p { font-size: 1.05rem; max-width: 46ch; }
.cta-row { display:flex; flex-wrap:wrap; gap:.75rem; margin-top: 1rem; }

.section { padding: 3rem 0; }
.section.alt { background:#f8fafc; }
.grid-2 { display:grid; grid-template-columns: repeat(2, 1fr); gap:2rem; }
.cards { display:grid; grid-template-columns: repeat(3, 1fr); gap:1rem; }
.card { background: var(--card); border:1px solid #e5e7eb; border-radius: 12px; padding:1rem; }
.card.highlight { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }

/* ✅ evita que hijos de grillas fuercen ancho > viewport */
.grid-2 > *, .cards > *, .pricing > * { min-width: 0; }

.checklist { padding-left: 1.25rem; }
.checklist li { margin:.35rem 0; }

.pricing { display:grid; grid-template-columns: repeat(3, 1fr); gap:1rem; }
.price-card { background: var(--card); border:1px solid #e5e7eb; border-radius: 16px; padding:1.25rem; display:flex; flex-direction:column; gap:.75rem; }
.price-card .price { font-weight: 800; font-size: 2rem; }
.price-card .price span{ font-weight:600; font-size: .9rem; color: var(--muted); }
.price-card.featured { background: color-mix(in srgb, var(--brand) 7%, white); border-color: var(--brand); }
.legal { color: var(--muted); font-size:.9rem; margin-top: .75rem; }

/* ✅ iframe sin desbordar */
.map-embed iframe { display:block; width:100%; height: 300px; border:0; border-radius: 12px; }

.btn { display:inline-flex; align-items:center; justify-content:center; gap:.5rem; border-radius:.9rem; padding:.75rem 1rem; font-weight:800; text-decoration:none; transition: .2s transform, .2s box-shadow; }
.btn:hover { transform: translateY(-1px); }
.btn-solid { background:#111; color:#fff; }
.btn-light { background:#fff; color:#111; }
.btn-outline { background:transparent; color:#111; border:1px solid #111; }
.hero .btn-solid { background:#fff; color:#111; }
.hero .btn-light { background:transparent; color:#fff; border:1px solid #fff; }
.hero .btn-outline { background:#111; color:#fff; border-color:#111; }

.site-footer { background:#0b0b0b; color:#fff; padding: 2rem 0; margin-top: 2rem; }
.footer-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:1rem; }
.site-footer a { color:#fff; opacity:.9; }
.site-footer a:hover { opacity:1; }

/* 📱 Ajustes mobile */
@media (max-width: 900px) {
  /* Menú móvil sin overflow */
  .nav .links {
    display:none;
    position: fixed;        /* antes: absolute */
    left: 1rem;
    right: 1rem;            /* evita usar 80vw */
    top: 64px;
    width: auto;
    max-width: none;
    background:#fff;
    border:1px solid #eee;
    padding:.75rem;
    border-radius: .75rem;
    flex-direction:column;
    z-index: 60;
  }
  .nav-toggle { display:block; }

  .hero-content { grid-template-columns: 1fr; }
  .hero-logo { justify-self:start; width: min(160px, 40vw); }
  .grid-2 { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== Hero Moderno (mobile-first) ===== */
.hero.hero--modern {
  position: relative;
  padding: clamp(32px, 8vw, 56px) 0 calc(28px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 85%, #000 15%) 100%);
  color: #fff;
  overflow: hidden;
}

/* Fondo con sutil textura radial para dar profundidad */
.hero--modern .hero-bg {
  position: absolute; inset: -20% -10% auto -10%;
  height: 120%;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255,255,255,.15), transparent 60%),
    radial-gradient(600px 300px at 10% 20%, rgba(255,255,255,.08), transparent 60%);
  pointer-events: none;
}

/* Chip del logo flotante */
.hero-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline: clamp(16px, 6vw, 24px);
  margin-bottom: 16px;
  width: 72px; height: 72px;
  border-radius: 20px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 24px rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.35);
}
.hero-chip img {
  width: 56px; height: 56px; border-radius: 14px;
}

/* Cuerpo del hero */
.hero-body {
  display: grid;
  gap: 12px;
}

.hero-kicker {
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .75rem;
  opacity: .95;
}

.hero-title {
  font-size: clamp(1.8rem, 6.2vw, 2.6rem);
  line-height: 1.1;
  margin: 0;
  font-weight: 900;
}
.hero-title span { opacity: .95; }

.hero-sub {
  margin: 6px 0 2px;
  font-size: 1rem;
  line-height: 1.5;
  opacity: .95;
  max-width: 60ch;
}

/* CTAs: apiladas, cómodas para tap */
.hero-cta {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

/* Botones específicos de tienda, full-width en mobile */
.btn-app {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  padding: 12px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  text-align: center;
}

/* Play: claro sobre fondo brand (negro sólido ya existe como .btn-solid) */
.btn-play {
  background: #111;
  color: #fff;
  border: 1px solid rgba(255,255,255,.08);
}

/* App Store: “light” invertido para jerarquía visual */
.btn-appstore {
  background: #fff;
  color: #111;
  border: 1px solid rgba(0,0,0,.08);
}

/* WhatsApp: fantasma pero visible en brand */
.btn-ghost.btn-whatsapp {
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.75);
  background: transparent;
}

/* iconitos inline */
.btn-app .icon, .btn-ghost .icon {
  width: 20px; height: 20px; flex: 0 0 auto;
}



/* Tablet/desktop: dos columnas suaves */
@media (min-width: 640px) {
  .hero-body {
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
    gap: clamp(16px, 4vw, 28px);
  }
  .hero-chip { margin-left: 0; }
  .hero-cta { grid-template-columns: 1fr 1fr; }
  .btn-ghost.btn-whatsapp { grid-column: 1 / -1; }
}

/* Oculta la ola si quedó en el DOM */
.hero-wave { display: none !important; }

/* Separador sutil debajo del hero */
.hero--modern {
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  margin-bottom: clamp(8px, 2vw, 16px);
  position: relative;
}

/* Fade suave para que el hero se funda con el fondo */
.hero--modern::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 18px;
  background: linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0));
  pointer-events: none;
}


@media (max-width: 900px) {
  .site-header .brand img { padding: 0; }

  /* Espacio a la izquierda sin deformar (no afecta tamaño) */
  .site-header .brand img { margin-left: 8px; }
}

/* Badges oficiales: que el <a> no agregue estilos propios */
.btn-app.is-badge {
  background: transparent;
  border: 0;
  padding: 0;
  min-height: 0;
  border-radius: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

/* Tamaño fluido y nítido para los badges */
.btn-app.is-badge img {
  display: block;
  height: clamp(40px, 5vw, 56px); /* ajustá el máximo si querés */
  width: auto;
}

/* WhatsApp con ícono propio */
.btn-ghost.btn-whatsapp .icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

/* En tablet/desktop, dos columnas y WhatsApp abajo (si ya lo tenías, mantenelo) */
@media (min-width: 640px) {
  .hero-cta { grid-template-columns: 1fr 1fr; }
  .btn-ghost.btn-whatsapp { grid-column: 1 / -1; }
}
