/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: #0b0f14;
  color: #e5e7eb;
}

/* ================= THEMES ================= */
.theme-home    { --accent: #2dd4bf; }
.theme-docs    { --accent: #38bdf8; }
.theme-prices  { --accent: #facc15; }
.theme-contact { --accent: #a78bfa; }
.theme-legal   { --accent: #f87171; }

/* fallback */
:root { --accent: #2dd4bf; }

/* ================= NAVBAR ================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
}

.logo {
  font-size: 22px;
  font-weight: 900;
}

.logo a {
  color: var(--accent);
  text-decoration: none;
}

.navbar nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* links normales */
.navbar nav a:not(.btn) {
  color: #9ca3af;
  text-decoration: none;
  transition: color .2s ease;
}

.navbar nav a:not(.btn):hover {
  color: var(--accent);
}

/* ================= BUTTONS (NO BUG) ================= */
.btn {
  padding: 12px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}

/* PRIMARY */
.btn.primary {
  background: var(--accent);
  color: #022c22;
  box-shadow: 0 8px 25px rgba(0,0,0,.25);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(45,212,191,.45);
}

/* OUTLINE */
.btn.outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn.outline:hover {
  background: var(--accent);
  color: #022c22;
}

/* ================= HERO ================= */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 80px 40px;
  align-items: center;
}

.hero h1 {
  font-size: 48px;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  margin: 20px 0;
  color: #9ca3af;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 15px;
}

/* ================= CUBE / ARTE ================= */
.cube {
  width: 220px;
  height: 220px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), #0f766e);
  box-shadow: 0 0 80px rgba(45,212,191,.4);
}

/* ================= SECTIONS ================= */
.section {
  padding: 80px 40px;
  text-align: center;
}

/* ================= CARDS ================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap: 20px;
}

.card {
  background: #0f172a;
  padding: 25px;
  border-radius: 14px;
  text-align: left;
  transition: .3s;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(45,212,191,.25);
}

.card.highlight {
  border: 1px solid var(--accent);
}

/* ================= PREVIEW ================= */
.preview-box {
  max-width: 720px;
  margin: auto;
  background: rgba(2,6,23,.8);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 18px;
}

.preview-window {
  border-radius: 14px;
  overflow: hidden;
}

.preview-header {
  padding: 12px 16px;
  background: #020617;
}

.preview-dots i {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  margin-left: 6px;
}

.preview-gif {
  width: 100%;
  display: block;
}

/* ================= FOOTER ================= */
.footer {
  background: #020617;
  padding: 60px 40px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
  gap: 30px;
}

.footer a {
  color: #9ca3af;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

.footer a:hover {
  color: var(--accent);
}

.footer-stats span {
  display: block;
  color: #9cff9c;
  font-size: 14px;
  margin-bottom: 6px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #0f172a;
  margin-top: 30px;
  padding-top: 20px;
  color: #6b7280;
}

/* ================= PAGE TRANSITION ================= */
.page-transition {
  position: fixed;
  inset: 0;
  background: #020617;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.page-transition.active {
  opacity: 1;
  pointer-events: all;
}

/* ================= LOADER ================= */
.loader {
  width: 48px;
  height: 48px;
  border: 3px solid #0f172a;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ================= BACKGROUND FX ================= */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: .25;
}

.scanline {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(45,212,191,.15),
    transparent
  );
  animation: scanline 6s linear infinite;
  pointer-events: none;
  z-index: 999;
}

@keyframes scanline {
  from { top: -10%; }
  to { top: 110%; }
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(45,212,191,.08), transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(45,212,191,.05), transparent 45%);
  z-index: -1;
}

/* ================= HAMBURGER ================= */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
  transition: transform .25s ease, opacity .25s ease, background .25s ease;
}

/* estado ABIERTO = X */
.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .navbar nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 240px;
    height: 100vh;
    background: #020617;
    flex-direction: column;
    padding: 80px 20px;
    gap: 18px;
    transition: right .3s ease;
    z-index: 1000;
  }

  .navbar nav.active {
    right: 0;
  }

  .navbar nav a,
  .navbar nav .btn {
    width: 100%;
    justify-content: center;
  }

  .hamburger {
    display: flex;
  }
}

.payment-box {
  margin-top: 20px;
}

.payment-title {
  display: block;
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 8px;
}

.payment-methods {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.payment-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #020617;
  border: 1px solid #0f172a;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: #e5e7eb;
}

.payment-chip img {
  width: 16px;
  height: 16px;
}


.section-subtitle {
  color: #9ca3af;
  margin-top: 10px;
  margin-bottom: 40px;
  font-size: 15px;
}

.contact-grid {
  max-width: 900px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.contact-info h3,
.contact-action h3 {
  margin-bottom: 10px;
}

.contact-info p,
.contact-action p {
  color: #9ca3af;
  margin-bottom: 18px;
  font-size: 15px;
}

.contact-list {
  list-style: none;
  padding: 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #e5e7eb;
}

.contact-list .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.contact-action {
  text-align: left;
}

.contact-action button {
  width: 100%;
  margin-top: 10px;
}

.contact-note {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  color: #6b7280;
}

/* MOBILE */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= LEGAL ================= */

.legal-section {
  max-width: 900px;
  margin: auto;
}

.legal-card {
  background: rgba(15, 15, 15, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 35px;
}

.legal-block {
  margin-bottom: 30px;
}

.legal-block:last-child {
  margin-bottom: 0;
}

.legal-block h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--accent);
}

.legal-block p {
  font-size: 14.5px;
  line-height: 1.7;
  color: #d1d5db;
}

/* MOBILE */
@media (max-width: 768px) {
  .legal-card {
    padding: 25px;
  }
}

/* ================= INSTALL ================= */

.install-section {
  max-width: 900px;
  margin: auto;
}

.install-card {
  background: rgba(15, 15, 15, 0.75);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 35px;
}

.install-step {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
}

.step-number {
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #022c22;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.install-step h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.install-step p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #d1d5db;
}

.install-note {
  margin-top: 30px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(45,212,191,0.08);
  border: 1px solid rgba(45,212,191,0.25);
  font-size: 14px;
  color: #cafff4;
}

/* MOBILE */
@media (max-width: 768px) {
  .install-card {
    padding: 25px;
  }
}

/* ================= DOCS ================= */

.docs-section {
  max-width: 1000px;
  margin: auto;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.docs-card {
  background: rgba(15,15,15,0.75);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform .25s, box-shadow .25s;
}

.docs-card.active:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(45,212,191,.25);
}

.docs-card.disabled {
  opacity: 0.65;
}

.docs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.docs-header h3 {
  font-size: 18px;
}

.docs-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(45,212,191,0.15);
  color: var(--accent);
}

.docs-badge.muted {
  background: rgba(255,255,255,0.08);
  color: #9ca3af;
}

.docs-list {
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.7;
  color: #d1d5db;
}

.docs-list li {
  margin-bottom: 8px;
}

.docs-placeholder {
  font-size: 14px;
  color: #9ca3af;
  line-height: 1.6;
}

/* ================= LEGAL ================= */

.legal-section {
  max-width: 900px;
  margin: auto;
}

.legal-card {
  background: rgba(15,15,15,0.8);
  border-radius: 18px;
  padding: 36px;
  border: 1px solid rgba(255,255,255,0.06);
}

.legal-block {
  margin-bottom: 28px;
}

.legal-block:last-child {
  margin-bottom: 0;
}

.legal-block h3 {
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--accent);
}

.legal-block p {
  font-size: 14.5px;
  line-height: 1.7;
  color: #d1d5db;
}

.section-subtitle {
  margin-top: 8px;
  margin-bottom: 36px;
  font-size: 14px;
  color: #9ca3af;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 900;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}
