/*
  DreamEvent Design System — Componentes
  =======================================
  1) Componentes DS nuevos (hero, cta, feature grid, faq, breadcrumbs,
     internal links, cards de tipo de evento, pricing).
  2) Capa de compatibilidad: clases .de-* heredadas que usan las
     páginas actuales. Los colores los aplica dreamevent-theme.css.

  Regla: los componentes se instancian desde
  views/marketing/components/*.pug (mixins), no copiando HTML.
*/

/* ═══ 1. HERO DS ═════════════════════════════════════════════════ */
.de-hero {
  padding: 7.5rem 0 var(--space-lg);
}

.de-hero-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.85rem;
  margin-bottom: var(--space-sm);
}

.de-hero-title {
  margin-bottom: var(--space-sm);
}

.de-hero-subtitle {
  max-width: 720px;
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--color-muted);
}

.de-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-md);
}

/* ═══ 2. CTA SECTION ═════════════════════════════════════════════ */
.de-cta-section {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.de-cta-section-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-md);
}

/* ═══ 3. FEATURE GRID ════════════════════════════════════════════ */
.de-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-sm);
}

.de-feature-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.25rem;
  height: 100%;
}

.de-feature-item-icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 0.5rem;
}

.de-feature-item-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
}

.de-feature-item-text {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 0;
}

/* ═══ 4. CARDS ═══════════════════════════════════════════════════ */
.de-card-link {
  display: block;
  height: 100%;
  text-decoration: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.de-card-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
  text-decoration: none;
}

.de-card-link-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.6rem;
}

.de-card-link-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.12rem;
  margin-bottom: 0.35rem;
}

.de-card-link-text {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.de-card-link-cta {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* ═══ 5. FAQ ═════════════════════════════════════════════════════ */
.de-faq .card {
  border-radius: var(--radius-md);
  margin-bottom: 0.7rem;
}

.de-faq .card-header {
  padding: 0;
}

.de-faq .btn-link {
  display: block;
  width: 100%;
  text-align: left;
  font-weight: 700;
  padding: 0.9rem 1.1rem;
  text-decoration: none;
}

.de-faq .btn-link:hover {
  text-decoration: none;
}

.de-faq .card-body {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-muted);
}

/* ═══ 6. BREADCRUMBS ═════════════════════════════════════════════ */
.de-breadcrumbs {
  padding-top: 6.5rem;
  padding-bottom: 0;
}

.de-breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
}

.de-breadcrumbs-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.de-breadcrumbs-list li + li::before {
  content: '›';
  color: var(--color-muted);
}

.de-breadcrumbs-list a {
  color: var(--color-primary);
  text-decoration: none;
}

.de-breadcrumbs-list a:hover {
  text-decoration: underline;
}

.de-breadcrumbs-list [aria-current='page'] {
  color: var(--color-muted);
  font-weight: 600;
}

/* Cuando el breadcrumb va seguido de hero, compactar */
.de-breadcrumbs + .de-hero {
  padding-top: var(--space-md);
}

/* ═══ 7. INTERNAL LINKS ("También te puede interesar") ═══════════ */
.de-internal-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.de-internal-links-list a {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-primary);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.de-internal-links-list a:hover {
  background: var(--color-primary-soft);
  text-decoration: none;
}

/* ═══ 8. STEPS ("Cómo funciona" en 3-4 pasos) ════════════════════ */
.de-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-sm);
  counter-reset: de-step;
}

.de-step {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.5rem 1.25rem 1.25rem;
}

.de-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.de-step-title {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.de-step-text {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 0;
}

/* ═══ 9. FLOATING AUDIO PLAYER (extraído del layout inline) ══════ */
.floating-audio-player {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 12000;
  width: min(92vw, 360px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(31, 35, 42, 0.14);
  padding: 10px;
  transition: all 0.25s ease;
}

.floating-audio-player.is-collapsed {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-audio-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.floating-audio-title {
  color: var(--color-primary);
  font-weight: 800;
  font-size: 0.92rem;
}

#floatingAudioElement {
  width: 100%;
}

.floating-audio-icon-only {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-primary);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 1.2rem;
  font-weight: 800;
}

.floating-audio-player.is-collapsed .floating-audio-icon-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.floating-audio-player.is-collapsed .floating-audio-content {
  display: none;
}

.floating-audio-collapse {
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  background: var(--color-surface-2);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

#floatingAudioNext {
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-soft);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

#floatingAudioSelect {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
}

/* ═══ 10B. HERO SPLIT PANELS (3 secciones que se expanden en hover) ══ */
.de-split-panels {
  display: flex;
  height: 540px;
  overflow: hidden;
  border-radius: 0;
  margin-top: 64px; /* navbar fixed offset */
}

.de-split-panel {
  flex: 1;
  position: relative;
  overflow: hidden;
  transition: flex 0.48s cubic-bezier(0.4, 0, 0.2, 1);
  background-size: cover;
  background-position: center;
  text-decoration: none;
}

.de-split-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.38) 55%, rgba(0, 0, 0, 0.18) 100%);
  transition: background 0.35s ease;
  z-index: 1;
}

.de-split-panels:hover .de-split-panel { flex: 0.6; }
.de-split-panels:hover .de-split-panel:hover { flex: 2.2; }

.de-split-panel:hover::before {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.12) 100%);
}

.de-split-panel-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.5rem 1.75rem;
  z-index: 2;
  color: #fff;
  transform: translateY(6px);
  transition: transform 0.32s ease;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.38) 65%, transparent 100%);
}

.de-split-panel:hover .de-split-panel-content { transform: translateY(0); }

.de-split-panel-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.6rem;
}

.de-split-panel-title {
  font-size: 1.75rem;
  font-weight: 900;
  margin: 0 0 0.4rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.de-split-panel:hover .de-split-panel-title { white-space: normal; }

.de-split-panel-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease 0.1s, opacity 0.3s ease 0.1s, margin-bottom 0.3s ease;
}

.de-split-panel:hover .de-split-panel-desc {
  max-height: 80px;
  opacity: 1;
  margin-bottom: 1rem;
}

.de-split-panel-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.35rem;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-pill);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.28s ease 0.18s, transform 0.28s ease 0.18s, background 0.2s;
}

.de-split-panel:hover .de-split-panel-cta { opacity: 1; transform: translateY(0); }

.de-split-panel-cta:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }

.de-split-panel-icon {
  font-size: 2.8rem;
  display: block;
  margin-bottom: 0.65rem;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
}

.de-split-panel:hover .de-split-panel-icon { transform: scale(1.12); }

@media (max-width: 767px) {
  .de-split-panels {
    flex-direction: column;
    height: auto;
  }
  .de-split-panel { flex: none !important; min-height: 220px; }
  .de-split-panels:hover .de-split-panel { flex: none; }
  .de-split-panel-desc { max-height: none !important; opacity: 1 !important; margin-bottom: 0.75rem !important; }
  .de-split-panel-cta { opacity: 1 !important; transform: none !important; }
}

/* ═══ 10C. IMAGE CARDS (figura real, no deforma; alt/SEO/CLS-safe) ══ */
.de-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 220px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  background: var(--color-surface-2);
}

.de-image-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.de-image-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0.8rem 1rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.68), transparent);
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* ═══ 1B. HERO CON IMAGEN DE FONDO (parallax + overlay + logo) ════ */
.de-hero-image {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 8rem 0 4.5rem;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

/* Filtro semitransparente: imagen visible pero texto legible */
.de-hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, rgba(10, 12, 20, 0.72) 0%, rgba(20, 24, 38, 0.55) 55%, rgba(139, 92, 246, 0.28) 100%);
  z-index: 0;
}

.de-hero-image > .de-container {
  position: relative;
  z-index: 1;
}

.de-hero-image-logo {
  max-height: 96px;
  width: auto;
  margin-bottom: var(--space-sm);
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
}

.de-hero-image .de-hero-eyebrow {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  backdrop-filter: blur(4px);
}

.de-hero-image .de-hero-title {
  color: #fff !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
}

.de-hero-image .de-hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

/* Banda parallax intermedia entre secciones (sólo imagen + filtro) */
.de-parallax-band {
  position: relative;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.de-parallax-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 20, 0.58), rgba(10, 12, 20, 0.42));
  z-index: 0;
}

.de-parallax-band > .de-container {
  position: relative;
  z-index: 1;
}

.de-parallax-band-title {
  color: #fff !important;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  margin-bottom: 0.5rem;
}

.de-parallax-band-sub {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  max-width: 640px;
  margin: 0 auto 1.25rem;
}

/* CTA llamativo grande (gradiente de marca) */
.de-cta-mega {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.95rem 2.2rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #8b5cf6 0%, #06d6a0 100%);
  color: #fff !important;
  border: 0;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.45), 0 4px 14px rgba(6, 214, 160, 0.3);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.de-cta-mega:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 42px rgba(139, 92, 246, 0.55), 0 8px 20px rgba(6, 214, 160, 0.4);
  color: #fff !important;
  text-decoration: none;
}

@media (max-width: 767px) {
  .de-hero-image,
  .de-parallax-band {
    background-attachment: scroll; /* iOS */
  }
  .de-hero-image {
    min-height: 440px;
    padding: 7rem 0 3rem;
  }
}

/* ═══ 10D. SECTION PARALLAX (solo backgrounds de sección) ══════════ */
.de-section-parallax {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

/* Filtro semitransparente claro: la imagen no opaque el contenido */
.de-section-parallax::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.62));
  z-index: 0;
}

[data-theme='dark'] .de-section-parallax::before {
  background: linear-gradient(135deg, rgba(10, 12, 20, 0.85), rgba(10, 12, 20, 0.66));
}

.de-section-parallax > .de-container {
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .de-section-parallax {
    background-attachment: scroll; /* iOS no soporta fixed bien */
  }
}

/* ═══ 10E. CAPA DE COMPATIBILIDAD ════════════════════════════════ */

.hero { padding: 7rem 0 3rem; }

.page-hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 7.5rem 0 5.2rem;
  background-image: url('/api/file/picture');
  background-size: cover;
  background-position: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--de-hero-overlay, linear-gradient(118deg, rgba(10,12,20,0.9), rgba(20,24,38,0.75)));
}

.page-hero .container { position: relative; z-index: 2; }

.page-title { font-weight: 800; margin-bottom: 0.8rem; }

.page-subtitle {
  max-width: 920px;
  border-radius: 14px;
  padding: 0.82rem 0.95rem;
}

.section-title { font-weight: 800; }

.section-desc { max-width: 820px; color: var(--color-muted); }

.de-card {
  padding: 1.2rem;
  height: 100%;
  border-radius: var(--radius-lg);
}

.hero-box { padding: 2rem; border-radius: 18px; }

.kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.8rem;
}

.seo-chip {
  display: inline-block;
  margin: 0.25rem;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-pill);
}

.pitch-box { border-left: 4px solid var(--color-primary); }

.badge-premium {
  display: inline-block;
  background: #d4af37;
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.6rem;
  font-weight: 700;
  font-size: 0.75rem;
}

.cta-box { padding: 2rem; text-align: center; }

.img-slot {
  width: 100%;
  min-height: 210px;
  border-radius: 14px;
  border: 2px dashed #c5cbd5;
  object-fit: cover;
  background: #f3f5f8;
}

.img-slot-tall { min-height: 280px; }

.slot-caption { font-size: 0.82rem; margin-top: 0.45rem; color: var(--color-muted); }

.de-full-banner {
  position: relative;
  width: 100%;
  min-height: 280px;
  background-size: cover;
  background-position: center;
  margin-bottom: 1.2rem;
}

.de-full-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(7,10,22,0.88), rgba(11,19,36,0.66), rgba(16,185,129,0.26));
}

.de-full-banner-content { position: relative; z-index: 2; padding: 2.3rem 1.2rem; }

.de-overlay-panel { border-radius: 14px; padding: 0.95rem; }

.event-gallery-grid .img-slot { min-height: 240px; }

.accordion .card { border-radius: var(--radius-md); margin-bottom: 0.7rem; }

.accordion .btn-link {
  font-weight: 700;
  width: 100%;
  text-align: left;
  text-decoration: none;
}

footer { padding: 2rem 0; }
