/* ====================================================================
   core.css — el subconjunto de styles.css que sí pueden usar las páginas
   dinámicas (nav, pie, tipografía, botones y los bloques del editor).

   La landing sigue pidiendo styles.css completo; el Worker cambia el href
   a este archivo cuando sirve una página dinámica, que así descarga 41 KB
   en vez de 57 KB sin sumar una segunda petición bloqueante.
   Generado con audit/split-css-home.mjs.
   ==================================================================== */
/* =========================================================
   Straton Audio — Sistema de Diseño
   =========================================================
   Paleta:
     Fondo:       #0A0A0A
     Cards:       #121212
     Superficie:  #1A1A1A
     Bordes:      #2A2A2A
     Texto:       #FFFFFF
     Acento:      #1DB954 (verde vibrante)
     Premium:     #C9A96E (dorado, ~10% de superficies)
   Tipografía:   Inter (auto-hospedada) / system-ui
   ========================================================= */

/* ----- Fuentes del sistema (fallback sin archivos externos) ----- */

/* ----- Design Tokens ----- */
:root {
  --cart-bar-height: 70px;
  --color-bg: #0A0A0A;
  --color-bg-alt: #0F0F0F;
  --color-card: #121212;
  --color-surface: #1A1A1A;
  --color-surface-hover: #242424;
  --color-border: #2A2A2A;
  --color-border-light: #333;

  --color-text: #FFFFFF;
  --color-text-secondary: #A0A0A0;
  --color-text-muted: #666;

  --color-accent: #1DB954;
  --color-accent-hover: #22D95E;
  --color-accent-dim: rgba(29, 185, 84, 0.1);
  --color-accent-glow: rgba(29, 185, 84, 0.25);

  --color-gold: #C9A96E;
  --color-gold-dim: rgba(201, 169, 110, 0.1);
  --color-glow-gold: rgba(201, 169, 110, 0.2);

  --font-primary: system-ui, -apple-system, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  --leading-tight: 1.15;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
  --shadow-accent: 0 0 20px var(--color-accent-glow);

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  --max-width: 1200px;
  --nav-height: 72px;

}

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

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

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

body.has-cart-bar {
  padding-bottom: 90px;
}

img, video, svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

ul { list-style: none; }

/* ----- Utilidades ----- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

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

.section-alt {
  background-color: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-tag {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ----- Botones ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: #000;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-accent);
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-dim);
}

.btn-ghost {
  color: var(--color-text-secondary);
  padding: var(--space-2) var(--space-4);
}

.btn-ghost:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

/* ----- Navegación ----- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition-base);
}

.nav.scrolled {
  border-bottom-color: var(--color-border);
  background: rgba(10, 10, 10, 0.95);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  font-size: var(--text-xl);
  letter-spacing: -0.02em;
}

.nav-logo {
  max-height: 48px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-links a {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-links a:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.nav-links a.cta-nav {
  color: #000;
  background: var(--color-accent);
  font-weight: 600;
  margin-left: var(--space-2);
}

.nav-links a.cta-nav:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.65) 0%,
    rgba(10, 10, 10, 0.75) 30%,
    rgba(29, 185, 84, 0.08) 50%,
    rgba(10, 10, 10, 0.8) 70%,
    rgba(10, 10, 10, 0.95) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-title .highlight {
  color: var(--color-accent);
}

.hero-stat-value.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes glow-float-1 {
  0% { transform: translate(-10%, 0); opacity: 0.6; }
  100% { transform: translate(10%, -10%); opacity: 1; }
}

@keyframes glow-float-2 {
  0% { transform: translate(10%, 0); opacity: 0.5; }
  100% { transform: translate(-10%, 10%); opacity: 0.9; }
}

.package-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--transition-base);
  position: relative;
  display: flex;
  flex-direction: column;
}

.package-card:hover {
  border-color: var(--color-border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.package-card.featured {
  border-color: rgba(29, 185, 84, 0.3);
  background: linear-gradient(180deg, rgba(29, 185, 84, 0.05) 0%, var(--color-card) 100%);
}

.package-card.featured::before {
  content: 'MÁS SOLICITADO';
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  padding: var(--space-1) var(--space-3);
  background: var(--color-accent);
  color: #000;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 100px;
}

.package-name {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.package-description {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.package-price {
  font-size: var(--text-lg);
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--space-6);
}

.package-includes {
  flex: 1;
  margin-bottom: var(--space-8);
}

.package-includes li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.package-includes li::before {
  content: '\2714';
  color: var(--color-accent);
  font-weight: 700;
  flex-shrink: 0;
}

.package-card .btn {
  width: 100%;
}

.package-custom {
  background: linear-gradient(135deg, var(--color-card) 0%, rgba(201, 169, 110, 0.05) 100%);
  border-color: rgba(201, 169, 110, 0.2);
  text-align: center;
  align-items: center;
}

.package-custom-icon {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-4);
  color: var(--color-gold);
}

.package-custom .package-name {
  color: var(--color-gold);
}

.filter-btn.active {
  background: var(--color-accent);
  color: #000;
  border-color: var(--color-accent);
  font-weight: 600;
}

.event-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-light);
}

.event-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--color-surface);
}

.event-card-body {
  padding: var(--space-6);
}

.event-card-type {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--color-accent-dim);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 100px;
  margin-bottom: var(--space-3);
}

.event-card-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.testimonial-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: var(--space-4);
  left: var(--space-6);
  font-size: 4rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.2;
  font-family: serif;
}

.testimonial-quote {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  font-style: italic;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--color-accent);
  font-size: var(--text-lg);
}

.testimonial-name {
  font-weight: 600;
  font-size: var(--text-sm);
}

.testimonial-company {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.contact-form {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.form-success {
  text-align: center;
  padding: var(--space-8);
  color: var(--color-accent);
}

.form-success-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
}

.form-success h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.form-success p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

/* ----- Footer ----- */
.footer {
  position: relative;
  overflow: hidden;
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
  padding: var(--space-16) 0 var(--space-8);
}

/* Gradient Dots background effect */
.footer-gradient-dots {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--color-card);

  background-image:
    radial-gradient(circle at 50% 50%, transparent 1.5px, var(--color-card) 0 8px, transparent 8px),
    radial-gradient(circle at 50% 50%, transparent 1.5px, var(--color-card) 0 8px, transparent 8px),
    radial-gradient(circle at 50% 50%, #1DB954, transparent 60%),
    radial-gradient(circle at 50% 50%, #C9A96E, transparent 60%),
    radial-gradient(circle at 50% 50%, #1DB954, transparent 60%),
    radial-gradient(ellipse at 50% 50%, #0A0A0A, transparent 60%);

  background-size:
    10px 17.32px,
    10px 17.32px,
    200% 200%,
    200% 200%,
    200% 200%,
    200% 17.32px;

  background-position:
    0px 0px,
    5px 8.66px,
    0% 0%,
    0% 0%,
    0% 0%,
    0px 0px;

  animation: gradient-dots-bg 30s linear infinite;
  opacity: 0.15;
}

@keyframes gradient-dots-bg {
  0% {
    background-position:
      0px 0px,
      5px 8.66px,
      800% 400%,
      1000% -400%,
      -1200% -600%,
      400% 17.32px;
  }
  100% {
    background-position:
      0px 0px,
      5px 8.66px,
      0% 0%,
      0% 0%,
      0% 0%,
      0% 0%;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer-grid > * {
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-brand .nav-brand {
  justify-content: center;
}

.footer-brand .nav-logo {
  max-height: 64px;
}

.footer-brand p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin-top: var(--space-4);
  max-width: 300px;
}

.footer-heading {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-5);
}

.footer-links li {
  margin-bottom: var(--space-3);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-dim);
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
  flex-wrap: wrap;
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-6);
}

.footer-bottom-links a {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--color-text);
}




/* ----- Whatsapp Float ----- */
.whatsapp-float,
a.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: rgba(29, 185, 84, 0.58);
  box-shadow: 0 0 12px rgba(29, 185, 84, 0.7),
              0 0 24px rgba(29, 185, 84, 0.5),
              0 0 48px rgba(29, 185, 84, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: rgba(29, 185, 84, 0.68);
  box-shadow: 0 0 16px rgba(29, 185, 84, 0.9),
              0 0 32px rgba(29, 185, 84, 0.7),
              0 0 64px rgba(29, 185, 84, 0.5);
}
.whatsapp-float svg {
  display: block;
  opacity: 0.68;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
}

@media (max-width: 768px) {
  .whatsapp-float,
  a.whatsapp-float {
    width: 48px;
    height: 48px;
    bottom: 16px;
    right: 16px;
  }

}



/* ----- Animaciones ----- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- States ----- */
.loading-state,
.empty-state,
.error-state {
  text-align: center;
  padding: var(--space-12);
  color: var(--color-text-secondary);
}

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

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
  opacity: 0.3;
}

.empty-state h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.empty-state p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

}


@media (max-width: 768px) {
  .nav-logo {
    max-height: 40px;
  }

  .footer-brand .nav-logo {
    max-height: 48px;
  }

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

  .section-title {
    font-size: var(--text-3xl);
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: var(--space-4);
    gap: var(--space-1);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: var(--space-3) var(--space-4);
  }

  .nav-links a.cta-nav {
    margin-left: 0;
    margin-top: var(--space-2);
  }

  .nav-toggle {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

}


@media (max-width: 480px) {

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

  .container {
    padding: 0 var(--space-4);
  }

}

.cart-bar.hidden {
  transform: translateY(100%);
}
.cart-bar-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(201, 169, 110, 0.1);
  border: 1px solid rgba(201, 169, 110, 0.25);
  color: var(--color-gold);
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.75rem;
  white-space: nowrap;
  pointer-events: auto;
}
.cart-bar-tag button {
  background: none;
  border: none;
  color: var(--color-gold);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
  line-height: 1;
  margin-left: 2px;
  opacity: 0.7;
  pointer-events: auto;
}
.cart-bar-tag button:hover {
  opacity: 1;
  color: var(--color-danger);
}

#contacto .container {
  position: relative;
  z-index: 2;
}

/* Capa de brillo bioluminiscente */
.bio-card-glow {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  opacity: 0;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    var(--color-accent-glow),
    transparent 60%
  );
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.bio-grid:hover .bio-card-glow {
  opacity: 1;
}

.bio-card.active {
  border-color: var(--color-accent);
  box-shadow: 0 0 32px var(--color-accent-glow);
}

/* Contenido de la tarjeta (por encima del glow) */
.bio-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

/* Icono */
.service-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.service-card-svg {
  color: var(--color-accent);
}

.service-card-emoji {
  font-size: 22px;
  line-height: 1;
}

/* Título y descripción */
.service-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.service-card-desc {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0;
}

.service-card-expand-hint {
  font-size: 0.75rem;
  color: var(--color-accent);
  opacity: 0.6;
  transition: opacity 0.3s ease;
  margin-top: auto;
}

/* =============================================
   PANEL DE DETALLE EXPANDIDO (inline)
   ============================================= */

/* Card expandida: ocupa todo el ancho del grid */
.bio-card.expanded {
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem;
  cursor: default;
  border-color: var(--color-accent);
  box-shadow: 0 0 32px var(--color-accent-glow);
  min-height: 380px;
}

.bio-card.expanded .bio-card-glow {
  opacity: 1;
}

.bio-card.expanded .bio-card-content {
  display: contents;
}

/* Columna izquierda: media */
.bio-card-expanded-media {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  max-height: 400px;
  background: var(--color-surface);
}

.bio-card-expanded-media img,
.bio-card-expanded-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Columna derecha: info */
.bio-card-expanded-info {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bio-card-expanded-info .detail-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.bio-card-expanded-info .detail-description {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.bio-card-expanded-info .detail-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.bio-card-expanded-info .feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-text);
}

.bio-card-expanded-info .cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
  transition: all 0.3s ease;
  margin-top: auto;
}

.bio-card-expanded-info .cta-button:hover {
  background: var(--color-accent);
  color: var(--color-bg);
  transform: translateX(6px);
  box-shadow: 0 8px 24px var(--color-accent-glow);
}

/* Botón cerrar en la card expandida */
.bio-card-expanded-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 5;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.bio-card-expanded-close:hover {
  background: var(--color-accent-dim);
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* Miniaturas: cards no expandidas cuando hay una expandida */
.bio-grid.has-expanded .bio-card:not(.expanded) {
  padding: 0.75rem;
  gap: 0.35rem;
  flex-direction: row;
  align-items: center;
  border-radius: 10px;
}

.bio-grid.has-expanded .bio-card:not(.expanded) .service-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  margin: 0;
  flex-shrink: 0;
}

.bio-grid.has-expanded .bio-card:not(.expanded) .service-card-svg {
  width: 18px;
  height: 18px;
}

.bio-grid.has-expanded .bio-card:not(.expanded) .service-card-emoji {
  font-size: 14px;
}

.bio-grid.has-expanded .bio-card:not(.expanded) .service-card-title {
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bio-grid.has-expanded .bio-card:not(.expanded) .service-card-desc {
  display: none;
}

.bio-grid.has-expanded .bio-card:not(.expanded) .bio-card-content {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {

  .bio-card.expanded {
    grid-template-columns: 1fr;
    padding: 1.25rem;
    gap: 1rem;
    min-height: auto;
  }

  .bio-card-expanded-media {
    grid-column: 1;
    grid-row: 1;
    max-height: 35vh;
  }

  .bio-card-expanded-info {
    grid-column: 1;
    grid-row: 2;
  }

  .bio-card-expanded-info .detail-features {
    grid-template-columns: 1fr;
  }

  .bio-grid.has-expanded {
    grid-template-columns: 1fr;
  }

  .bio-grid.has-expanded .bio-card:not(.expanded) {
    flex-direction: row;
    padding: 0.6rem 0.75rem;
    gap: 0.5rem;
    border-radius: 8px;
  }

}


/* --- Keyframes: 4 ondas distintas para variedad orgánica --- */

@keyframes eq-wave-a {
  0%, 100% { transform: scaleY(0.12); }
  30%       { transform: scaleY(0.55); }
  50%       { transform: scaleY(0.25); }
  75%       { transform: scaleY(0.7); }
}

@keyframes eq-wave-b {
  0%, 100% { transform: scaleY(0.3); }
  25%       { transform: scaleY(0.65); }
  55%       { transform: scaleY(0.15); }
  80%       { transform: scaleY(0.5); }
}

@keyframes eq-wave-c {
  0%, 100% { transform: scaleY(0.2); }
  20%       { transform: scaleY(0.45); }
  45%       { transform: scaleY(0.8); }
  70%       { transform: scaleY(0.3); }
}

@keyframes eq-wave-d {
  0%, 100% { transform: scaleY(0.08);  }
  35%       { transform: scaleY(0.4); }
  60%       { transform: scaleY(0.6); }
  85%       { transform: scaleY(0.18); }
}

/* =============================================
   Efecto lumínico automático en móviles
   ============================================= */

@keyframes mobileGlow {
  0%   { background-position: -100% 0; }
  60%  { background-position: 200% 0; }
  100% { background-position: 200% 0; }
}

@media (max-width: 768px) {
  .bio-card:not(.expanded)::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(90deg, transparent 0%, var(--color-accent-glow) 50%, transparent 100%);
    background-size: 50% 100%;
    background-repeat: no-repeat;
    animation: mobileGlow 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
  }

}


/* ====== Scroll anchor offset (compensa navbar fija) ====== */
section[id] {
  scroll-margin-top: var(--nav-height, 72px);
}

/* ========================================================================
   Dynamic Block: Hero — Efecto sticky parallax solo para la foto de fondo
   Referencia: https://pantallasledbogota.com/ — nav y hero BG se tocan (gap 0),
   texto centrado verticalmente, animación fade-in-up.
   ======================================================================== */
.dynamic-block.block-hero {
  /* Rompe el max-width: 960px y margin-top: 120px del contenedor padre
     .dynamic-page para que el hero ocupe todo el ancho y empiece justo
     debajo del navbar. */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-top: calc(-120px + var(--nav-height));
  position: relative;
  min-height: 100vh;
  /* Grid stacking: bg, overlay y contenido se apilan en la misma celda */
  display: grid;
  grid-template: "hero" 1fr / 1fr;
  overflow: visible;
}

/* Todos los hijos directos comparten la misma celda del grid */
.dynamic-block.block-hero > * {
  grid-area: hero;
}

/* Capa de fondo con position:sticky — se queda fija mientras el contenido
   scrollea. La imagen ocupa todo el viewport, arranca justo debajo de la
   navbar y cubre el ancho completo sin deformarse (cover). */
.hero-bg-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #0a0f0a;
  z-index: 0;
}

/* Imagen del hero: <picture> con variante móvil. object-fit:cover reproduce
   exactamente el encuadre del background-size:cover anterior, y el
   <source media="(max-width: 768px)"> evita que un teléfono descargue la
   imagen horizontal. El color de fondo de .hero-bg-sticky sigue actuando como
   respaldo mientras la imagen carga. */
.hero-bg-sticky > picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-bg-sticky img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Overlay semitransparente con degradado a negro para disolver la imagen
   de fondo gradualmente cuando el usuario scrollea hacia el siguiente bloque. */
.dynamic-block.block-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.55) 0%,
    rgba(10, 10, 10, 0.65) 30%,
    rgba(29, 185, 84, 0.06) 50%,
    rgba(10, 10, 10, 0.80) 70%,
    rgba(10, 10, 10, 0.95) 85%,
    #0a0a0a 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Contenido textual — centrado verticalmente, con animación fade-in-up.
   El padding-top usa var(--nav-height) para compensar el navbar fijo. */
.dynamic-block.block-hero .hero-content {
  position: relative;
  z-index: 2;
  place-self: center;
  text-align: center;
  max-width: 800px;
  width: 100%;
  padding: calc(var(--nav-height) + 40px) var(--space-6) 40px;
  /* Animación: aparece de abajo hacia arriba */
  opacity: 0;
  transform: translateY(50px);
  animation: heroFadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

@keyframes heroFadeInUp {
  0%   { opacity: 0; transform: translateY(50px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Esta es la regla que manda en el hero de las páginas dinámicas (tiene más
   especificidad que la de index.html). Los colores de título y texto elegidos
   en el panel llegan como variables puestas en el bloque; el color de diseño
   queda de respaldo, así que sin elección el hero se ve igual que antes. */
.dynamic-block.block-hero .hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
  color: var(--block-title-color, #fff);
}

.dynamic-block.block-hero .hero-content p {
  font-size: var(--text-xl);
  color: var(--block-text-color, var(--color-text-secondary));
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Video de fondo (cuando bg_type = video) — comportamiento absolute clásico */
.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Botón del hero dinámico */
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  background: var(--color-accent);
  color: #fff;
  border-radius: 100px;
  font-weight: 600;
  font-size: var(--text-base);
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-hero:hover {
  background: #1ed760;
  transform: translateY(-1px);
}

/* ========================================================================
   Mobile: fallback sin sticky ni full-width
   position: sticky en background es buggy en iOS Safari.
   En móvil la imagen hace scroll junto con el contenido.
   ======================================================================== */
@media (max-width: 768px) {
  .dynamic-block.block-hero {
    width: 100%;
    margin-left: 0;
    margin-top: calc(-100px + var(--nav-height));
    min-height: 100vh;
  }

  .hero-bg-sticky {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

}


/* ========================================================================
   Dynamic Block: FAQ — Preguntas Frecuentes con despliegue animado
   ======================================================================== */

/* Contenedor de la sección */
.dynamic-block.block-faq {
  padding: var(--space-16) 0;
  position: relative;
}

.dynamic-block.block-faq .faq-section-title {
  text-align: center;
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: var(--space-12);
  /* Color del título elegido en el panel; el texto por defecto es el respaldo */
  color: var(--block-title-color, var(--color-text));
}

/* Contenedor de burbujas */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

/* =============================================
   Burbuja individual
   ============================================= */

.faq-bubble {
  position: relative;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.35rem 1.5rem;
  cursor: default;
  transition: border-color 0.35s ease,
              box-shadow 0.35s ease,
              transform 0.3s ease,
              background 0.35s ease;
  overflow: hidden;
  z-index: 1;
}

/* --- Efecto de barrido lumínico derecha→izquierda (::after) --- */
.faq-bubble::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  border-radius: 16px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(29, 185, 84, 0.03) 30%,
    rgba(29, 185, 84, 0.10) 50%,
    rgba(29, 185, 84, 0.03) 70%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  transform: translateX(180%);
}

.faq-bubble:hover::after,
.faq-bubble.expanded::after {
  opacity: 1;
  animation: faqSweepRL 3.2s ease-in-out infinite;
}

@keyframes faqSweepRL {
  0%   { transform: translateX(180%); }
  100% { transform: translateX(-120%); }
}

/* --- Capa de brillo interior (mouse tracking, como Servicios) --- */
.faq-bubble-glow {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  opacity: 0;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    var(--color-accent-glow),
    transparent 55%
  );
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.faq-container:hover .faq-bubble-glow {
  opacity: 1;
}

/* --- Estados hover / expanded --- */
.faq-bubble:hover {
  border-color: var(--color-border-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.faq-bubble.expanded {
  border-color: rgba(29, 185, 84, 0.35);
  box-shadow: 0 0 28px var(--color-accent-glow),
              0 4px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(
    180deg,
    rgba(29, 185, 84, 0.03) 0%,
    var(--color-card) 100%
  );
}

/* =============================================
   Fila de pregunta + botón toggle
   ============================================= */

.faq-question-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.faq-question-text {
  flex: 1;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.45;
  min-width: 0;
}

/* Indicador numérico sutil */
.faq-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-accent-dim);
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: background 0.3s ease, color 0.3s ease;
}

.faq-bubble.expanded .faq-number {
  background: var(--color-accent);
  color: #000;
}

/* =============================================
   Botón toggle (+ / −)
   ============================================= */

.faq-toggle-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: transparent;
  color: var(--color-accent);
  font-size: 1.25rem;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
  line-height: 1;
  padding: 0;
  position: relative;
  z-index: 3;
}

.faq-toggle-btn:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-dim);
  box-shadow: 0 0 12px var(--color-accent-glow);
  transform: scale(1.08);
}

.faq-toggle-btn:active {
  transform: scale(0.94);
}

/* Cuando está expandido: rota el "+" a "−" */
.faq-bubble.expanded .faq-toggle-btn {
  transform: rotate(45deg);
  border-color: var(--color-accent);
  background: var(--color-accent-dim);
}

.faq-bubble.expanded .faq-toggle-btn:hover {
  transform: rotate(45deg) scale(1.08);
}

/* =============================================
   Respuesta (colapsada por defecto)
   ============================================= */

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease 0.1s,
              margin-top 0.4s ease;
  position: relative;
  z-index: 1;
}

.faq-bubble.expanded .faq-answer {
  max-height: 600px; /* suficiente para respuestas largas */
  opacity: 1;
  margin-top: 1rem;
}

.faq-answer-text {
  font-size: clamp(0.875rem, 1.5vw, 0.95rem);
  color: var(--color-text-secondary);
  line-height: 1.65;
  padding-left: calc(28px + 0.75rem); /* alinear con el texto de la pregunta (número + gap) */
}

/* Línea divisoria sutil entre pregunta y respuesta */
.faq-bubble.expanded .faq-question-row {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* =============================================
   Animación de entrada stagger al cargar
   ============================================= */

.faq-bubble.faq-animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.faq-bubble.faq-animate-in.faq-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   Auto-expand indicator (sutil pulso en el "+")
   ============================================= */

@keyframes faqHintPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(29, 185, 84, 0.4); }
  50%      { box-shadow: 0 0 0 8px rgba(29, 185, 84, 0); }
}

.faq-bubble:not(.expanded):not(.was-auto-expanded) .faq-toggle-btn {
  animation: faqHintPulse 2.5s ease-in-out infinite;
}

/* Dejar de pulsar cuando ya fue expandida alguna vez */
.faq-bubble.was-auto-expanded .faq-toggle-btn {
  animation: none;
}

/* =============================================
   Glow en móvil: barrido automático (sin mouse)
   ============================================= */

@media (max-width: 768px) {
  /* En móvil, el barrido lumínico se activa automáticamente */
  .faq-bubble::after {
    animation: faqSweepRL 5s ease-in-out infinite;
    opacity: 0.5;
  }

  .faq-bubble:hover::after,
  .faq-bubble.expanded::after {
    opacity: 0.85;
  }

  .faq-bubble-glow {
    opacity: 0.15;
    background: radial-gradient(
      circle at 50% 50%,
      var(--color-accent-glow),
      transparent 50%
    );
    animation: faqGlowPulse 4s ease-in-out infinite alternate;
  }

  @keyframes faqGlowPulse {
    0%   { opacity: 0.08; }
    100% { opacity: 0.22; }
  }

  .faq-container {
    gap: var(--space-3);
  }

  .faq-bubble {
    padding: 1.1rem 1.2rem;
  }

  .faq-question-text {
    font-size: 0.9rem;
  }

  .faq-answer-text {
    font-size: 0.825rem;
    padding-left: 0;
  }

  .faq-toggle-btn {
    width: 30px;
    height: 30px;
    font-size: 1.1rem;
  }

}



/* ====== Animaciones decorativas fuera de pantalla ======
   app.js marca con .anim-idle las secciones que no están a la vista: sus
   animaciones infinitas se detienen y el navegador deja de recalcular estilo y
   repintar. Al volver a entrar en pantalla se reanudan solas. */
.anim-idle,
.anim-idle *,
.anim-idle *::before,
.anim-idle *::after {
  animation-play-state: paused !important;
}
