/* ===============================
   🎨 VARIABLES DE COLOR (CLARO)
================================= */
:root {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --primary: #ff9f1c;
  --secondary: #007bff;
  --accent: #00e0ff;
  --text: #1f2937;
  --muted: #6b7280;
  --footer-bg: #e5e7eb;
}

/* ===============================
   🌙 MODO OSCURO
================================= */
body.dark {
  --bg: #0b0e14;
  --panel: #121726;
  --primary: #ff9f1c;
  --secondary: #00d4ff;
  --accent: #7cf3ff;
  --text: #eaeaea;
  --muted: #9aa0a6;
  --footer-bg: #0b0d12;
}

/* ===============================
   🧱 BASE GLOBAL
================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", system-ui, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  transition: background .4s, color .4s;
  overflow-x: hidden;
}

/* ===============================
   🔝 TOPBAR
================================= */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background: var(--panel);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo img { height: 48px; }

.topbar nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.topbar nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: .3s;
}

.topbar nav a:hover::after {
  width: 100%;
}

#themeToggle {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

/* ===============================
   🎞 BANNER PROMO
================================= */
.promo-banner {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #000;
  text-align: center;
  padding: 12px;
  font-weight: 700;
}

.promo-slide { display: none; }
.promo-slide.active { display: block; }

/* ===============================
   🚀 HERO FUTURISTA
================================= */
.hero {
  position: relative;
  padding: 110px 20px;
  background:
    radial-gradient(circle at top, rgba(0,224,255,0.12), transparent 60%),
    radial-gradient(circle at bottom, rgba(255,159,28,0.12), transparent 60%);
}

.hero-inner {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  background: rgba(0,123,255,0.12);
  color: var(--secondary);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: .9rem;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 3.4rem;
  font-weight: 900;
  color: var(--primary);
}

.hero-subtitle {
  margin: 18px 0 26px;
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.6;
}

/* BOTONES */
.hero-buttons .btn {
  display: inline-block;
  padding: 14px 26px;
  margin: 6px 8px 6px 0;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  transition: .3s;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary), #ffd08a);
  color: #000;
}

.btn.secondary {
  border: 2px solid var(--secondary);
  color: var(--secondary);
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

/* BADGES */
.hero-badges {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badge {
  background: var(--panel);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: .9rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

/* ===============================
   🧠 HERO IMAGEN / HOLOGRAMA
================================= */
.hero-device {
  position: relative;
  max-width: 420px;
  margin: auto;
}

.hero-device img {
  width: 100%;
  border-radius: 18px;
  box-shadow:
    0 20px 60px rgba(0,0,0,.25),
    0 0 40px rgba(0,224,255,.25);
}

/* ORBITAS */
.hero-orbit {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed rgba(0,224,255,.4);
  animation: spin 20s linear infinite;
}

.hero-orbit-1 {
  inset: -20px;
}

.hero-orbit-2 {
  inset: -40px;
  animation-duration: 30s;
}

.hero-orbit-3 {
  inset: -60px;
  animation-duration: 40s;
}

@keyframes spin {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

/* ===============================
   🧩 CARDS
================================= */
.cards {
  padding: 90px 40px;
  position: relative;
}

.cards h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.3rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.card {
  background: var(--panel);
  padding: 26px;
  border-radius: 18px;
  transition: .4s;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(0,224,255,.18), transparent);
  opacity: 0;
  transition: .4s;
}

.card:hover::after { opacity: 1; }

.card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow:
    0 20px 60px rgba(0,0,0,.18),
    0 0 30px rgba(0,224,255,.25);
}

.card h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.card p {
  color: var(--muted);
  line-height: 1.5;
}

.card .link {
  margin-top: 10px;
  display: inline-block;
  color: var(--secondary);
  font-weight: 600;
}

/* ===============================
   💬 WHATSAPP
================================= */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 58px;
  height: 58px;
  background: #25d366;
  color: #fff;
  font-size: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
  z-index: 999;
}

/* ===============================
   🖼 SERVICIOS CON IMÁGENES GRANDES
================================= */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 90px;
}

.service-block img {
  width: 100%;
  border-radius: 18px;
  box-shadow:
    0 20px 60px rgba(0,0,0,.25),
    0 0 40px rgba(0,224,255,.25);
}

.service-info h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.service-info p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-block.reverse {
  grid-template-columns: 1fr 1fr;
}

.service-block.reverse img {
  order: 2;
}

/* 📱 Responsive */
@media (max-width: 900px) {
  .service-block,
  .service-block.reverse {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .service-block.reverse img {
    order: 0;
  }
}

/* ===============================
   📱 RESPONSIVE
================================= */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-badges {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.4rem;
  }

  .cards {
    padding: 60px 20px;
  }
}

/* ===============================
   🌊 EFECTO HOLOGRAMA SERVICIOS
================================= */
.service-card img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 14px;
  transition: .4s;
}

.service-card:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,224,255,.25), transparent 60%);
  opacity: 0;
  transition: .4s;
  pointer-events: none; /* ✅ añadido para no bloquear clics */
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow:
    0 25px 70px rgba(0,0,0,.25),
    0 0 40px rgba(0,224,255,.35);
}


/* ===============================
   🦶 FOOTER PRO AJUSTE FINAL
================================= */
.footer {
  margin-top: 120px;
  padding: 70px 20px 40px;
  background: var(--footer-bg);
}

.footer-content {
  max-width: 1100px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: center;
}

/* Marca */
.footer-brand strong {
  font-size: 1.2rem;
  color: var(--text);
}

.footer-desc {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 520px;
  margin: 10px auto 0;
  line-height: 1.6;
}

/* Enlaces */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--secondary);
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary);
}

/* Contacto */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-whatsapp {
  font-weight: 700;
  color: #25d366;
  text-decoration: none;
}

.footer-location {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Copyright */
.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.85;
}

/* 📱 Responsive */
@media (max-width: 600px) {
  .footer {
    margin-top: 80px;
    padding: 50px 16px 30px;
  }

  .footer-desc {
    font-size: 0.9rem;
  }
}


/* ===============================
   🌐 WEB PAGES – FUTURISTA PRO
================================= */

/* HERO WEB */
.hero {
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(0,224,255,.12), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(255,159,28,.12), transparent 50%);
  pointer-events: none;
}

/* Cards web – profundidad */
.cards .card {
  backdrop-filter: blur(6px);
}

/* Títulos con presencia */
.cards h2 {
  position: relative;
}

.cards h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 6px;
}

/* ===============================
   💼 PLANES WEB – DESTACADOS
================================= */
#planes .card {
  border: 1px solid rgba(0,224,255,.15);
}

#planes .card:hover {
  transform: translateY(-14px) scale(1.03);
  box-shadow:
    0 30px 80px rgba(0,0,0,.25),
    0 0 50px rgba(0,224,255,.35);
}

/* Plan recomendado (el del medio) */
#planes .card:nth-child(2) {
  border: 2px solid var(--accent);
  box-shadow: 0 20px 60px rgba(0,224,255,.25);
}

#planes .card:nth-child(2)::before {
  content: "⭐ Más elegido";
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  color: #000;
  font-size: .75rem;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 20px;
}

/* ===============================
   🔍 DEMOS – ESTADO FUTURO
================================= */
.cards .card span.link {
  display: inline-block;
  margin-top: 10px;
  opacity: .6;
  font-style: italic;
}

/* ===============================
   🤝 CONFIANZA – SUAVIDAD
================================= */
.cards:last-of-type .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,.18);
}


/* ===============================
   📱 HEADER MOBILE PRO (SLIDE + GLASS)
================================= */

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {

  .topbar {
    padding: 14px 20px;
  }

  .main-nav {
    position: fixed;
    top: 72px;
    right: 0;
    width: 100%;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 18px;

    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;

    transition: all .35s ease;
    box-shadow: 0 20px 50px rgba(0,0,0,.18);
    z-index: 999;
  }

  body.dark .main-nav {
    background: rgba(18,23,38,0.85);
  }

  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .menu-toggle {
    display: block;
  }
}


/* ===============================
   🍔 ICONO HAMBURGUESA ANIMADO
================================= */

.menu-toggle {
  width: 34px;
  height: 26px;
  position: relative;
  display: block;
}


.menu-toggle span {
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--text);
  border-radius: 4px;
  left: 0;
  transition: .35s ease;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 11px; }
.menu-toggle span:nth-child(3) { bottom: 0; }

/* ANIMACIÓN A ✖ */
.main-nav.active ~ .menu-toggle span:nth-child(1) {
  transform: rotate(45deg);
  top: 11px;
}

.main-nav.active ~ .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.main-nav.active ~ .menu-toggle span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 11px;
}
