/* ===== Custom styles for SOS26 ===== */

/* ===== Bree Font Family ===== */
@font-face {
  font-family: 'Bree';
  src: url('../fonts/Bree Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bree';
  src: url('../fonts/Bree Oblique.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Bree';
  src: url('../fonts/Bree Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bree';
  src: url('../fonts/Bree Light Oblique.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Bree';
  src: url('../fonts/Bree Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bree';
  src: url('../fonts/Bree Bold Oblique.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Bree';
  src: url('../fonts/Bree ExtraBold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bree';
  src: url('../fonts/Bree ExtraBold Oblique.otf') format('opentype');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Navbar active link */
.nav-link.active {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Mobile dropdown arrow rotation */
.mobile-dropdown-toggle.open svg {
  transform: rotate(180deg);
}

/* Banner slide transition */
#banner-slides {
  will-change: transform;
}

/* Fade in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Active dot */
.banner-dot.active {
  background-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.3);
}

/* Stage columns entrance animation */
@keyframes stageIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.stage-column {
  opacity: 0;
}

.stage-column.animate-in {
  animation: stageIn 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

/* Day 0 & external pages: stage-columns are children 1–5 */
.stage-column.animate-in:nth-child(1) { animation-delay: 0ms; }
.stage-column.animate-in:nth-child(2) { animation-delay: 90ms; }
.stage-column.animate-in:nth-child(3) { animation-delay: 180ms; }
.stage-column.animate-in:nth-child(4) { animation-delay: 270ms; }
.stage-column.animate-in:nth-child(5) { animation-delay: 360ms; }

/* Day 1 & 2: time ruler is child 1, so stage-columns are children 2–6 */
#schedule-day1 .stage-column.animate-in:nth-child(2),
#schedule-day2 .stage-column.animate-in:nth-child(2) { animation-delay: 0ms; }
#schedule-day1 .stage-column.animate-in:nth-child(3),
#schedule-day2 .stage-column.animate-in:nth-child(3) { animation-delay: 90ms; }
#schedule-day1 .stage-column.animate-in:nth-child(4),
#schedule-day2 .stage-column.animate-in:nth-child(4) { animation-delay: 180ms; }
#schedule-day1 .stage-column.animate-in:nth-child(5),
#schedule-day2 .stage-column.animate-in:nth-child(5) { animation-delay: 270ms; }
#schedule-day1 .stage-column.animate-in:nth-child(6),
#schedule-day2 .stage-column.animate-in:nth-child(6) { animation-delay: 360ms; }

/* Día 0 (Semana SOS26): cards keep natural height; the 500px reserved by the grid shows white below */
#schedule-day0 .stage-column {
  min-height: auto;
}

/* Modal Ponentes — staggered pop-in animation */
@keyframes ponenteIn {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.92);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.ponente-item {
  opacity: 0;
  animation: ponenteIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.ponente-item:nth-child(1) { animation-delay: 60ms; }
.ponente-item:nth-child(2) { animation-delay: 180ms; }
.ponente-item:nth-child(3) { animation-delay: 300ms; }
.ponente-item:nth-child(4) { animation-delay: 420ms; }
.ponente-item:nth-child(5) { animation-delay: 540ms; }
.ponente-item:nth-child(6) { animation-delay: 660ms; }

/* Modal backdrop fade-in */
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#ponentes-modal:not(.hidden) #ponentes-backdrop {
  animation: modalFadeIn 0.3s ease-out forwards;
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

#ponentes-modal:not(.hidden) > div:last-child {
  animation: modalScaleIn 0.4s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
