/**
 * Reglas definidas en input.css que deben cargarse aunque styles.css no se recompile.
 * Tras `npm run build:css`, este archivo puede vaciarse o eliminarse si todo pasa al bundle.
 */

#calendar,
#asistente {
  background-color: #0f0f0f;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Cards Salsa/Bachata: "fade" quitando la capa oscura + más luz en foto */
.clases-card__shade {
  opacity: 1;
  transition: opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.clases-card:hover .clases-card__shade {
  opacity: 0.22;
}

.clases-card__img {
  opacity: 0.58;
  filter: brightness(0.98) saturate(1);
  transition:
    opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.clases-card:hover .clases-card__img {
  opacity: 0.78;
  filter: brightness(1.1) saturate(1.04);
}

/* En móvil/táctil quitamos el "haz de luz" y su animación */
@media (max-width: 1023px), (hover: none), (pointer: coarse) {
  .clases-card__glow {
    display: none;
  }

  .clases-card__shade {
    opacity: 1 !important;
    transition: none;
  }

  .clases-card__img {
    opacity: 0.58 !important;
    filter: brightness(0.98) saturate(1) !important;
    transition: none;
  }

  .clases-card:hover .clases-card__shade {
    opacity: 1 !important;
  }

  .clases-card:hover .clases-card__img {
    opacity: 0.58 !important;
    filter: brightness(0.98) saturate(1) !important;
  }
}

#calendarGrid,
.calendar-weekdays {
  min-width: 600px;
}

.calendar-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.calendar-container::-webkit-scrollbar {
  display: none;
}

#nav-mobile-panel:not(.hidden) {
  z-index: 10;
  max-height: min(85dvh, calc(100dvh - 3.5rem));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.clases-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background: radial-gradient(
    ellipse 80% 60% at 50% 30%,
    rgb(90 200 250 / 0.1),
    transparent 70%
  );
}

.photo-monitor-bw {
  filter: grayscale(1) contrast(1.22) brightness(1.04);
  -webkit-filter: grayscale(1) contrast(1.22) brightness(1.04);
}

.equipo-card__photo {
  background-color: rgb(0 0 0 / 0.35);
}

/* Ajuste por altura de viewport en escritorio: secciones más compactas */
@media (min-width: 1024px) and (max-height: 1080px) {
  main > section:not(#hero) {
    padding-top: clamp(3.5rem, 6vh, 5rem) !important;
    padding-bottom: clamp(3.5rem, 6vh, 5rem) !important;
  }

  #equipo {
    min-height: calc(100dvh - 5.5rem);
    display: flex;
    align-items: center;
  }

  #equipo > div {
    width: 100%;
  }

  #equipo header {
    margin-bottom: clamp(2rem, 4vh, 3.25rem) !important;
  }

  #equipo .equipo-card__photo {
    max-height: min(33vh, 18rem) !important;
  }

  #equipo .equipo-card__body {
    padding-top: 1.5rem !important;
    padding-bottom: 1.9rem !important;
  }
}

@media (min-width: 1024px) and (max-height: 920px) {
  main > section:not(#hero) {
    padding-top: clamp(2.75rem, 4.8vh, 4rem) !important;
    padding-bottom: clamp(2.75rem, 4.8vh, 4rem) !important;
  }

  #equipo header {
    margin-bottom: 1.6rem !important;
  }

  #equipo .equipo-card__photo {
    max-height: min(29vh, 15.5rem) !important;
  }

  #equipo .equipo-card__body {
    padding-top: 1.15rem !important;
    padding-bottom: 1.35rem !important;
  }

  #equipo #equipo-title {
    font-size: clamp(2rem, 3vw, 2.5rem) !important;
  }

  #equipo p {
    line-height: 1.45;
  }
}

footer#contacto.footer-site {
  box-sizing: border-box;
  background-color: #0f0f0f;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 3rem;
  padding-bottom: 3.25rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  footer#contacto.footer-site {
    padding-top: 3.5rem;
    padding-bottom: 3.75rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.footer-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 0.75rem 0.65rem;
  align-items: start;
  justify-items: center;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

@media (min-width: 640px) {
  .footer-main-grid {
    gap: 0.85rem 1rem;
  }
}

@media (min-width: 768px) {
  .footer-main-grid {
    gap: 0.85rem 1.25rem;
  }
}

.footer-col-title {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.95);
}

@media (min-width: 640px) {
  .footer-col-title {
    font-size: 0.75rem;
  }
}

.footer-nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: min(1.25rem, 4vw);
  row-gap: 0.35rem;
}

.footer-nav-link {
  font-size: 0.8125rem;
  line-height: 1.3;
  color: rgb(161 161 161);
  transition: color 0.2s ease;
}

@media (min-width: 640px) {
  .footer-nav-link {
    font-size: 0.875rem;
  }
}

.footer-nav-link:hover,
.footer-nav-link:focus-visible {
  color: rgb(255 255 255);
}

.footer-logo-wrap {
  width: 100%;
  max-width: 52px;
}

.footer-logo-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgb(255 255 255 / 0.85);
  transition:
    color 0.2s ease,
    filter 0.25s ease;
}

.footer-socials svg {
  display: block;
  flex-shrink: 0;
}

.footer-social--instagram:hover,
.footer-social--instagram:focus-visible {
  color: #e4405f;
  filter: drop-shadow(0 0 8px rgba(228, 64, 95, 0.6))
    drop-shadow(0 0 14px rgba(228, 64, 95, 0.35));
}

.footer-social--whatsapp:hover,
.footer-social--whatsapp:focus-visible {
  color: #25d366;
  filter: drop-shadow(0 0 8px rgba(37, 211, 102, 0.55))
    drop-shadow(0 0 14px rgba(37, 211, 102, 0.3));
}

.footer-social--facebook:hover,
.footer-social--facebook:focus-visible {
  color: #1877f2;
  filter: drop-shadow(0 0 8px rgba(24, 119, 242, 0.55))
    drop-shadow(0 0 14px rgba(24, 119, 242, 0.3));
}

.footer-laraia-link {
  font-weight: 500;
  font-style: normal;
  color: rgb(161 161 161);
  text-underline-offset: 3px;
  transition:
    color 0.2s ease,
    text-shadow 0.2s ease;
}

.footer-laraia-link:hover,
.footer-laraia-link:focus-visible {
  color: #ff2ee3;
  text-shadow:
    0 0 12px rgba(255, 46, 227, 0.55),
    0 0 22px rgba(255, 46, 227, 0.35);
}

.footer-legal-copy {
  font-size: 0.6875rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgb(120 120 120);
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .footer-legal-copy {
    font-size: 0.75rem;
  }
}

.footer-legal-credit {
  font-size: 0.6875rem;
  font-weight: 300;
  font-style: italic;
  color: rgb(120 120 120);
}

@media (min-width: 640px) {
  .footer-legal-credit {
    font-size: 0.75rem;
  }
}

.glass-panel.glass-panel--interactive {
  transition-property: border-color, background-color, box-shadow;
  transition-duration: 300ms;
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

.glass-panel.glass-panel--interactive:hover {
  border-color: rgb(255 255 255 / 0.25);
  background-color: rgb(255 255 255 / 0.08);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}
.reveal-delay-5 {
  transition-delay: 0.5s;
}
.reveal-delay-6 {
  transition-delay: 0.6s;
}

/* Sobrescribe .quote-neon-orange del bundle antiguo */
.quote-neon-orange {
  text-shadow:
    0 0 2px rgb(255 245 220 / 0.55),
    0 0 6px rgb(255 180 80 / 0.5),
    0 0 12px rgb(255 140 40 / 0.4),
    0 0 22px rgb(255 100 0 / 0.32),
    0 0 36px rgb(255 80 0 / 0.22),
    0 0 52px rgb(255 60 0 / 0.14) !important;
  filter: drop-shadow(0 0 14px rgb(255 120 0 / 0.14)) !important;
}

.text-neon-orange-glow {
  color: color-mix(in srgb, var(--color-neon-orange) 90%, white);
  text-shadow:
    0 0 2px rgb(255 235 200 / 0.5),
    0 0 6px rgb(255 170 70 / 0.42),
    0 0 14px rgb(255 130 30 / 0.32),
    0 0 24px rgb(255 100 0 / 0.2);
  filter: drop-shadow(0 0 10px rgb(255 140 0 / 0.2));
}

.text-neon-spotify-glow {
  color: var(--color-spotify);
  text-shadow:
    0 0 2px rgb(190 255 215 / 0.45),
    0 0 7px rgb(29 185 84 / 0.32),
    0 0 14px rgb(29 185 84 / 0.18);
  filter: drop-shadow(0 0 10px rgb(29 185 84 / 0.2));
}

.text-neon-magenta-glow {
  color: color-mix(in srgb, var(--color-neon-magenta) 90%, white);
  text-shadow:
    0 0 2px rgb(255 220 255 / 0.55),
    0 0 6px rgb(255 100 230 / 0.48),
    0 0 14px rgb(255 46 227 / 0.38),
    0 0 26px rgb(255 30 200 / 0.26),
    0 0 40px rgb(220 0 180 / 0.16);
  filter: drop-shadow(0 0 12px rgb(255 46 227 / 0.22));
}

.text-neon-cyan-glow {
  color: color-mix(in srgb, var(--color-neon-blue) 88%, white);
  text-shadow:
    0 0 2px rgb(220 255 255 / 0.55),
    0 0 6px rgb(100 240 255 / 0.48),
    0 0 14px rgb(0 229 255 / 0.36),
    0 0 26px rgb(0 200 245 / 0.24),
    0 0 40px rgb(0 170 230 / 0.14);
  filter: drop-shadow(0 0 12px rgb(0 229 255 / 0.22));
}

.cta-bailamos-neon {
  background-image: linear-gradient(
    92deg,
    var(--color-neon-orange) 0%,
    var(--color-neon-magenta) 50%,
    var(--color-neon-blue) 100%
  );
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  overflow: visible;
  padding-top: 0.08em;
  padding-bottom: 0.2em;
  line-height: 1.15;
  filter: drop-shadow(0 0 1px rgb(255 255 255 / 0.15))
    drop-shadow(0 0 8px rgb(255 154 0 / 0.32))
    drop-shadow(0 0 16px rgb(255 46 227 / 0.24))
    drop-shadow(0 0 28px rgb(0 229 255 / 0.18));
}

@media (prefers-reduced-motion: no-preference) {
  .text-neon-orange-glow {
    animation: neon-orange-word-pulse 3.5s ease-in-out infinite;
  }
  .text-neon-spotify-glow {
    animation: neon-spotify-word-pulse 3.5s ease-in-out infinite;
  }
  .text-neon-magenta-glow {
    animation: neon-magenta-soft-pulse 3.5s ease-in-out infinite;
  }
  .text-neon-cyan-glow {
    animation: neon-cyan-soft-pulse 3.5s ease-in-out infinite;
  }
  .cta-bailamos-neon {
    animation: cta-bailamos-shimmer 4.5s ease-in-out infinite;
  }
}

@keyframes neon-sign-soft-pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 12px rgb(255 120 0 / 0.12));
  }
  50% {
    filter: drop-shadow(0 0 20px rgb(255 150 60 / 0.22));
  }
}

@keyframes neon-orange-word-pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 10px rgb(255 140 0 / 0.18));
  }
  50% {
    filter: drop-shadow(0 0 16px rgb(255 160 55 / 0.28));
  }
}

@keyframes neon-spotify-word-pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 10px rgb(29 185 84 / 0.16));
  }
  50% {
    filter: drop-shadow(0 0 16px rgb(45 200 100 / 0.26));
  }
}

@keyframes neon-magenta-soft-pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 12px rgb(255 46 227 / 0.22));
  }
  50% {
    filter: drop-shadow(0 0 20px rgb(255 100 235 / 0.34));
  }
}

@keyframes neon-cyan-soft-pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 12px rgb(0 229 255 / 0.22));
  }
  50% {
    filter: drop-shadow(0 0 20px rgb(120 245 255 / 0.34));
  }
}

@keyframes cta-bailamos-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
    filter: drop-shadow(0 0 1px rgb(255 255 255 / 0.15))
      drop-shadow(0 0 8px rgb(255 154 0 / 0.32))
      drop-shadow(0 0 16px rgb(255 46 227 / 0.24))
      drop-shadow(0 0 28px rgb(0 229 255 / 0.18));
  }
  50% {
    background-position: 100% 50%;
    filter: drop-shadow(0 0 1px rgb(255 255 255 / 0.22))
      drop-shadow(0 0 12px rgb(255 180 90 / 0.4))
      drop-shadow(0 0 22px rgb(255 80 220 / 0.3))
      drop-shadow(0 0 34px rgb(90 230 255 / 0.26));
  }
}

@media (prefers-reduced-motion: reduce) {
  .text-neon-orange-glow,
  .text-neon-spotify-glow,
  .text-neon-magenta-glow,
  .text-neon-cyan-glow {
    animation: none;
  }
  .cta-bailamos-neon {
    animation: none;
    background-position: 50% 50%;
  }
}

/* Hero: imagen de fondo + CTA Septiembre (sincronizado con input.css) */
.hero-bg-image {
  opacity: 0;
  transform: scale(0.98);
  transform-origin: center center;
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-image {
    opacity: 1;
    transform: none;
  }
}

.hero-cta-septiembre {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-cta-septiembre__ring {
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-cta-septiembre__face {
  background-color: rgb(0 0 0 / 0.2);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
  transition:
    background-color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    -webkit-backdrop-filter 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    backdrop-filter 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    text-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .hero-cta-septiembre:hover {
    transform: scale(1.02);
  }

  .hero-cta-septiembre:hover .hero-cta-septiembre__ring {
    opacity: 1;
    box-shadow:
      0 0 16px var(--color-brand-orange),
      0 0 32px color-mix(in srgb, var(--color-brand-pink) 40%, transparent);
  }

  .hero-cta-septiembre:hover .hero-cta-septiembre__face {
    background-color: rgb(255 255 255 / 0.1);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    text-shadow: 0 0 4px rgb(255 255 255 / 0.85);
  }
}

/* Header fijo: transición suave hacia el estado con scroll */
#site-header {
  transition:
    background-color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Semitranslúcida + blur al scroll (clase en main.js) */
#site-header.site-header--scrolled {
  background-color: rgb(0 0 0 / 0.48) !important;
  backdrop-filter: blur(14px) saturate(1.15) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.15) !important;
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
  box-shadow: 0 1px 0 0 rgb(255 255 255 / 0.04);
}
