/* ==========================================================================
   SISTEMA DE DISEÑO LUXE — EL HUESERO (OBSIDIAN & ANCIENT GOLD)
   ========================================================================== */

:root {
  /* Paleta Primaria */
  --bg-dark: #07080a;
  --bg-surface: #0e1015;
  --bg-card: rgba(18, 21, 28, 0.75);
  --bg-card-hover: rgba(26, 31, 42, 0.9);
  
  /* Gradientes de Oro 24K y Plata */
  --gold-primary: #e6b738;
  --gold-bright: #ffd54f;
  --gold-deep: #b8860b;
  --gold-glow: rgba(230, 183, 56, 0.25);
  --gold-glow-intense: rgba(230, 183, 56, 0.45);
  
  --gold-gradient: linear-gradient(135deg, #ffe082 0%, #e6b738 50%, #9e7314 100%);
  --gold-gradient-text: linear-gradient(135deg, #fff2c6 0%, #e8bc42 50%, #aa771c 100%);
  --silver-gradient-text: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
  
  /* Textos */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #8b95a5;
  
  /* Bordes & Glassmorphism */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(230, 183, 56, 0.28);
  --border-gold-hover: rgba(230, 183, 56, 0.65);
  --glass-blur: blur(16px);
  
  /* Tipografía */
  --font-display: 'Cinzel', serif, Georgia;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Transiciones */
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.15s ease-out;
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
  background: 
    radial-gradient(circle at 50% 0%, rgba(230, 183, 56, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 10% 30%, rgba(184, 134, 11, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(230, 183, 56, 0.05) 0%, transparent 50%),
    var(--bg-dark);
}

/* Efecto de luz ambiental de fondo */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(230, 183, 56, 0.08) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* Contenedores */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Tipografía de Títulos */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  line-height: 1.2;
}

.gold-text {
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.silver-text {
  background: var(--silver-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   NAVBAR / TOP HEADER
   -------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 8, 10, 0.85);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 0;
  transition: var(--transition-smooth);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo img {
  height: 56px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(230, 183, 56, 0.25));
  transition: var(--transition-smooth);
}

.brand-logo:hover img {
  transform: scale(1.03);
  filter: drop-shadow(0 6px 16px rgba(230, 183, 56, 0.4));
}

.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(230, 183, 56, 0.08);
  border: 1px solid var(--border-gold);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-bright);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--gold-bright);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold-bright);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 14px var(--gold-bright); }
  100% { transform: scale(0.95); opacity: 0.7; }
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
  border: none;
}

.btn-gold {
  background: var(--gold-gradient);
  color: #0d0f12;
  box-shadow: 0 4px 20px var(--gold-glow);
  font-weight: 700;
  position: relative;
  overflow: hidden;
}

.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.5s;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--gold-glow-intense);
}

.btn-gold:hover::before {
  left: 100%;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-gold);
}

.btn-outline:hover {
  background: rgba(230, 183, 56, 0.1);
  border-color: var(--gold-bright);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(230, 183, 56, 0.1);
  border: 1px solid var(--border-gold);
  padding: 0.4rem 1.2rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-bright);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 780px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.metric-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition-smooth);
}

.metric-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.metric-card .number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-bright);
  display: block;
  margin-bottom: 0.35rem;
}

.metric-card .label {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   SECCIÓN SOBRE ELAM DÁVILA
   -------------------------------------------------------------------------- */
.section {
  padding: 5rem 0;
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image-card {
  position: relative;
  background: radial-gradient(circle at center, rgba(230, 183, 56, 0.15) 0%, rgba(14, 16, 21, 0.9) 70%);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px var(--gold-glow);
  width: 100%;
}

.about-image-card img {
  max-width: 320px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.8));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

.about-content .section-tag {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--gold-bright);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.about-content h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.quote-box {
  border-left: 3px solid var(--gold-primary);
  background: rgba(230, 183, 56, 0.05);
  padding: 1.25rem 1.5rem;
  border-radius: 0 10px 10px 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-primary);
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 1rem;
}

.feature-list li svg {
  color: var(--gold-bright);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   PILARES DE FORMACIÓN
   -------------------------------------------------------------------------- */
.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3.5rem;
}

.section-header .section-tag {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold-bright);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.pillar-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.2rem 1.8rem;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: var(--transition-smooth);
  border-radius: 16px 16px 0 0;
}

.pillar-card:hover {
  border-color: var(--border-gold-hover);
  background: var(--bg-card-hover);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px var(--gold-glow);
}

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

.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(230, 183, 56, 0.1);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.pillar-card:hover .pillar-icon {
  background: var(--gold-bright);
  color: #0d0f12;
  box-shadow: 0 0 16px var(--gold-glow-intense);
}

.pillar-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.pillar-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   FORMULARIO DE REGISTRO / LISTA DE ESPERA
   -------------------------------------------------------------------------- */
.form-section {
  padding: 5rem 0;
  position: relative;
}

.form-wrapper {
  max-width: 760px;
  margin: 0 auto;
  background: radial-gradient(circle at 50% 0%, rgba(230, 183, 56, 0.12) 0%, rgba(14, 16, 21, 0.95) 75%);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-gold);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px var(--gold-glow);
  position: relative;
}

.form-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.form-header .badge-exclusive {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(230, 183, 56, 0.15);
  border: 1px solid var(--border-gold);
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  color: var(--gold-bright);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.form-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.75rem;
}

.form-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-align: left;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group label span.required {
  color: var(--gold-bright);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  background: rgba(7, 8, 10, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  font-size: 0.98rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(230, 183, 56, 0.15), 0 0 15px var(--gold-glow);
  background: rgba(14, 16, 21, 0.95);
}

.form-control::placeholder {
  color: #555e6d;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e6b738' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.1em;
  padding-right: 2.5rem;
}

select.form-control option {
  background-color: #0e1015;
  color: var(--text-primary);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-footnote {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.btn-submit {
  width: 100%;
  padding: 1.1rem;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  margin-top: 1rem;
}

/* Spinner de carga */
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 0, 0, 0.2);
  border-top-color: #0d0f12;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

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

/* Estados del formulario */
.form-feedback {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.form-feedback.error {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.form-success-card {
  display: none;
  text-align: center;
  padding: 3rem 1.5rem;
}

.form-success-card.active {
  display: block;
}

.success-icon-wrap {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(230, 183, 56, 0.15);
  border: 2px solid var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 30px var(--gold-glow);
}

.form-success-card h3 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.form-success-card p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* --------------------------------------------------------------------------
   PREGUNTAS FRECUENTES (FAQ)
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item.active {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.4rem 1.6rem;
  font-family: var(--font-sans);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.faq-item:hover .faq-question {
  color: var(--gold-bright);
}

.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--gold-bright);
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: var(--gold-bright);
  color: #0d0f12;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.6rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 260px;
  padding-bottom: 1.4rem;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: #040507;
  padding: 3.5rem 0 2rem;
  margin-top: 5rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-brand img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.social-link:hover {
  background: rgba(230, 183, 56, 0.15);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 2rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN
   -------------------------------------------------------------------------- */
@media (max-width: 868px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }

  .nav-status {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 3.5rem 0 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .form-wrapper {
    padding: 2rem 1.25rem;
    border-radius: 18px;
  }
}
