:root {
  --bg: #0c1222;
  --surface: #151d32;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-dim: rgba(56, 189, 248, 0.15);
  --success: #34d399;
  --radius: 12px;
  --font: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 18, 34, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.hero {
  padding: 3rem 0 4rem;
  background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(56, 189, 248, 0.18), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.price-tag {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.25rem;
}

.price-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #0c1222;
  box-shadow: 0 8px 28px rgba(14, 165, 233, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 10px 36px rgba(14, 165, 233, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.trust-line {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-visual {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: rgba(21, 29, 50, 0.55);
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 1.25rem;
}

.grid-features {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .grid-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-check li {
  padding: 0.5rem 0 0.5rem 1.75rem;
  position: relative;
  color: var(--muted);
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.spec-table th,
.spec-table td {
  padding: 0.65rem 0;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.spec-table th {
  color: var(--muted);
  font-weight: 500;
  width: 42%;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.gallery img {
  border-radius: 10px;
  width: 100%;
  object-fit: cover;
  aspect-ratio: 1;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.video-wrap {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: #000;
}

.video-wrap video {
  width: 100%;
  max-height: 70vh;
}

.footer {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.sticky-cta {
  display: none;
}

@media (max-width: 899px) {
  .sticky-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: rgba(12, 18, 34, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    z-index: 40;
  }

  .sticky-cta .btn-primary {
    width: 100%;
  }

  body {
    padding-bottom: 5rem;
  }
}

/* Checkout */
.checkout-layout {
  padding: 2rem 0 4rem;
}

.checkout-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .checkout-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

.form-section {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  margin-bottom: 1.25rem;
}

.form-section h2 {
  font-size: 1.15rem;
  margin: 0 0 1rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(12, 18, 34, 0.6);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.field textarea {
  min-height: 72px;
  resize: vertical;
}

.row-2 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  color: var(--text);
}

.cotizar-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  margin-bottom: 1rem;
}

.cotizar-result {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-size: 0.92rem;
}

.cotizar-result strong {
  color: var(--accent);
}

.summary-card {
  position: sticky;
  top: 5rem;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.summary-row.total {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  margin-top: 0.5rem;
  padding-top: 1rem;
}

.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.alert-error {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--muted);
  font-size: 0.88rem;
}

.thanks-page {
  text-align: center;
  padding: 4rem 1rem;
  min-height: 60vh;
}

.thanks-page h1 {
  margin-bottom: 1rem;
}

.legal-page {
  padding: 2rem 0 4rem;
  max-width: 720px;
  margin: 0 auto;
}

.legal-page h1 {
  margin-bottom: 1.5rem;
}
