/* ====== Base ====== */
:root{
  --bg:#0b0f19;
  --fg:#ffffff;
  --muted: rgba(255,255,255,.65);
  --line: rgba(255,255,255,.12);
  --card: rgba(255,255,255,.06);
  --accent:#10b981; /* emerald-500 */
  --accent-weak: rgba(16,185,129,.12);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height:1.55;
}

/* Layout */
.container{ max-width:1080px; margin:0 auto; padding:0 18px; }
.section{ padding:64px 0; }

/* Nav */
.nav{ display:flex; align-items:center; justify-content:space-between; padding:20px 18px; }
.brand{ display:flex; align-items:center; gap:12px; }
.brand-mark{ width:36px; height:36px; border-radius:12px; background:linear-gradient(135deg, var(--accent), #22d3ee); }
.brand-name{ font-weight:600; letter-spacing:.4px; }

.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:12px 18px; border-radius:14px; border:1px solid transparent; text-decoration:none; color:#000; cursor:pointer; transition: transform .08s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; font-weight:700; }
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }
.btn-cta{ background: var(--accent); color:#000; box-shadow: var(--shadow); }
.btn-ghost{ color: var(--fg); background: transparent; border-color: var(--line); }
.btn-lg{ padding:16px 24px; border-radius:18px; font-size:1.05rem; }

/* Hero */
.hero{ position:relative; padding: 20px 0 60px; overflow:hidden; }
.glow{ position:absolute; inset:-10% -10% auto auto; width:1200px; height:700px; background:
  radial-gradient(60% 60% at 80% 10%, rgba(16,185,129,.25), transparent 60%),
  radial-gradient(50% 50% at 10% 10%, rgba(59,130,246,.18), transparent 60%); filter: blur(0px); pointer-events:none; }
.hero-grid{ display:grid; grid-template-columns: 1.1fr .9fr; gap:28px; align-items:center; }
.hero-copy .pill{ display:inline-block; font-size:.8rem; padding:8px 12px; border-radius:999px; background:rgba(255,255,255,.08); border:1px solid var(--line); color:var(--muted); }
.hero h1{ font-size: clamp(2.2rem, 3.6vw + 1rem, 4rem); line-height:1.08; margin:16px 0 0; font-weight:900; }
.hero h1 .fade{ -webkit-background-clip:text; background-clip:text; color:transparent; background-image: linear-gradient(90deg, #fff, rgba(255,255,255,.6)); }
.lead{ color: var(--muted); font-size:1.05rem; max-width: 56ch; margin-top:10px; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:12px; margin-top:18px; }
.note{ color: var(--muted); font-size:.9rem; margin-top:12px; }

.hero-mocks{ display:grid; grid-template-columns: repeat(2, 1fr); gap:14px; }
.mock{ aspect-ratio: 4 / 5; border-radius:16px; background: var(--card); border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; color: rgba(255,255,255,.45); }

/* Cards */
.card{ background: var(--card); border:1px solid var(--line); border-radius:18px; padding:18px; box-shadow:none; }

/* Benefits grid */
.section-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:14px; padding: 28px 18px; }
.ok{ color: var(--accent); font-weight:800; margin-right:6px; }

/* Prices */
.prices{ padding: 10px 18px 28px; }
.prices h2, .how h2, .gallery h2{ font-size:2rem; margin: 8px 0 14px; }
.price-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:14px; }
.price-card .muted{ color: var(--muted); }
.small{ font-size:.9rem; }
.price{ font-size:2.2rem; font-weight:900; margin:4px 0 4px; }
.list{ list-style:none; padding:0; margin:14px 0 0; display:grid; gap:8px; }
.card-accent{ background: var(--accent-weak); border-color: rgba(16,185,129,.3); box-shadow: inset 0 0 0 2px rgba(16,185,129,.3); position:relative; }
.badge{ position:absolute; top:10px; right:-8px; transform: rotate(12deg); background: var(--accent); color:#000; font-weight:800; font-size:.72rem; padding:6px 8px; border-radius:6px; }

.extras{ margin-top:8px; }

/* How it works */
.how{ padding: 8px 18px 28px; }
.how-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap:14px; }
.how-card .step{ font-size:2rem; font-weight:900; color: rgba(255,255,255,.5); }
.how-card .title{ margin-top:6px; font-weight:700; }
.how-card p{ color: var(--muted); margin-top:2px; font-size:.95rem; }

/* Gallery */
.gallery{ padding: 8px 18px 28px; }
.gallery-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap:14px; }
.gallery .footnote{ margin-top:10px; }

/* CTA */
.cta{ text-align:center; padding: 34px 18px 56px; }
.cta h3{ font-size: clamp(1.8rem, 1.8vw + 1rem, 2.4rem); margin:0 0 6px; }
.cta .muted{ color: var(--muted); margin-bottom:8px; }

/* Footer */
.footer{ border-top:1px solid var(--line); }
.footer-grid{ display:grid; grid-template-columns: 1fr 1fr 1fr; align-items:center; gap:12px; padding: 18px; color: var(--muted); }
.footer .right{ text-align:right; }

/* Responsive */
@media (max-width: 940px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-mocks{ order: -1; margin-bottom: 10px; }
  .section-grid{ grid-template-columns: 1fr 1fr; }
  .price-grid{ grid-template-columns: 1fr; }
  .how-grid{ grid-template-columns: 1fr 1fr; }
  .gallery-grid{ grid-template-columns: 1fr 1fr; }
  .footer-grid{ grid-template-columns: 1fr; text-align:center; }
  .footer .right{ text-align:center; }
}


/* Accesibilidad y foco */
:root { color-scheme: dark; }
a, .btn {
  outline: none;
}
a:focus-visible, .btn:focus-visible {
  outline: 3px solid rgba(16,185,129,.85);
  outline-offset: 3px;
  border-radius: 14px;
}



/* Accesibilidad y foco */
:root { color-scheme: dark; }
a, .btn {
  outline: none;
}
a:focus-visible, .btn:focus-visible {
  outline: 3px solid rgba(16,185,129,.85);
  outline-offset: 3px;
  border-radius: 14px;
}

/* Hover solo en dispositivos con hover real */
@media (hover: hover) and (pointer: fine) {
  .btn-cta:hover { filter: brightness(1.05); transform: translateY(-1px); }
  .btn-ghost:hover { background: rgba(255,255,255,.06); }
}

/* Tipografía fluida */
h1 { font-size: clamp(2rem, 3.2vw + 1rem, 4rem); }
h2 { font-size: clamp(1.4rem, 1.2vw + 1rem, 2rem); }
.lead { font-size: clamp(1rem, .4vw + .95rem, 1.15rem); }

/* Imágenes reales en galería (cuando reemplaces .mock por <img>) */
.gallery-grid img, .hero-mocks img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  display: block;
}

/* Estado activo y accesible para tarjetas clicables (si las usas) */
.card:focus-within {
  box-shadow: 0 0 0 3px rgba(16,185,129,.35);
}

/* Botón grande en CTA en pantallas pequeñas */
@media (max-width: 480px){
  .btn-lg { width: 100%; }
  .section { padding: 48px 0; }
  .cta { margin: 48px 0; }
}

/* Ajustes finos de grillas en tablets */
@media (max-width: 760px){
  .section-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

/* Utilidad para ocultar texto visualmente pero legible por screen readers */
.sr-only {
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* CTA centrada */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;   /* centra horizontalmente */
  justify-content: center; /* centra verticalmente si le das altura */
  text-align: center;
  padding: 72px 18px 88px;
}

.cta h3 {
  font-size: clamp(2rem, 2.2vw + 1rem, 3rem);
  max-width: 24ch;
  margin: 0 auto 10px;
}

.cta .muted {
  margin-bottom: 16px;
}


/* Lightbox (ampliar imágenes) */
.lightbox{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.85);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; z-index: 1000;
}
.lightbox[hidden]{ display: none; }
.lightbox img{
  max-width: min(100%, 1100px);
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.lightbox-close{
  position: absolute; top: 16px; right: 16px;
  border: none; background: rgba(255,255,255,.12);
  color: #fff; font-size: 28px; line-height: 1;
  padding: 8px 12px; border-radius: 10px; cursor: pointer;
}
.lightbox-close:hover{ background: rgba(255,255,255,.2); }



