/* =========================================================
   1. VARIABLES
   ========================================================= */
:root {
  --color-bg: #12102a;
  --color-bg-alt: #1a1740;
  --color-card-bg: #211c4a;
  --color-text: #f5f5fa;
  --color-text-muted: #b8b4d8;

  --color-accent-orange: #ff5a36;
  --color-accent-orange-hover: #ff7a54;
  --color-accent-cyan: #35d0e0;
  --color-accent-magenta: #e04fd8;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-glow-orange: 0 0 24px rgba(255, 90, 54, 0.4);

  --font-heading: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --container-width: 1200px;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 64px;
  --space-xl: 96px;

  --header-height: 84px;
}

/* =========================================================
   2. RESET
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-heading); margin: 0; }

:focus-visible {
  outline: 3px solid var(--color-accent-cyan);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--color-accent-orange);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 200;
}
.skip-link:focus {
  left: var(--space-sm);
  top: var(--space-sm);
}

/* =========================================================
   3. LAYOUT / UTILITIES
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

section { padding: var(--space-xl) 0; }

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
  margin-bottom: var(--space-md);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-solid, .btn-cta {
  background: var(--color-accent-orange);
  color: #fff;
}
.btn-solid:hover, .btn-cta:hover {
  background: var(--color-accent-orange-hover);
  box-shadow: var(--shadow-glow-orange);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  border-color: rgba(245, 245, 250, 0.5);
  color: var(--color-text);
}
.btn-outline:hover {
  border-color: #fff;
  background: rgba(245, 245, 250, 0.08);
  transform: translateY(-2px);
}
.btn-card { width: 100%; justify-content: center; }
.btn-orange { background: var(--color-accent-orange); color: #fff; }
.btn-orange:hover { background: var(--color-accent-orange-hover); }
.btn-cyan { background: var(--color-accent-cyan); color: #0b1230; }
.btn-cyan:hover { box-shadow: 0 0 20px rgba(53, 208, 224, 0.5); transform: translateY(-2px); }
.btn-magenta { background: var(--color-accent-magenta); color: #fff; }
.btn-magenta:hover { box-shadow: 0 0 20px rgba(224, 79, 216, 0.5); transform: translateY(-2px); }

/* =========================================================
   4. HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 16, 42, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}
.site-header.scrolled {
  background: rgba(18, 16, 42, 0.98);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--space-sm);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-mark {
  height: 52px;
  width: auto;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-line-1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.logo-line-2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--color-accent-cyan);
}

.main-nav ul {
  display: flex;
  gap: var(--space-md);
}
.main-nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--color-text); }

.header-cta { flex-shrink: 0; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   5. HERO
   ========================================================= */
.hero {
  padding-top: var(--space-xl);
  background: radial-gradient(ellipse at top right, var(--color-bg-alt), var(--color-bg) 60%);
}
.hero-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.hero-sub {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-top: var(--space-sm);
  max-width: 42ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}
.hero-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card), 0 0 40px rgba(224, 79, 216, 0.15);
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

section#inicio, section.experiencias, section.stats, section.precios-horarios {
  scroll-margin-top: var(--header-height);
}

/* =========================================================
   6. EXPERIENCIAS / CARDS
   ========================================================= */
.experiencias { background: var(--color-bg); }
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
.card {
  background: var(--color-card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.card-body {
  padding: var(--space-sm) var(--space-sm) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.card-body h3 {
  font-size: 1.3rem;
  text-transform: uppercase;
}
.card-body p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  flex: 1;
}

/* =========================================================
   7. STATS
   ========================================================= */
.stats { background: var(--color-bg-alt); }
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  text-align: center;
}
.stat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.stat-icon { font-size: 2rem; }
.stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
}
.stat-label {
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.progress-bar {
  width: 100%;
  max-width: 220px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 10px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-accent-orange), var(--color-accent-magenta));
  transition: width 1.2s ease-out;
}

/* =========================================================
   8. PRECIOS & HORARIOS
   ========================================================= */
.precios-horarios { background: var(--color-bg); }
.precios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
.horarios-card, .precios-card {
  background: var(--color-card-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
}
.horarios-card h3, .precios-card h3 {
  text-transform: uppercase;
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
}
.horarios-list div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.horarios-list dt { color: var(--color-text-muted); }
.horarios-list dd { margin: 0; font-weight: 600; }
.horarios-note {
  margin-top: var(--space-sm);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.precios-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.precio-nombre { color: var(--color-text-muted); }
.price-placeholder {
  font-weight: 700;
  color: var(--color-accent-orange);
  border-bottom: 2px dashed var(--color-accent-orange);
  padding-bottom: 2px;
}
.precios-disclaimer {
  margin-top: var(--space-sm);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* =========================================================
   9. FOOTER
   ========================================================= */
.site-footer {
  background: var(--color-bg-alt);
  padding: var(--space-lg) 0 var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  text-align: center;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}
.footer-info p { margin: 6px 0; color: var(--color-text-muted); }
.footer-info a:hover { color: var(--color-text); }
.footer-social {
  display: flex;
  gap: var(--space-sm);
}
.footer-social a {
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.footer-social a:hover {
  border-color: var(--color-accent-cyan);
  color: var(--color-accent-cyan);
}
.footer-copy {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  margin: var(--space-md) 0 0;
}

/* =========================================================
   10. WHATSAPP FLOATING BUTTON
   ========================================================= */
#whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  z-index: 150;
  transition: transform 0.2s ease;
}
#whatsapp-float:hover { transform: scale(1.08); }
.wa-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff3b30;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-bg);
}

/* =========================================================
   11. MEDIA QUERIES
   ========================================================= */
@media (max-width: 899px) {
  .main-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg-alt);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .main-nav.is-open { max-height: 320px; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: var(--space-sm);
  }
  .main-nav li { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .main-nav a { display: block; padding: 14px 4px; }
  .header-cta { display: none; }
  .hamburger { display: flex; }
}

@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .hero-inner { flex-direction: row; align-items: center; }
  .hero-copy { flex: 1; }
  .hero-media { flex: 1; }
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .precios-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
  .footer-info { text-align: left; }
}

@media (min-width: 1200px) {
  .hero h1 { max-width: 18ch; }
}
