/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@400;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg-color: #0a0b10;
  --primary: #4F46E5; /* Deep Indigo / Blue */
  --secondary: #9333EA; /* Majestic Lilac / Purple */
  --accent: #E879F9; /* Pink neon */
  
  --glass-bg: rgba(255, 255, 255, 0.05); /* Usado primordialmente en botones claros, las tarjetas usarán negro translucido */
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(16px);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3); /* Sombra acentuada en oscuro */
  
  --text-main: #F8FAFC; /* Slate 50 ultra claro */
  --text-muted: #CBD5E1; /* Slate 300 */
  
  --radial-glow-1: radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.15) 0%, transparent 40%);
  --radial-glow-2: radial-gradient(circle at 90% 80%, rgba(147, 51, 234, 0.15) 0%, transparent 40%);
}

@font-face {
  font-family: 'Neue Montreal';
  src: local('Helvetica Neue'), local('Arial'); /* Fallback provisional local si no existe renderiza sans-serif */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Neue Montreal', 'Inter', sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* --- Abstract Noise Gradient Blurred Background (Fluid Mesh Shader Emulation) --- */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  background: var(--bg-color); /* Base #0a0b10 */
  overflow: hidden;
}

.bg-animation::before,
.bg-animation::after,
.bg-animation-orb3,
.bg-animation-orb4 {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.8;
  animation: meshFloat 12s infinite alternate ease-in-out;
}

.bg-animation-orb4 { /* Dark Blue Layer */
  width: 80vw;
  height: 80vh;
  background: #1e1b4b; /* bg-indigo-950 */
  top: -20%;
  left: -20%;
  animation-duration: 15s;
}

.bg-animation::before { /* Essential Lilac Layer */
  width: 60vw;
  height: 60vh;
  background: #6b21a8; /* bg-purple-800 */
  top: 40%;
  left: 20%;
  animation-delay: -5s;
  animation-duration: 12s;
}

.bg-animation::after { /* Spectral Light Blue Layer */
  width: 50vw;
  height: 50vh;
  background: rgba(56, 189, 248, 0.4); /* sky-400 with opacity */
  bottom: -10%;
  right: -10%;
  animation-delay: -12s;
  animation-duration: 18s;
}

.bg-animation-orb3 { /* Black/Deep Overlay for Contrast */
  width: 70vw;
  height: 70vh;
  background: #020617; /* bg-slate-950 */
  top: 10%;
  right: 10%;
  animation-delay: -18s;
  animation-duration: 16s;
  mix-blend-mode: overlay;
}

.bg-noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  opacity: 0.06; /* Reducido drásticamente para no ocultar la animación */
  mix-blend-mode: overlay; /* Permite que el ruido se fusione con los colores de abajo sin taparlos */
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

@keyframes meshFloat {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  33% { transform: translate(15%, 25%) scale(1.15) rotate(90deg); }
  66% { transform: translate(-20%, 10%) scale(0.85) rotate(180deg); }
  100% { transform: translate(-10%, -25%) scale(1) rotate(360deg); }
}

/* --- Utilities & Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: 'League Spartan', sans-serif;
  color: var(--text-main);
  line-height: 1.1;
}

h1 { font-size: clamp(3rem, 6vw, 6rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 4rem); font-weight: 700; margin-bottom: 2rem; letter-spacing: -0.01em; }
p { font-size: 1.125rem; line-height: 1.6; color: var(--text-muted); }

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Components: Liquid Glass (aliimam adaptation) --- */
.glass-panel, .glass-card {
  background: rgba(10, 11, 16, 0.4); /* Fondo base casi translúcido */
  -webkit-backdrop-filter: blur(16px); /* Fallback para Safari */
  backdrop-filter: url("#container-glass") blur(16px);
  border-radius: 24px;
  /* 9 Capas de sombras para el destello y volumen de Liquid Glass */
  box-shadow: 
    0 0 8px rgba(0,0,0,0.03), 
    0 2px 6px rgba(0,0,0,0.08), 
    inset 3px 3px 0.5px -3.5px rgba(255,255,255,0.09), 
    inset -3px -3px 0.5px -3.5px rgba(255,255,255,0.85), 
    inset 1px 1px 1px -0.5px rgba(255,255,255,0.6), 
    inset -1px -1px 1px -0.5px rgba(255,255,255,0.6), 
    inset 0 0 6px 6px rgba(255,255,255,0.05), 
    inset 0 0 2px 2px rgba(255,255,255,0.02), 
    0 0 12px rgba(0,0,0,0.3);
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Shine Hover Flare Effect (Radial gradient overlay) */
.glass-panel::after, .glass-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: -1;
}

.glass-panel:hover::after, .glass-card:hover::after {
  opacity: 1;
}

.glass-panel:hover, .glass-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 
    0 0 8px rgba(0,0,0,0.05), 
    0 10px 20px rgba(0,0,0,0.3), 
    inset 3px 3px 0.5px -3.5px rgba(255,255,255,0.1), 
    inset -3px -3px 0.5px -3.5px rgba(255,255,255,0.9), 
    inset 1px 1px 1px -0.5px rgba(255,255,255,0.8), 
    inset -1px -1px 1px -0.5px rgba(255,255,255,0.8), 
    inset 0 0 6px 6px rgba(255,255,255,0.08), 
    inset 0 0 2px 2px rgba(255,255,255,0.04), 
    0 16px 48px rgba(79, 70, 229, 0.25);
}

/* --- CTA Buttons (Neon Glow + Liquid Glass) --- */
.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 32px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-weight: 600;
  text-decoration: none;
  
  /* Liquid Glass Core Defaults */
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: url("#container-glass") blur(10px);
  box-shadow: 
    0 0 6px rgba(0,0,0,0.03), 
    0 2px 6px rgba(0,0,0,0.08), 
    inset 2px 2px 0.5px -2px rgba(255,255,255,0.09), 
    inset -2px -2px 0.5px -2px rgba(255,255,255,0.85), 
    inset 1px 1px 1px -0.5px rgba(255,255,255,0.6), 
    inset -1px -1px 1px -0.5px rgba(255,255,255,0.6), 
    inset 0 0 4px 4px rgba(255,255,255,0.04), 
    0 0 12px rgba(0,0,0,0.15);
    
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-glass::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: -1;
}

.btn-glass:hover::after {
  opacity: 1;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    inset 2px 2px 0.5px -2px rgba(255,255,255,0.15), 
    inset -2px -2px 0.5px -2px rgba(255,255,255,0.9), 
    inset 1px 1px 1px -0.5px rgba(255,255,255,0.8), 
    inset -1px -1px 1px -0.5px rgba(255,255,255,0.8),
    0 4px 15px rgba(79, 70, 229, 0.4);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  color: #FFF !important;
  position: relative;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  z-index: -1;
  transition: opacity 0.3s ease;
  opacity: 0;
  border-radius: inherit;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(147, 51, 234, 0.6);
  transform: translateY(-3px) scale(1.02);
}

/* --- Layout Sections --- */
section {
  padding: 8rem 0;
  position: relative;
  z-index: 1;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 120px;
}

.hero-content {
  max-width: 900px;
  z-index: 2;
}

.hero p.lead {
  font-size: 1.5rem;
  margin: 1.5rem 0 3rem;
  color: var(--text-muted);
}

.hero-meta {
  display: inline-flex;
  gap: 2rem;
  margin-bottom: 2rem;
  background: rgba(0, 0, 0, 0.5); /* Oscuro translúcido */
  padding: 12px 32px;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  color: var(--text-main);
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }

/* Cards Styling */
.card-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 2px solid var(--accent);
  box-shadow: 0 0 20px rgba(232, 121, 249, 0.3);
}

.glass-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

/* Pricing Table */
.pricing-card {
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  color: var(--text-main);
  transition: all 0.3s ease;
  box-shadow: var(--glass-shadow);
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(232, 121, 249, 0.15); /* Pink shadow for featured */
  transform: scale(1.05);
  background: rgba(23, 15, 45, 0.6); /* Tint Ligeramente morado */
}

.pricing-card:hover { /* generic hover para precios no-featured */
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  border-color: rgba(255,255,255,0.2);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
  box-shadow: 0 20px 50px rgba(232, 121, 249, 0.25);
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  margin: 1.5rem 0;
  color: var(--text-main);
}

.pricing-price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  margin: 2rem 0;
  text-align: left;
}

.pricing-features li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
}

.pricing-features li svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #CBD5E1;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #ffffff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
}

.form-control option {
  background: #0f172a;
  color: #ffffff;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none; border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.6;
}

.modal-close:hover { opacity: 1; }



/* Footer */
footer {
  padding: 4rem 0 2rem;
  background: rgba(0,0,0,0.5);
  position: relative;
  z-index: 1;
}

/* Animations */
.animate-me { 
  opacity: 0; 
  transform: translateY(30px); 
  transition: all 0.8s ease-out; 
}
.animate-me.visible { 
  opacity: 1; 
  transform: translateY(0); 
}

.fade-in-up { 
  opacity: 0; 
  transform: translateY(30px); 
  transition: all 0.8s ease-out; 
}
.animate-me.visible .fade-in-up { 
  opacity: 1; 
  transform: translateY(0); 
}
.animate-me.visible.fade-in-up {
  opacity: 1;
  transform: translateY(0);
}

/* --- macOS Tahoe Floating Dock --- */
.mac-dock-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  pointer-events: none; /* Que el container no bloquee clicks, sólo sus hijos */
}

.mac-dock {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(30, 30, 35, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.mac-dock-item {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* Elastic spring function */
  border: 1px solid transparent;
  transform-origin: bottom;
}

/* Glass bubble hover con rebote */
.mac-dock-item:hover {
  transform: scale(1.35) translateY(-8px);
  background: rgba(255, 255, 255, 0.15);
  color: #FFF;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5), inset 0 2px 10px rgba(255,255,255,0.2);
  z-index: 2;
}

/* Twinkling Pink Glow for Ticket Dock Item */
.mac-dock-ticket {
  border-radius: 20px;
  background: rgba(232, 121, 249, 0.25) !important;
  border: 1px solid var(--accent) !important;
  color: #fff !important;
  box-shadow: 0 0 15px rgba(232, 121, 249, 0.4);
  animation: pulseGlow 2s infinite alternate ease-in-out;
}

.mac-dock-ticket:hover {
  background: rgba(232, 121, 249, 0.4) !important;
  box-shadow: 0 0 30px rgba(232, 121, 249, 0.8), inset 0 0 10px rgba(232, 121, 249, 0.5) !important;
  transform: scale(1.35) translateY(-8px) !important;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 10px rgba(232, 121, 249, 0.3), inset 0 0 5px rgba(232, 121, 249, 0.1); }
  50% { box-shadow: 0 0 25px rgba(232, 121, 249, 0.8), inset 0 0 15px rgba(232, 121, 249, 0.4), 0 0 8px rgba(255,255,255,0.8); }
  100% { box-shadow: 0 0 10px rgba(232, 121, 249, 0.3), inset 0 0 5px rgba(232, 121, 249, 0.1); }
}

/* Elementos vecinos escala ligera */
.mac-dock-item:has(+ .mac-dock-item:hover),
.mac-dock-item:hover + .mac-dock-item {
   transform: scale(1.15) translateY(-3px);
   background: rgba(255, 255, 255, 0.1);
}

.mac-dock-item svg {
  width: 24px;
  height: 24px;
  transition: all 0.3s ease;
}

.mac-dock-item:hover svg {
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.8));
}

/* Tooltip */
.mac-dock-tooltip {
  position: absolute;
  top: -45px;
  background: rgba(10, 10, 14, 0.85);
  backdrop-filter: blur(8px);
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.9);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.mac-dock-item:hover .mac-dock-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Responsive */
@media (max-width: 992px) {
  .grid-2 { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: scale(1); }
  .pricing-card.featured:hover { transform: translateY(-8px); }
  h1 { font-size: 2.5rem; }
  .hero-meta { flex-direction: column; gap: 1rem; padding: 1rem 2rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; } /* Add mobile menu later if needed */
  section { padding: 4rem 0; }
  .hero p.lead { font-size: 1.1rem; }
}
