:root {
  --bg: #0a0e1a;
  --bg-soft: #10162a;
  --bg-card: #131a30;
  --border: #232c48;
  --text: #e6ebf5;
  --text-dim: #9aa5c0;
  --accent: #3fd0ff;
  --accent-2: #7c5cff;
  --cta: #ffb340;
  --cta-hover: #ffc266;
  --icon-fg: #0a0e1a;
  --icon-a: #3fd0ff;
  --icon-b: #7c5cff;
  --radius: 14px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--text-dim);
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 8px 10px;
  font-size: 1.1rem;
}

.lang-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  padding: 7px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  margin-left: 20px;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.lang-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Hero */
.hero {
  padding: 80px 24px 60px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(63, 208, 255, 0.12), transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(124, 92, 255, 0.1), transparent 50%);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 16px;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  color: var(--text-dim);
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cta), var(--cta-hover));
  color: #241500;
  box-shadow: 0 8px 24px rgba(255, 179, 64, 0.25);
}

.btn-primary:hover { transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-block { width: 100%; justify-content: center; }

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}
.btn[disabled]:hover { transform: none; }

/* Sections */
.section {
  padding: 64px 24px;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-title h2 {
  font-size: 1.8rem;
  margin: 0;
}

.section-title a {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.18s, border-color 0.18s;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.product-card-link {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  color: inherit;
  text-decoration: none;
}

.btn-buy {
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  background: linear-gradient(135deg, var(--cta), var(--cta-hover));
  color: #241500;
  border: none;
  cursor: pointer;
}

.btn-buy[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.product-thumb {
  width: 64px;
  height: 64px;
}

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

.product-category {
  color: var(--accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
}

.product-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 0;
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.product-footer .price { white-space: nowrap; }
.product-footer .btn-buy { white-space: nowrap; }

.price {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
}

/* Filters */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.filter-chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.search-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 0.9rem;
}

.search-input:focus { outline: none; border-color: var(--accent); }

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}

.product-detail-media {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
}

.product-detail-media.has-image {
  padding: 0;
  overflow: hidden;
  display: flex;
}

.product-detail-media.has-image img {
  width: 100%;
  height: auto;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.gallery-thumb {
  padding: 0;
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumb.active {
  border-color: var(--accent);
}

.product-detail h1 {
  font-size: 2rem;
  margin: 0 0 8px;
}

.product-detail .price {
  font-size: 1.6rem;
  margin: 16px 0;
  display: block;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  padding-left: 26px;
  position: relative;
  color: var(--text-dim);
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.qty-control button {
  background: var(--bg-soft);
  border: none;
  color: var(--text);
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  cursor: pointer;
}

.qty-control input {
  width: 44px;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1rem;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}

/* About strip */
.about-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding: 48px 24px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-card { text-align: center; }
.about-card .icon { font-size: 1.8rem; margin-bottom: 10px; }
.about-card h4 { margin: 0 0 6px; }
.about-card p { color: var(--text-dim); font-size: 0.88rem; margin: 0; }

/* Footer */
.site-footer {
  padding: 48px 24px 28px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto 32px;
}

.footer-grid h4 {
  color: var(--text);
  margin: 0 0 14px;
  font-size: 0.95rem;
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a:hover { color: var(--accent); }

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 24px 0;
}
.breadcrumb a:hover { color: var(--accent); }

/* Barra de cuenta atrás */
.countdown-bar {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: var(--bg);
  text-align: center;
  padding: 8px 20px;
  font-size: 0.82rem;
  font-weight: 700;
}

.countdown-bar .countdown-value {
  font-variant-numeric: tabular-nums;
}

/* Popup de lanzamiento */
.launch-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 26, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
  animation: launch-fade-in 0.2s ease;
}

@keyframes launch-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.launch-popup {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.launch-popup .pdp-eyebrow { justify-content: center; display: flex; }

.launch-popup-countdown {
  color: var(--text);
  font-size: 0.85rem;
  margin: 10px 0 4px;
}
.launch-popup-countdown .countdown-value {
  color: var(--cta);
  font-variant-numeric: tabular-nums;
}
.launch-popup h3 { margin: 0 0 12px; font-size: 1.4rem; }
.launch-popup p { color: var(--text-dim); font-size: 0.92rem; margin: 0 0 20px; }

.launch-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1rem;
  cursor: pointer;
  padding: 6px;
}
.launch-popup-close:hover { color: var(--text); }

.launch-popup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.launch-popup-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
}

.launch-popup-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  cursor: pointer;
}

.launch-popup-option input { accent-color: var(--accent); width: 16px; height: 16px; }

.launch-popup-options-error {
  border-color: #ff6b6b;
}

.launch-popup-form input {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 0.95rem;
}

.launch-popup-form input:focus { outline: none; border-color: var(--accent); }

.launch-popup-fineprint {
  font-size: 0.75rem !important;
  margin: 14px 0 0 !important;
  opacity: 0.7;
}

/* Product landing page (PDP) */
.dev-banner {
  background: rgba(255, 179, 64, 0.08);
  border-bottom: 1px solid rgba(255, 179, 64, 0.25);
  color: var(--cta);
  text-align: center;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.pdp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 16px;
}

.pdp-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 64px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(63, 208, 255, 0.1), transparent 55%),
    radial-gradient(ellipse at 90% 30%, rgba(124, 92, 255, 0.08), transparent 50%);
}

.pdp-hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  margin: 0 0 18px;
  line-height: 1.15;
}

.pdp-hero > div:first-child > p {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin: 0 0 28px;
}

.pdp-price-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.pdp-price {
  font-size: 1.8rem;
  font-weight: 800;
}

.pdp-price-tag {
  color: var(--text-dim);
  font-size: 0.85rem;
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}

.pdp-hero-media {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.pdp-hero-media img { width: 100%; height: auto; }

.problem-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 24px;
}

.problem-section .container {
  max-width: 760px;
  text-align: center;
}

.problem-section h2 { font-size: 1.7rem; margin: 0 0 18px; }
.problem-section p { color: var(--text-dim); font-size: 1.05rem; margin: 0; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  counter-reset: step;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--bg);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step-card h4 { margin: 0 0 8px; font-size: 1.02rem; }
.step-card p { color: var(--text-dim); font-size: 0.9rem; margin: 0; }

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
}

.highlight-card .icon-badge {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(63, 208, 255, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.highlight-card h4 { margin: 0 0 6px; font-size: 1rem; }
.highlight-card p { color: var(--text-dim); font-size: 0.88rem; margin: 0; }

.specs-list {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.specs-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

.specs-row:last-child { border-bottom: none; }
.specs-row dt { color: var(--text-dim); font-size: 0.85rem; font-weight: 600; margin: 0; }
.specs-row dd { margin: 0; font-size: 0.95rem; }

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
}

.pricing-card .pdp-price { font-size: 2.4rem; }
.pricing-card .feature-list { text-align: left; }

/* Responsive */
@media (max-width: 860px) {
  .product-detail { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pdp-hero { grid-template-columns: 1fr; padding: 48px 24px; }
  .pdp-hero-media { order: -1; }
}

@media (max-width: 640px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .lang-toggle { margin-left: 10px; padding: 7px 9px; font-size: 0.8rem; }
  .product-footer { flex-direction: column; align-items: stretch; }
  .product-footer .btn-buy { width: 100%; text-align: center; }
  .main-nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-soft);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .specs-row { grid-template-columns: 1fr; gap: 4px; }
}
