/* ============================================================
   TETRIS Landing Page — Oferta Módulo Plegable
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@75..125,300..900&family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --graphite: #17191c;
  --graphite-80: #2b2e33;
  --steel: #6e747b;
  --steel-30: rgba(110,116,123,0.30);
  --concrete: #d9dbdd;
  --cement: #f4f5f6;
  --paper: #fbfbfc;
  --cobalt: #2563c9;
  --cobalt-deep: #1b4fa8;
  --cobalt-light: rgba(37,99,201,0.08);
  --line: rgba(23,25,28,0.10);
  --display: "Archivo", system-ui, sans-serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cement);
  color: var(--graphite);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 48px; } }
@media (min-width: 1280px) { .container { padding: 0 0; } }

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cobalt);
}
.section-title {
  font-family: var(--display);
  font-variation-settings: "wdth" 115;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-wrap: balance;
}
.section-lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--graphite-80);
  max-width: 58ch;
  line-height: 1.6;
}
.accent-line { width: 48px; height: 3px; background: var(--cobalt); }

/* ============================================================
   01 · TOP BAR
   ============================================================ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(23,25,28,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: box-shadow 0.3s;
}
.topbar.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.25); }
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .topbar-inner { height: 64px; padding: 0 48px; } }
@media (min-width: 1280px) { .topbar-inner { padding: 0; } }
.topbar-logo img { height: 22px; width: auto; }
@media (min-width: 768px) { .topbar-logo img { height: 26px; } }

.topbar-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cobalt);
  color: #fff;
  font-family: var(--display);
  font-variation-settings: "wdth" 110;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 8px 20px;
  border: none; cursor: pointer;
  transition: background 0.2s;
}
.topbar-cta:hover { background: var(--cobalt-deep); }
.topbar-cta svg { width: 16px; height: 16px; }

/* ============================================================
   02 · HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--graphite);
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(23,25,28,0.15) 0%,
    rgba(23,25,28,0.20) 30%,
    rgba(23,25,28,0.65) 60%,
    rgba(23,25,28,0.92) 82%,
    var(--graphite) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  width: 100%; max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: flex; flex-direction: column; gap: 20px;
}
@media (min-width: 768px) { .hero-content { padding: 0 48px 72px; gap: 24px; } }
@media (min-width: 1280px) { .hero-content { padding: 0 0 80px; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(37,99,201,0.25);
  border: 1px solid rgba(37,99,201,0.5);
  padding: 10px 20px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  width: fit-content;
  animation: badgeFadeIn 1s ease-out;
}
@keyframes badgeFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-badge .pulse {
  width: 8px; height: 8px;
  background: #7eb3ff;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-headline {
  font-family: var(--display);
  font-variation-settings: "wdth" 120;
  font-weight: 900;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--cement);
  text-wrap: balance;
}
.hero-headline em {
  font-style: normal;
  color: var(--cobalt);
}
.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 300;
  color: rgba(244,245,246,0.75);
  max-width: 48ch;
  line-height: 1.45;
}
.hero-sub strong { font-weight: 600; color: var(--cement); }

/* Price block */
.hero-price {
  display: flex; align-items: baseline; gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.price-old {
  font-family: var(--mono);
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 500;
  color: var(--steel);
  text-decoration: line-through;
  text-decoration-color: #c0392b;
  text-decoration-thickness: 2px;
}
.price-new {
  font-family: var(--display);
  font-variation-settings: "wdth" 115;
  font-weight: 800;
  font-size: clamp(32px, 5vw, 56px);
  color: var(--cement);
  line-height: 1;
}
.price-iva {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--steel);
  letter-spacing: 0.06em;
}

/* Countdown */
.countdown-wrap {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 4px;
}
.countdown-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7eb3ff;
}
.countdown {
  display: flex; gap: 8px;
}
.cd-unit {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 10px 14px;
  min-width: 60px;
}
.cd-unit .num {
  font-family: var(--display);
  font-variation-settings: "wdth" 110;
  font-weight: 800;
  font-size: 28px;
  color: var(--cement);
  line-height: 1;
}
.cd-unit .lbl {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: 4px;
}

/* Hero CTA row */
.hero-ctas {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 8px;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--cobalt);
  color: #fff;
  font-family: var(--display);
  font-variation-settings: "wdth" 110;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  padding: 14px 32px;
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--cobalt-deep); transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent;
  color: var(--cement);
  font-family: var(--display);
  font-variation-settings: "wdth" 110;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  padding: 14px 32px;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.04); }
.btn-secondary svg, .btn-primary svg { width: 18px; height: 18px; flex: none; }

/* ============================================================
   03 · SPECS BAR
   ============================================================ */
.specs-bar {
  background: var(--graphite);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.specs-bar-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
}
@media (min-width: 768px) { .specs-bar-inner { grid-template-columns: repeat(4, 1fr); } }
.spec-item {
  background: var(--graphite);
  padding: 24px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
@media (min-width: 768px) { .spec-item { padding: 32px 24px; } }
.spec-item .sv {
  font-family: var(--display);
  font-variation-settings: "wdth" 115;
  font-weight: 800;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--cement);
  line-height: 1;
}
.spec-item .sk {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}

/* ============================================================
   04 · BENEFITS
   ============================================================ */
.benefits {
  padding: clamp(64px, 8vw, 120px) 0;
  background: var(--cement);
}
.benefits-header {
  display: flex; flex-direction: column; gap: 14px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 600px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .benefits-grid { grid-template-columns: repeat(3, 1fr); } }
.benefit {
  background: var(--paper);
  padding: clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 12px;
  transition: background 0.2s;
}
.benefit:hover { background: #fff; }
.benefit-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cobalt-light);
  color: var(--cobalt);
}
.benefit-icon svg { width: 20px; height: 20px; }
.benefit h3 {
  font-family: var(--display);
  font-variation-settings: "wdth" 108;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
}
.benefit p {
  font-size: 14px;
  color: var(--steel);
  line-height: 1.55;
}

/* ============================================================
   05 · HOW IT WORKS
   ============================================================ */
.how-it-works {
  padding: clamp(64px, 8vw, 120px) 0;
  background: var(--graphite);
  color: var(--cement);
}
.how-header {
  display: flex; flex-direction: column; gap: 14px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.how-header .kicker { color: #7eb3ff; }
.how-header .section-title { color: var(--cement); }
.how-header .section-lead { color: rgba(244,245,246,0.65); }

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative;
  overflow: hidden;
  background: var(--graphite-80);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column;
}
.step-img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover;
}
.step-body {
  padding: 24px;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
}
.step-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--cobalt);
}
.step h3 {
  font-family: var(--display);
  font-variation-settings: "wdth" 112;
  font-weight: 700;
  font-size: 20px;
}
.step p {
  font-size: 14px;
  color: rgba(244,245,246,0.55);
  line-height: 1.55;
}

/* ============================================================
   06 · GALLERY
   ============================================================ */
.gallery {
  padding: clamp(64px, 8vw, 120px) 0;
  background: var(--cement);
}
.gallery-header {
  display: flex; flex-direction: column; gap: 14px;
  margin-bottom: clamp(40px, 5vw, 56px);
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}
@media (min-width: 600px) { .gallery-grid { grid-template-columns: 1fr 1fr 1fr; } }
.gallery-grid img {
  width: 100%; aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}
.video-section {
  margin-top: 48px;
  text-align: center;
}
.video-title {
  font-family: var(--display);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
}
.video-frame {
  max-width: 400px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.video-frame video {
  width: 100%;
  display: block;
}

/* ============================================================
   07 · TESTIMONIALS
   ============================================================ */
.testimonials {
  padding: clamp(64px, 8vw, 100px) 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.test-header {
  display: flex; flex-direction: column; gap: 14px;
  margin-bottom: clamp(40px, 5vw, 56px);
}
.test-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) { .test-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial {
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 32px);
  display: flex; flex-direction: column; gap: 16px;
}
.testimonial .stars {
  display: flex; gap: 3px;
  color: #f5a623;
}
.testimonial .stars svg { width: 16px; height: 16px; }
.testimonial blockquote {
  font-size: 15px;
  font-style: italic;
  color: var(--graphite-80);
  line-height: 1.6;
}
.testimonial .author {
  display: flex; flex-direction: column; gap: 2px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.testimonial .author .name {
  font-family: var(--display);
  font-variation-settings: "wdth" 108;
  font-weight: 700;
  font-size: 14px;
}
.testimonial .author .role {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--steel);
  letter-spacing: 0.06em;
}

/* ============================================================
   08 · CTA / FORM
   ============================================================ */
.cta-section {
  padding: clamp(64px, 8vw, 120px) 0;
  background: var(--graphite);
  color: var(--cement);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.cta-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 64px);
}
@media (min-width: 768px) { .cta-inner { grid-template-columns: 1fr 1fr; align-items: start; } }

.cta-left {
  display: flex; flex-direction: column; gap: 20px;
}
.cta-left .kicker { color: #7eb3ff; }
.cta-left .section-title { color: var(--cement); }
.cta-left .section-lead { color: rgba(244,245,246,0.6); }
.cta-left .section-lead strong { color: var(--cement); font-weight: 600; }

.cta-whatsapp {
  display: inline-flex; align-items: center; gap: 12px;
  background: #25d366;
  color: #fff;
  font-family: var(--display);
  font-variation-settings: "wdth" 110;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border: none; cursor: pointer;
  transition: background 0.2s;
  width: fit-content;
  margin-top: 8px;
}
.cta-whatsapp:hover { background: #1fb855; }
.cta-whatsapp svg { width: 22px; height: 22px; flex: none; }

.form-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 20px;
}
.form-title {
  font-family: var(--display);
  font-variation-settings: "wdth" 110;
  font-weight: 700;
  font-size: 20px;
}
.form-row {
  display: flex; flex-direction: column; gap: 6px;
}
.form-row label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}
.form-row input, .form-row select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--cement);
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s;
}
.form-row input::placeholder { color: var(--steel); }
.form-row input:focus, .form-row select:focus {
  border-color: var(--cobalt);
  background: rgba(37,99,201,0.06);
}
.form-row select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236e747b' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-row select option { background: var(--graphite); color: var(--cement); }
.form-submit {
  background: var(--cobalt);
  color: #fff;
  font-family: var(--display);
  font-variation-settings: "wdth" 110;
  font-weight: 700;
  font-size: 16px;
  padding: 14px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  letter-spacing: 0.02em;
  margin-top: 4px;
}
.form-submit:hover { background: var(--cobalt-deep); }
.form-privacy {
  font-size: 11px;
  color: var(--steel);
  text-align: center;
  line-height: 1.5;
}

/* ============================================================
   09 · FOOTER
   ============================================================ */
.footer {
  padding: 40px 0;
  background: var(--graphite);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo img { height: 20px; width: auto; }
.footer-links {
  display: flex; align-items: center; gap: 20px;
}
.footer-links a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--steel);
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--cement); }
.footer-copy {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--steel);
  letter-spacing: 0.06em;
  width: 100%;
  text-align: center;
  margin-top: 16px;
}

/* ============================================================
   10 · WHATSAPP FLOAT
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 56px; height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
}
.wa-float svg { width: 28px; height: 28px; color: #fff; }

/* ============================================================
   11 · SMOOTH SCROLL OFFSET
   ============================================================ */
[id] { scroll-margin-top: 72px; }

/* ============================================================
   12 · OFFER BANNER (above hero)
   ============================================================ */
.offer-banner {
  background: var(--cobalt);
  padding: 10px 24px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  position: relative;
  z-index: 101;
  margin-top: 56px;
}
@media (min-width: 768px) { .offer-banner { margin-top: 64px; font-size: 13px; } }
