/* ==========================================================================
   ECLIPSE MÁGICO - HOJA DE ESTILOS PREMIUM
   Estética: Minimalismo, Elegancia, Alta Vibración (Blanco, Oro y Mármol)
   ========================================================================== */

/* 1. Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* 2. Variables del Sistema de Diseño */
:root {
  /* Colores Base */
  --bg-primary: #FFFFFF;
  --bg-secondary: #FAF8F5; /* Marfil suave */
  --bg-tertiary: #F4F0EA;   /* Arena sutil */
  --bg-overlay: rgba(255, 255, 255, 0.85);

  /* Acentos Dorados (Oro Alquímico) */
  --gold-light: #E5D3B3;
  --gold-medium: #D4AF37;
  --gold-dark: #AA7C11;
  --gold-gradient: linear-gradient(135deg, #F3E7C4 0%, #D4AF37 50%, #A37A1A 100%);
  --gold-gradient-hover: linear-gradient(135deg, #FFFFFF 0%, #E5D3B3 40%, #D4AF37 100%);
  --gold-text: #C5A059;
  --gold-border: rgba(212, 175, 55, 0.3);
  --gold-border-solid: #D4AF37;

  /* Tipografía y Color de Texto */
  --text-main: #1A1A1A;
  --text-muted: #5A5A5A;
  --font-title: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;

  /* Sombras y Efectos */
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.03);
  --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.08);
  --shadow-gold-hover: 0 15px 40px rgba(212, 175, 55, 0.2);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(212, 175, 55, 0.2);

  /* Transiciones y Ajustes */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.2s ease-in-out;
}

/* 3. Resets y Estilos Globales */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Fondo con Textura de Mármol Sutil */
.marble-texture-bg {
  background-image: linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94)), url('assets/marble_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 4. Elementos de Interfaz Comunes (UI Kit) */
.section-padding {
  padding: 100px 20px;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 70px 15px;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Títulos Elegantes */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-number {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-text);
  letter-spacing: 4px;
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 1px;
  line-height: 1.2;
}

.section-subtitle {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--gold-text);
  margin-top: 10px;
  font-weight: 400;
}

.section-intro-text {
  max-width: 700px;
  margin: 25px auto 0 auto;
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 300;
}

/* Botones Premium */
.btn-gold {
  background: var(--gold-gradient);
  color: #FFFFFF !important;
  border: 1px solid var(--gold-medium);
  padding: 16px 36px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gold-gradient-hover);
  transition: var(--transition-smooth);
  z-index: -1;
  opacity: 0;
}

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

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold-hover);
  color: #1A1A1A !important;
  border-color: var(--gold-light);
  letter-spacing: 2.5px;
}

.btn-outline-gold {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--gold-medium);
  padding: 14px 30px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.btn-outline-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gold-gradient);
  transition: var(--transition-smooth);
  z-index: -1;
  opacity: 0;
}

.btn-outline-gold:hover::before {
  opacity: 1;
}

.btn-outline-gold:hover {
  transform: translateY(-2px);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: var(--shadow-gold);
}

/* Tarjetas Elegantes (Glassmorphism & Gold hover) */
.card-premium {
  background: var(--bg-primary);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 2px;
  padding: 40px 30px;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-subtle);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-premium:hover {
  transform: translateY(-8px);
  border-color: var(--gold-medium);
  box-shadow: var(--shadow-gold-hover);
}

.card-premium::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

.card-premium:hover::after {
  width: 80%;
}

.card-image-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 25px;
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.card-premium:hover .card-image {
  transform: scale(1.04);
}

/* 5. Barra de Navegación Glassmorphic */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px;
  max-width: 1300px;
  margin: 0 auto;
}

.navbar.scrolled .nav-container {
  padding: 10px 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-main);
}

.nav-logo img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--gold-medium);
}

.nav-logo span {
  color: var(--gold-text);
  font-weight: 400;
  font-style: italic;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 35px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-main);
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-medium);
  transition: var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--gold-text);
}

/* Hamburguesa en Móviles */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  border: none;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition-smooth);
}

/* 6. Sección Héroe (Hero) */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 120px;
  padding-bottom: 80px;
  overflow: hidden;
}

.hero-overlay-graphic {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vh;
  height: 60vh;
  background: radial-gradient(circle, rgba(214, 175, 55, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  z-index: 1;
  position: relative;
  max-width: 900px;
  padding: 0 20px;
}

.hero-symbol-wrapper {
  margin-bottom: 25px;
  display: inline-block;
  position: relative;
}

.hero-symbol {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  border-radius: 50%;
  border: 2px solid var(--gold-medium);
  padding: 4px;
  box-shadow: var(--shadow-gold);
  animation: floatAnim 6s ease-in-out infinite;
  background: #ffffff;
  overflow: hidden;
}

.hero-symbol img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-text);
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-main);
  letter-spacing: 1px;
  margin-bottom: 25px;
}

.hero-title span {
  display: block;
  font-size: 2.2rem;
  font-weight: 300;
  font-style: italic;
  color: var(--gold-text);
  margin-top: 10px;
}

.hero-manifesto {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 750px;
  margin: 0 auto 40px auto;
  position: relative;
}

.hero-manifesto::before {
  content: '“';
  font-family: var(--font-title);
  font-size: 4rem;
  color: rgba(212, 175, 55, 0.2);
  position: absolute;
  top: -35px;
  left: -20px;
}

/* 7. Sección 1: Sesiones (Grid e Interactividad) */
.sesiones-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;
}

@media (max-width: 900px) {
  .sesiones-grid {
    grid-template-columns: 1fr;
  }
}

.card-title {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 15px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.card-title::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 1px solid var(--gold-medium);
  border-radius: 50%;
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 30px;
  flex-grow: 1;
}

/* Selector Interactivo en Sintonización Vibracional */
.interactive-sintonizacion {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.selector-tabs {
  display: flex;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  margin-bottom: 25px;
  gap: 15px;
}

.tab-btn {
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 5px;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.tab-btn.active {
  color: var(--gold-text);
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: var(--transition-smooth);
}

.tab-btn.active::after {
  width: 100%;
}

.tab-content-wrapper {
  position: relative;
  min-height: 120px;
  margin-bottom: 20px;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-pane.active {
  display: block;
}

.tab-pane h4 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: var(--gold-text);
  margin-bottom: 10px;
  font-weight: 600;
}

/* 8. Sección 2: Formaciones */
.formaciones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 50px;
}

@media (max-width: 1024px) {
  .formaciones-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .formaciones-grid {
    grid-template-columns: 1fr;
  }
}

.formacion-num {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 300;
  color: rgba(212, 175, 55, 0.15);
  margin-bottom: 15px;
  display: block;
  line-height: 1;
}

.card-premium:hover .formacion-num {
  color: var(--gold-medium);
  transition: var(--transition-smooth);
}

/* 9. Sección 3: Academia de Soberanía (Destacado) */
.academia-section {
  position: relative;
  background: var(--bg-secondary);
}

.academia-box {
  background: var(--bg-primary);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 4px;
  padding: 80px 60px;
  position: relative;
  box-shadow: var(--shadow-gold);
  overflow: hidden;
}

/* Marco Doble Fino de Oro */
.academia-box::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(212, 175, 55, 0.15);
  pointer-events: none;
  z-index: 0;
}

.academia-box::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  pointer-events: none;
  z-index: 0;
}

.academia-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .academia-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .academia-box {
    padding: 50px 30px;
  }
}

.academia-badge {
  display: inline-block;
  border: 1px solid var(--gold-medium);
  color: var(--gold-text);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  padding: 8px 16px;
  margin-bottom: 25px;
}

.academia-heading {
  font-family: var(--font-title);
  font-size: 2.8rem;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 25px;
}

.academia-heading span {
  font-weight: 300;
  font-style: italic;
  color: var(--gold-text);
  display: block;
}

.academia-body-text {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 30px;
}

.academia-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.feature-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.feature-icon {
  width: 24px;
  height: 24px;
  border: 1px solid var(--gold-medium);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--gold-text);
  flex-shrink: 0;
  margin-top: 3px;
}

.feature-desc h5 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.feature-desc p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-top: 2px;
}

.academia-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.circle-gold-aura {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px dashed var(--gold-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: rotateAnim 25s linear infinite;
}

.circle-gold-inner {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
}

.academia-main-icon {
  width: 170px;
  height: 170px;
  animation: floatAnim 5s ease-in-out infinite alternate;
  border-radius: 50%;
  border: 2px solid var(--gold-medium);
  padding: 4px;
  background: #ffffff;
  overflow: hidden;
}

.academia-main-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* 10. Sección 4: Rituales de Velomancia */
.rituales-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

@media (max-width: 900px) {
  .rituales-grid {
    grid-template-columns: 1fr;
  }
}

.ritual-card {
  text-align: center;
  padding: 50px 30px;
  background: var(--bg-primary);
  border: 1px solid rgba(212, 175, 55, 0.15);
  transition: var(--transition-smooth);
}

.ritual-card:hover {
  border-color: var(--gold-medium);
  box-shadow: var(--shadow-gold-hover);
  transform: scale(1.02);
}

.ritual-candle-icon {
  font-size: 2.2rem;
  color: var(--gold-text);
  margin-bottom: 20px;
  display: inline-block;
}

.ritual-name {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 15px;
}

.ritual-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
}

.ritual-cta-block {
  text-align: center;
  margin-top: 60px;
}

/* 11. Footer Elegante */
.footer-elegant {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding: 80px 20px 40px 20px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
}

.footer-logo {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 3px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-logo img {
  width: 45px;
  height: 45px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--gold-medium);
}

.footer-logo span {
  font-weight: 300;
  font-style: italic;
  color: var(--gold-text);
}

.footer-tagline {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--gold-text);
  max-width: 500px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-main);
}

.footer-contact a {
  color: var(--gold-text);
  font-weight: 500;
  letter-spacing: 1px;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-copyright {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  width: 100%;
  padding-top: 30px;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* 12. Floating WhatsApp Button */
.whatsapp-floating {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gold-gradient);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1.8rem;
  z-index: 999;
  transition: var(--transition-smooth);
}

.whatsapp-floating:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.5);
  color: #1A1A1A;
}

.whatsapp-floating::before {
  content: '';
  position: absolute;
  top: -4px; left: -4px; right: -4px; bottom: -4px;
  border-radius: 50%;
  border: 1px dashed var(--gold-medium);
  animation: rotateAnim 12s linear infinite;
  pointer-events: none;
}

/* 13. Animaciones */
@keyframes floatAnim {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

@keyframes rotateAnim {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Menú Móvil Desplegado */
.nav-menu.active {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  padding: 40px 20px;
  border-bottom: 1px solid var(--gold-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  animation: fadeIn 0.4s ease forwards;
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .whatsapp-floating {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}
