/* ===========================
   MARATEL - Custom Styles v2
   Paleta: Negro + Azul
   =========================== */

/* --- Font: Argentum Sans Black (título principal, alt. LCT Picon Black) --- */
@font-face {
  font-family: 'Argentum Sans';
  src: url('../assets/fonts/ArgentumSans-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* --- Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  background: #05080F;
}

h1, h2, h3, h4, h5, h6 {
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  letter-spacing: -0.02em;
}

::selection {
  background: rgba(37, 99, 235, 0.35);
  color: #fff;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #05080F;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #22D3EE, #2563EB);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3B82F6;
}

/* --- Gradient Text --- */
.gradient-text {
  background: linear-gradient(120deg, #22D3EE 0%, #2563EB 55%, #60A5FA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Hero Main Title: Argentum Sans Black --- */
.hero-grid h1 {
  font-family: 'Argentum Sans', ui-sans-serif, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.01em;
}

/* --- Hero Grid Background --- */
.hero-grid {
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  overflow: hidden;
}

/* --- Hero Glow Orbs --- */
.orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(130px);
  opacity: 0.7;
  transition: transform 0.3s ease-out;
}

.orb-1 {
  top: 20%;
  left: 8%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.35), transparent 70%);
  animation: drift 9s ease-in-out infinite alternate;
}

.orb-2 {
  bottom: 5%;
  right: 6%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.25), transparent 70%);
  animation: drift 12s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.15); }
}

/* --- Navbar Glass --- */
#navbar {
  background: rgba(5, 8, 15, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(30, 41, 59, 0.6);
}

#navbar.scrolled {
  background: rgba(3, 7, 17, 0.92);
  border-bottom-color: rgba(34, 211, 238, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* --- Primary Button (shine effect) --- */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

/* --- Hamburger --- */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
  width: 1.5rem;
  transform: rotate(-45deg) translate(4px, -4px);
}

/* --- Ventaja Card --- */
.ventaja-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.ventaja-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #22D3EE, #2563EB, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ventaja-card:hover::before {
  opacity: 1;
}

.ventaja-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.18);
}

/* --- Plan Card --- */
.plan-card {
  transition: all 0.3s ease;
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.45);
}

.plan-popular {
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.08);
}

.plan-popular:hover {
  box-shadow: 0 18px 55px rgba(37, 99, 235, 0.2);
  transform: translateY(-10px);
}

/* --- Pulse Glow Animation --- */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 22px rgba(34, 211, 238, 0.12);
  }
  50% {
    box-shadow: 0 0 45px rgba(37, 99, 235, 0.25);
  }
}

.plan-popular {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* --- Plan Numbers Font --- */
.plan-card .text-6xl {
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  letter-spacing: -0.04em;
}

/* --- Scroll Reveal --- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fallback: show all after 2s if JS/Observer fails */
@keyframes revealFallback {
  to { opacity: 1; transform: translateY(0); }
}

.scroll-reveal {
  animation: revealFallback 0s 2s forwards;
}

.scroll-reveal.visible {
  animation: none;
}

/* Staggered delay for grid children */
.grid > .scroll-reveal:nth-child(1) { transition-delay: 0ms; animation-delay: 2s; }
.grid > .scroll-reveal:nth-child(2) { transition-delay: 100ms; animation-delay: 2.1s; }
.grid > .scroll-reveal:nth-child(3) { transition-delay: 200ms; animation-delay: 2.2s; }
.grid > .scroll-reveal:nth-child(4) { transition-delay: 300ms; animation-delay: 2.3s; }

/* --- Focus Styles --- */
input:focus {
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

/* --- Mobile Menu Transition --- */
#mobileMenu {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobileMenu.active {
  transform: translateX(0);
}

#mobileMenu .mobile-nav-link {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease, color 0.3s ease;
}

#mobileMenu.active .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}

#mobileMenu.active .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.active .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.active .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.active .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.active .mobile-nav-link:nth-child(5) { transition-delay: 0.3s; }

#mobileMenu .mobile-nav-cta {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease 0.35s, transform 0.4s ease 0.35s;
}

#mobileMenu.active .mobile-nav-cta {
  opacity: 1;
  transform: translateY(0);
}

/* --- Mobile Menu Overlay (pure CSS, no Tailwind dependency) --- */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  background: #05080F;
  background: rgba(5, 8, 15, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transform: translateX(-100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-overlay.active {
  transform: translateX(0);
}

.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid #1E293B;
  background: transparent;
  color: #94A3B8;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 210;
}

.mobile-menu-close:hover {
  color: #fff;
  border-color: rgba(34, 211, 238, 0.6);
  background: rgba(34, 211, 238, 0.08);
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.mobile-menu-nav .mobile-nav-link {
  font-size: 1.65rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-menu-nav .mobile-nav-link:hover {
  color: #22D3EE;
}

.mobile-menu-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  width: 16rem;
}

/* Hide mobile menu on desktop */
@media (min-width: 1024px) {
  .mobile-menu-overlay {
    display: none !important;
  }
}

/* --- Responsive Adjustments --- */
@media (max-width: 640px) {
  .hero-grid h1 {
    font-size: 2.25rem;
    line-height: 1.15;
  }

  .plan-card .text-6xl {
    font-size: 3rem;
  }

  .plan-card .text-2xl {
    font-size: 1.25rem;
  }

  .orb-1 { width: 260px; height: 260px; }
  .orb-2 { width: 200px; height: 200px; }

  .report-modal {
    padding: 1.25rem;
    border-radius: 16px;
  }

  .report-option {
    padding: 0.75rem 0.9rem;
  }
}

@media (max-width: 768px) {
  .plan-popular {
    transform: none;
  }

  .plan-popular:hover {
    transform: translateY(-4px);
  }
}

/* --- Loading State --- */
.btn-loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn-loading::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Success Toast --- */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0B1120;
  border: 1px solid #22D3EE;
  color: #fff;
  padding: 16px 28px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  z-index: 100;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 40px rgba(37, 99, 235, 0.25);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast svg {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

/* ===========================
   Animated Background (v3)
   =========================== */

/* --- Particle Canvas --- */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* --- Cursor Spotlight --- */
.cursor-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* --- Content above background layers --- */
section,
footer {
  position: relative;
  z-index: 1;
}

/* --- Floating plan icons --- */
@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.ventaja-card > div:first-child {
  animation: iconFloat 5s ease-in-out infinite;
}

.ventaja-card:nth-child(2n) > div:first-child {
  animation-delay: 1.2s;
}

.ventaja-card:nth-child(3n) > div:first-child {
  animation-delay: 2.1s;
}

/* --- Reduced motion accessibility --- */
@media (prefers-reduced-motion: reduce) {
  .bg-canvas,
  .cursor-glow {
    display: none;
  }

  .ventaja-card > div:first-child {
    animation: none;
  }
}

/* ===========================
   Report Payment Modal
   =========================== */

.report-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(3, 7, 17, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.report-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.report-modal {
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #0D1526 0%, #0B1120 100%);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  transform: translateY(28px) scale(0.95);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(37, 99, 235, 0.1);
}

.report-modal-overlay.open .report-modal {
  transform: translateY(0) scale(1);
}

/* --- Modal Options --- */
.report-options {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.report-option {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid #1E293B;
  border-radius: 14px;
  transition: all 0.3s ease;
}

.report-option:hover {
  border-color: rgba(34, 211, 238, 0.55);
  background: rgba(37, 99, 235, 0.09);
  transform: translateX(4px);
  box-shadow: 0 8px 26px rgba(37, 99, 235, 0.18);
}

.report-option-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.12);
  color: #22D3EE;
  transition: background 0.3s ease;
}

.report-option:hover .report-option-icon {
  background: rgba(34, 211, 238, 0.18);
}

@media (max-width: 640px) {
  .report-modal {
    padding: 1.5rem;
  }
}