/* ==========================================================================
   FREQUENTIA GLOBAL - PREMIUM CSS
   La Frecuencia Dorada de la Riqueza Interior
   ========================================================================== */

/* ==================== VARIABLES GLOBALES ==================== */
:root {
  --oro-puro: #d4af37;
  --oro-oscuro: #b8860b;
  --oro-gradient: linear-gradient(135deg, #d4af37, #b8860b);
  --oro-suave: #f5e9c9;
  --negro-marmol: #0a0a0a;
  --negro-elevado: #121212;
  --gris-lujo: #1a1a1a;
  --gris-texto: #8a8a8a;
  --blanco-crema: #faf8f3;
  --blanco-puro: #ffffff;
  --sombra-dorada: 0 8px 32px rgba(212, 175, 55, 0.2);
  --sombra-dorada-intensa: 0 0 40px rgba(212, 175, 55, 0.4);
  --transicion: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ==================== RESET Y BASE ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--negro-marmol);
  color: var(--blanco-crema);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== FONDO MÁRMOL ANIMADO ==================== */
.marble-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -10;
  background: 
    radial-gradient(ellipse at 20% 30%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(184, 134, 11, 0.02) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(212, 175, 55, 0.01) 0%, transparent 70%),
    var(--negro-marmol);
  animation: marblePulse 15s infinite ease-in-out;
}

@keyframes marblePulse {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 1; }
}

/* ==================== NAVIGATION PREMIUM ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  z-index: 1000;
  transition: var(--transicion);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 42px;
  width: auto;
  filter: brightness(0) saturate(100%) invert(78%) sepia(32%) saturate(559%) hue-rotate(6deg) brightness(96%) contrast(89%);
  transition: var(--transicion);
}

.logo img:hover {
  filter: brightness(0) saturate(100%) invert(78%) sepia(32%) saturate(559%) hue-rotate(6deg) brightness(110%) contrast(100%);
}

/* Menú Desktop */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-menu a {
  color: var(--blanco-crema);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: var(--transicion);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--oro-gradient);
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: var(--oro-puro);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Botón CTA Nav */
.cta-nav {
  background: var(--oro-gradient);
  border: none;
  padding: 14px 28px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--negro-marmol);
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transicion);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.cta-nav:hover {
  transform: translateY(-2px);
  box-shadow: var(--sombra-dorada-intensa);
}

.cta-nav:active {
  transform: translateY(0);
}

/* Menú Hamburguesa (Móvil) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--oro-puro);
  margin: 3px 0;
  transition: var(--transicion);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Menú Móvil Desplegable */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--negro-marmol);
  border-left: 1px solid rgba(212, 175, 55, 0.2);
  transition: right 0.4s ease;
  z-index: 999;
  padding: 100px 30px 30px;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu li {
  margin-bottom: 25px;
}

.mobile-menu a {
  color: var(--blanco-crema);
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  display: block;
  padding: 10px 0;
  transition: color 0.3s;
}

.mobile-menu a:hover {
  color: var(--oro-puro);
}

/* ==================== HERO PREMIUM ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--oro-gradient);
  color: var(--negro-marmol);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: var(--sombra-dorada);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-title .gold-text {
  background: var(--oro-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gris-texto);
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 90%;
}

.hero-subtitle strong {
  color: var(--oro-puro);
}

.benefits-list {
  margin-bottom: 40px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 1rem;
  color: var(--blanco-crema);
}

.benefit-item i {
  color: var(--oro-puro);
  font-size: 1.2rem;
}

.cta-wrapper {
  margin-bottom: 20px;
}

.cta-hero {
  background: var(--oro-gradient);
  border: none;
  padding: 20px 40px;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--negro-marmol);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transicion);
  display: inline-flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--sombra-dorada);
  position: relative;
  overflow: hidden;
}

.cta-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: 0.5s;
}

.cta-hero:hover::before {
  left: 100%;
}

.cta-hero:hover {
  transform: scale(1.05);
  box-shadow: var(--sombra-dorada-intensa);
}

.cta-text {
  position: relative;
  z-index: 2;
}

.cta-price {
  background: var(--negro-elevado);
  color: var(--oro-puro);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  position: relative;
  z-index: 2;
}

.garantia {
  font-size: 0.9rem;
  color: var(--oro-puro);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.payment-methods {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--gris-texto);
  font-size: 0.9rem;
}

.payment-methods i {
  font-size: 1.8rem;
  color: var(--oro-puro);
}

/* Hero Image */
.hero-image {
  position: relative;
}

.book-mockup {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

.book-mockup img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
  position: relative;
  z-index: 2;
}

.book-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
  filter: blur(40px);
  animation: glowPulse 3s infinite ease-in-out;
  z-index: 1;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.9; }
}

/* ==================== TRUST SECTION ==================== */
.trust-section {
  padding: 80px 0;
  background: rgba(26, 26, 26, 0.5);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.trust-card {
  background: var(--gris-lujo);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.1);
  text-align: center;
  transition: var(--transicion);
}

.trust-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra-dorada);
}

.trust-icon {
  font-size: 3rem;
  color: var(--oro-puro);
  margin-bottom: 20px;
}

.trust-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--oro-puro);
}

.trust-card p {
  color: var(--gris-texto);
  line-height: 1.6;
}

/* ==================== METHOD SECTION ==================== */
.method-section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--blanco-crema);
  margin-bottom: 20px;
}

.section-title .gold-text {
  background: var(--oro-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--gris-texto);
  max-width: 700px;
  margin: 0 auto;
}

.laws-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.law-card {
  background: var(--gris-lujo);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid rgba(212, 175, 55, 0.1);
  transition: var(--transicion);
  position: relative;
  overflow: hidden;
}

.law-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--oro-gradient);
  transition: width 0.3s ease;
}

.law-card:hover {
  transform: translateX(10px);
  box-shadow: var(--sombra-dorada);
}

.law-card:hover::before {
  width: 8px;
}

.law-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--oro-puro);
  opacity: 0.2;
  position: absolute;
  top: 10px;
  right: 20px;
}

.law-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--oro-puro);
  position: relative;
  z-index: 2;
}

.law-card p {
  color: var(--gris-texto);
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

/* ==================== TESTIMONIOS ==================== */
.testimonials-section {
  padding: 100px 0;
  background: rgba(26, 26, 26, 0.3);
}

.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.testimonial-card {
  background: var(--gris-lujo);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.1);
  position: relative;
}

.stars {
  color: var(--oro-puro);
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 30px;
  color: var(--blanco-crema);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--oro-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--negro-marmol);
}

.testimonial-author div {
  display: flex;
  flex-direction: column;
}

.testimonial-author strong {
  color: var(--oro-puro);
  font-size: 1rem;
}

.testimonial-author span {
  color: var(--gris-texto);
  font-size: 0.9rem;
}

/* ==================== LEAD SECTION ==================== */
.lead-section {
  padding: 100px 0;
}

.lead-box {
  background: var(--gris-lujo);
  padding: 60px;
  border-radius: 25px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.lead-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--oro-puro);
}

.lead-box p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--gris-texto);
}

.lead-form .form-group {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.lead-form input {
  flex: 1;
  padding: 15px 20px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 30px;
  background: var(--negro-elevado);
  color: var(--blanco-crema);
  font-size: 1rem;
  transition: border-color 0.3s;
}

.lead-form input:focus {
  outline: none;
  border-color: var(--oro-puro);
}

.lead-form input::placeholder {
  color: var(--gris-texto);
}

.btn-download {
  background: var(--oro-gradient);
  border: none;
  padding: 15px 30px;
  font-weight: 700;
  color: var(--negro-marmol);
  border-radius: 30px;
  cursor: pointer;
  transition: transform 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-download:hover {
  transform: scale(1.05);
}

.lead-box small {
  color: var(--oro-puro);
  font-size: 0.9rem;
}

/* ==================== FINAL CTA ==================== */
.final-cta {
  padding: 120px 0;
  background: rgba(26, 26, 26, 0.5);
}

.cta-final-box {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-final-box h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  margin-bottom: 20px;
}

.cta-final-box p {
  font-size: 1.2rem;
  color: var(--gris-texto);
  margin-bottom: 40px;
}

/* ==================== FOOTER ==================== */
footer {
  padding: 60px 0 30px;
  background: var(--negro-elevado);
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--oro-puro);
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.footer-col p {
  color: var(--gris-texto);
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--blanco-crema);
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--oro-puro);
}

.footer-col i {
  width: 20px;
  margin-right: 8px;
  color: var(--oro-puro);
}

.copyright {
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  padding-top: 20px;
  text-align: center;
  color: var(--gris-texto);
  font-size: 0.9rem;
}

/* ==================== NOTIFICACIONES TOAST ==================== */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 25px;
  border-radius: 10px;
  color: var(--negro-marmol);
  font-weight: 600;
  z-index: 10000;
  max-width: 400px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  transform: translateX(400px);
  transition: transform 0.3s ease;
}

.notification-success {
  background: var(--oro-puro);
}

.notification-error {
  background: #e74c3c;
  color: white;
}

.notification-info {
  background: var(--gris-lujo);
  color: var(--blanco-crema);
}

.notification.show {
  transform: translateX(0);
}

/* ==================== ANIMACIONES ==================== */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.pulse-animation {
  animation: pulse 2s infinite;
}

/* Animaciones de Scroll */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s ease;
}

.fade-in-up.animate-in,
.fade-in-right.animate-in {
  opacity: 1;
  transform: translate(0, 0);
}

/* ==================== RESPONSIVIDAD ==================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    max-width: 100%;
  }
  
  .hero-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  /* Menú */
  .nav-menu {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .cta-nav {
    display: none;
  }
  
  /* Hero */
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-badge {
    font-size: 11px;
    padding: 6px 12px;
  }
  
  /* Grid layouts */
  .laws-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials-slider {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  /* Formularios */
  .lead-form .form-group {
    flex-direction: column;
  }
  
  .btn-download {
    width: 100%;
  }
  
  /* Secciones */
  .section-title {
    font-size: 2.5rem;
  }
  
  .lead-box,
  .payment-box {
    padding: 40px 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .cta-hero {
    flex-direction: column;
    gap: 10px;
    padding: 15px 30px;
  }
  
  .cta-price {
    width: 100%;
    text-align: center;
  }
}