/* ==========================================================================
   VARIABLES Y BASE
   ========================================================================== */
:root {
  --primary-color: #0b2545;
  --secondary-color: #134074;
  --accent-yellow: #e0a96d;
  --accent-gold: #f4a261;
  --bg-light: #f8f9fa;
  --text-dark: #1d2d44;
  --text-muted: #6c757d;
  --white: #ffffff;
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 25px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 800;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================================================
   ANIMACIONES SCROLL (PREPARACIÓN)
   ========================================================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  padding: 5px 0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-weight: 600;
  color: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--accent-gold);
}

/* BOTONES */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--white);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.05rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding: 80px 20px;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-light) 100%);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-img-wrapper {
  position: relative;
  text-align: center;
}

.hero-main-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.floating-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--white);
  padding: 10px 20px;
  border-radius: 50px;
  box-shadow: var(--shadow-md);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-color);
}

.hero-text h1 {
  font-size: 3rem;
  margin: 15px 0;
  color: var(--primary-color);
}

.text-gradient-yellow {
  color: var(--accent-gold);
}

.badge-open {
  background: rgba(244, 162, 97, 0.15);
  color: #d97706;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 25px;
}

.hero-contact-card {
  background: var(--white);
  padding: 15px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  border-left: 4px solid var(--accent-gold);
}

.contact-icon {
  font-size: 1.5rem;
}

.contact-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
}

.contact-numbers a {
  font-weight: 700;
  color: var(--primary-color);
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

/* ==========================================================================
   SECCIONES Y TARJETAS
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px auto;
}

.section-tag {
  color: var(--accent-gold);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.section-header h2 {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin: 8px 0;
}

.steps-section, .gallery-section, .faq-section {
  padding: 90px 20px;
}

.steps-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.step-card {
  background: var(--white);
  padding: 35px 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-top: 4px solid transparent;
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--accent-gold);
}

.step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.step-num {
  font-size: 2rem;
  font-weight: 900;
  color: rgba(11, 37, 69, 0.15);
}

.step-icon {
  font-size: 2rem;
}

.price-highlight {
  color: var(--accent-gold);
}

/* GALERÍA */
.gallery-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card-content {
  padding: 30px;
  text-align: center;
}

.gallery-card-content.highlight {
  background: var(--primary-color);
  color: var(--white);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* VIDEO */
.video-section {
  background: var(--primary-color);
  padding: 90px 20px;
  color: var(--white);
}

.section-header.white h2 { color: var(--white); }
.section-header.white p { color: rgba(255,255,255,0.7); }

.video-wrapper {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   ACORDEÓN FAQ (FLUIDO)
   ========================================================================== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

.faq-header {
  padding: 20px 25px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-toggle-icon {
  font-size: 1.4rem;
  font-weight: 700;
  transition: transform 0.3s ease;
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
  background: #fafafa;
}

.faq-content {
  padding: 20px 25px;
  border-top: 1px solid rgba(0,0,0,0.05);
  color: var(--text-muted);
}

.faq-item.active {
  border-left: 4px solid var(--accent-gold);
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
}

/* SCHEDULE GRID */
.schedule-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.schedule-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed #e2e8f0;
}

/* ==========================================================================
   MODAL & WHATSAPP
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--white);
  width: 90%;
  max-width: 650px;
  border-radius: var(--radius-lg);
  position: relative;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: rgba(0,0,0,0.1);
  border: none;
  font-size: 1.8rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.modal-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}

.modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-text {
  padding: 35px 25px;
}

.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* FOOTER */
.footer {
  background: var(--primary-color);
  color: var(--white);
  padding: 60px 20px 30px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.logo-footer {
  height: 45px;
  margin-bottom: 15px;
}

.copyright {
  display: block;
  margin-top: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-container { grid-template-columns: 1fr; }
  .modal-content { grid-template-columns: 1fr; }
  .modal-img { display: none; }
  .footer-container { grid-template-columns: 1fr; }
}

/* ==========================================================================
   VARIABLES Y BASE ULTRATREND
   ========================================================================== */
:root {
  --primary-color: #0b2545;
  --secondary-color: #134074;
  --accent-gold: #f4a261;
  --accent-yellow: #e0a96d;
  --bg-light: #f4f7fb;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --shadow-glow: 0 0 30px rgba(244, 162, 97, 0.25);
  --shadow-lg: 0 20px 40px -15px rgba(11, 37, 69, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Scroll Bar Superior */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-yellow), var(--accent-gold));
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* Glassmorphism Reutilizable */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(244, 162, 97, 0.6);
  box-shadow: var(--shadow-glow), var(--shadow-lg);
}

/* ==========================================================================
   ANIMACIONES Y MESH GRADIENT
   ========================================================================== */
.hero-mesh {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 10% 20%, rgba(244, 162, 97, 0.1) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(19, 64, 116, 0.08) 0%, transparent 40%);
}

.hero-bg-orbs .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  animation: floatOrb 10s infinite alternate ease-in-out;
}

.orb-1 { width: 300px; height: 300px; background: rgba(244, 162, 97, 0.2); top: -50px; left: -50px; }
.orb-2 { width: 400px; height: 400px; background: rgba(19, 64, 116, 0.15); bottom: -100px; right: -50px; }

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 40px) scale(1.1); }
}

/* Animaciones de Scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Pulse Glow */
.pulse-badge {
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(244, 162, 97, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(244, 162, 97, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 162, 97, 0); }
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo { height: 50px; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* BOTONES RIPPLE */
.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 20px -5px rgba(11, 37, 69, 0.3);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px -5px rgba(11, 37, 69, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* ==========================================================================
   HERO & STATS
   ========================================================================== */
.hero { padding: 80px 20px; position: relative; z-index: 1; }
.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-main-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.text-gradient-gold {
  background: linear-gradient(135deg, #d97706, #f4a261);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* STATS SECTION */
.stats-section {
  background: var(--primary-color);
  color: var(--white);
  padding: 60px 20px;
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-card h3 {
  font-size: 3rem;
  display: inline-block;
  color: var(--accent-gold);
}

.stat-symbol {
  font-size: 2.5rem;
  color: var(--accent-gold);
  font-weight: 800;
}

/* ==========================================================================
   PASOS / ACORDEÓN
   ========================================================================== */
.steps-section, .gallery-section, .faq-section { padding: 100px 20px; }

.steps-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.step-card { padding: 40px 30px; }
.step-num { font-size: 2.5rem; font-weight: 900; color: var(--accent-gold); opacity: 0.3; }

/* ACORDEÓN ANIMADO EN CSS */
.faq-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }

.faq-header {
  padding: 22px 28px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-toggle-icon {
  width: 20px;
  height: 20px;
  position: relative;
}

.faq-toggle-icon span {
  position: absolute;
  background: var(--primary-color);
  border-radius: 2px;
  transition: var(--transition);
}

.faq-toggle-icon span:nth-child(1) { width: 100%; height: 2px; top: 9px; left: 0; }
.faq-toggle-icon span:nth-child(2) { width: 2px; height: 100%; top: 0; left: 9px; }

.faq-item.active .faq-toggle-icon span:nth-child(2) { transform: rotate(90deg); opacity: 0; }
.faq-item.active .faq-toggle-icon span:nth-child(1) { transform: rotate(180deg); }

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
}

.faq-content { padding: 0 28px 25px 28px; color: var(--text-muted); }

/* WHATSAPP & FOOTER */
.whatsapp-float {
  position: fixed;
  bottom: 30px; right: 30px;
  background: #25d366;
  color: white;
  width: 65px; height: 65px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
}

.pulse-whatsapp {
  animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.footer { background: var(--primary-color); color: var(--white); padding: 80px 20px 40px; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }

@media (max-width: 768px) {
  .hero-container { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; }
}