/* ===== Variables – Diseño elegante y profesional ===== */
:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --accent: #e11d48;
  --success: #059669;
  --whatsapp: #25d366;
  --paypal: #003087;
  --dark: #0f172a;
  --darker: #020617;
  --light-bg: #f8fafc;
  --muted: #64748b;
  --gradient-hero: linear-gradient(145deg, #0f172a 0%, #1e1b4b 55%, #312e81 100%);
  --gradient-cta: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  --gradient-accent: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
  --shadow-soft: 0 10px 40px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 4px 24px rgba(15, 23, 42, 0.06);
  --radius: 1rem;
}

/* ===== Base ===== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1e293b;
  line-height: 1.65;
  overflow-x: hidden;
  background: #fff;
}

/* ===== Navbar ===== */
.navbar {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.navbar-brand {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff !important;
}

.navbar-brand i {
  color: #818cf8;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8) !important;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #fff !important;
}

/* ===== Hero ===== */
.hero-section {
  min-height: 88vh;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(79, 70, 229, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(225, 29, 72, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #e0e7ff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.45rem 1.15rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.hero-title {
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.2;
}

.hero-price-tag {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  margin: 1rem 0;
}

.btn-cta {
  background: #fff;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.95rem 2.4rem;
  border-radius: 50px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
  border: none;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.3);
  background: #f8fafc;
  color: var(--primary-dark);
}

/* Animations */
.animate-fade-in {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeInUp 0.7s ease forwards;
}

.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }
.delay-4 { animation-delay: 0.48s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Steps ===== */
.step-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-title {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dark);
}

/* ===== Option cards ===== */
.option-card {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  cursor: pointer;
  background: #fff;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}

.option-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.25s;
}

.option-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: #c7d2fe;
}

.option-card:hover::before,
.option-card.selected::before {
  opacity: 1;
}

.option-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15), var(--shadow-soft);
}

#card-option-a.selected {
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15), var(--shadow-soft);
}

#card-option-a.selected::before {
  background: var(--success);
}

.option-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  transition: transform 0.25s;
}

.option-card:hover .option-icon {
  transform: scale(1.06);
}

/* ===== Product checks ===== */
.product-check {
  background: #f1f5f9;
  padding: 0.8rem 1rem;
  border-radius: 0.65rem;
  transition: background 0.2s, border-color 0.2s;
  border: 1px solid transparent;
}

.product-check:hover {
  background: #e0e7ff;
  border-color: #c7d2fe;
}

.product-check .form-check-input:checked + .form-check-label {
  font-weight: 600;
  color: var(--success);
}

/* ===== Buttons ===== */
.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  border: none;
  font-weight: 600;
}

.btn-whatsapp:hover {
  background: #1da851;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

.btn-paypal {
  background: var(--paypal);
  color: #fff;
  border: none;
  font-weight: 700;
  padding: 0.9rem 2rem;
  transition: all 0.25s;
}

.btn-paypal:hover {
  background: #001c64;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 48, 135, 0.35);
}

.btn-primary {
  background: var(--primary);
  border: none;
  font-weight: 600;
  transition: all 0.25s;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}

.btn-success {
  background: var(--success);
  border: none;
  font-weight: 600;
}

.btn-success:hover {
  background: #047857;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35);
}

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ===== Color palette chips ===== */
.color-chip {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #cbd5e1, 0 2px 8px rgba(0,0,0,0.12);
  cursor: pointer;
  position: relative;
  transition: transform 0.2s;
}

.color-chip:hover {
  transform: scale(1.12);
}

.color-chip .remove-color {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  background: #ef4444;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: none;
  padding: 0;
  font-weight: bold;
}

/* ===== Share section ===== */
.share-section {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.share-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(79, 70, 229, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.share-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.share-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.28);
  color: #fff;
}

.share-whatsapp { background: #25d366; }
.share-facebook { background: #1877f2; }
.share-twitter { background: #171717; }
.share-linkedin { background: #0a66c2; }
.share-email { background: #dc2626; }
.share-copy { background: var(--primary); }

/* ===== Price highlight box ===== */
.price-highlight {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.4rem 1.75rem;
  text-align: left;
  box-shadow: var(--shadow-card);
}

.price-highlight h3 {
  color: var(--dark);
  font-size: 1.15rem;
}

/* ===== Cookie Banner ===== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  padding: 1.1rem 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
  border-top: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

#cookie-banner.hiding {
  transform: translateY(100%);
  opacity: 0;
}

#cookie-banner .btn-accept {
  background: var(--primary);
  border: none;
  font-weight: 600;
  color: #fff;
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  transition: background 0.2s, transform 0.2s;
}

#cookie-banner .btn-accept:hover {
  background: var(--primary-dark);
  transform: scale(1.03);
  color: #fff;
}

/* ===== Footer ===== */
.footer {
  background: var(--darker);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-link {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #a5b4fc;
}

/* ===== Forms ===== */
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.2);
  border-color: var(--primary);
}

.form-control-color {
  width: 3.2rem;
  height: 2.4rem;
  padding: 0.2rem;
}

.card {
  border-radius: var(--radius);
}

.form-control.is-invalid {
  border-color: #ef4444;
}

/* ===== Utility ===== */
.bg-light {
  background-color: var(--light-bg) !important;
}

.alert-info {
  background: #eef2ff;
  color: #312e81;
  border: 1px solid #c7d2fe;
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* ===== Mobile: limpio, sin “colorines” ===== */
@media (max-width: 768px) {
  .hero-section {
    min-height: 78vh;
    background: #0f172a;
  }

  .hero-section::before {
    background: radial-gradient(ellipse 100% 60% at 50% 0%, rgba(79, 70, 229, 0.25) 0%, transparent 55%);
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-price-tag {
    font-size: 0.9rem;
    padding: 0.5rem 1.1rem;
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.18);
  }

  .btn-cta {
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
  }

  .option-card:hover {
    transform: none;
  }

  .option-card {
    box-shadow: none;
    border: 1px solid #e2e8f0;
  }

  .price-highlight {
    border-left-width: 3px;
    padding: 1.1rem 1.2rem;
  }

  .price-highlight h3 {
    font-size: 1.05rem;
  }

  .share-btn {
    width: 46px;
    height: 46px;
    font-size: 1.15rem;
  }

  .step-badge {
    font-size: 0.75rem;
  }

  /* Evitar fondos muy saturados en formularios móvil */
  .product-check {
    background: #f8fafc;
  }

  .product-check:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
  }
}

@media (max-width: 576px) {
  .hero-section {
    min-height: 72vh;
  }

  .display-4,
  .hero-title {
    font-size: 1.55rem;
  }

  .btn-lg {
    padding: 0.7rem 1.15rem;
    font-size: 0.95rem;
  }

  .navbar-brand {
    font-size: 1.15rem;
  }
}
