@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  --ink: #152a33;
  --ink-soft: #4a6470;
  --ink-light: #7e95a0;
  --brand: #1a7fa8;
  --brand-deep: #0d5c7a;
  --brand-light: #e8f4f8;
  --accent-gold: #f59e0b;
  --accent-green: #10b981;
  --mist: #f4f8fa;
  --mist-line: #e4edf1;
  --whatsapp: #25D366;
  --whatsapp-hover: #1eb956;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: #ffffff;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

.u-container {
  max-width: 1180px;
  margin: 0 auto;
}

/* Botones principales */
.btn-brand {
  background-color: var(--brand);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(26, 127, 168, 0.25);
  cursor: pointer;
}

.btn-brand:hover {
  background-color: var(--brand-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 92, 122, 0.35);
}

.btn-brand:active {
  transform: translateY(0) scale(0.98);
}

.btn-whatsapp-cta {
  background-color: var(--whatsapp);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-whatsapp-cta:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

/* Miniaturas de galería */
.thumb {
  transition: all 0.2s ease;
  cursor: pointer;
}

.thumb.active {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 2px var(--brand);
  opacity: 1 !important;
}

.thumb:not(.active) {
  opacity: 0.65;
}

.thumb:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* Animaciones */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-reveal {
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Pulso de WhatsApp */
@keyframes wa-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.wa-pulse {
  animation: wa-pulse 2.2s infinite;
}

@keyframes wa-bubble-in {
  from {
    opacity: 0;
    transform: translateX(12px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

#wa-bubble {
  position: relative;
  animation: wa-bubble-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Video Containers verticales (9:16 formato Shorts/Reels) */
.video-box {
  position: relative;
  width: 100%;
  padding-bottom: 177.78%; /* 16:9 vertical ratio */
  height: 0;
  overflow: hidden;
  border-radius: 18px;
  background-color: #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.video-box iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Selector de Bundles */
.bundle-card {
  border: 2px solid var(--mist-line);
  background-color: #ffffff;
  border-radius: 16px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.bundle-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 127, 168, 0.08);
}

.bundle-card.selected {
  border-color: var(--brand);
  background-color: var(--brand-light);
  box-shadow: 0 8px 24px rgba(26, 127, 168, 0.15);
}

.bundle-badge {
  position: absolute;
  top: -12px;
  right: 16px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

/* Notificación de compra en vivo (Toast) */
.sales-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 55;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border: 1px solid var(--mist-line);
  box-shadow: 0 12px 30px rgba(21, 42, 51, 0.12);
  border-radius: 16px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 340px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

.sales-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Acordeón FAQ personalizado */
details summary::-webkit-details-marker {
  display: none;
}

details[open] summary .faq-icon {
  transform: rotate(45deg);
  color: var(--brand);
}

.faq-icon {
  transition: transform 0.25s ease, color 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
  .wa-pulse, #wa-bubble, .hero-reveal, .sales-toast {
    animation: none !important;
    transition: none !important;
  }
}
