/* ===== BUTTONS ===== */

.btn-desktop-only {
  display: none;
}

@media (min-width: 1024px) {
  .btn-desktop-only {
    display: flex;
  }
}

/* ===== CTA FIJO ===== */

.cta-inscripcion-fixed {
  position: fixed;
  z-index: 9999;
  right: max(0px, env(safe-area-inset-right));
  text-decoration: none;
  border: none;
  border-left: 3px solid var(--color-secondary);
  color: var(--color-text);
  background: var(--color-primary);
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: var(--cta-shadow, 0 10px 25px rgba(0, 0, 0, 0.2));
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    opacity 0.2s ease;
}

/* Desktop */
@media (min-width: 768px) {
  .cta-inscripcion-fixed {
    top: 30%;
    transform: translateY(-50%);
    border-radius: 12px 0 0 12px;
    padding: 14px 16px;
    writing-mode: horizontal-tb;
    display: flex;
    align-items: center;
    gap: 8px;
    right: 0;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .cta-inscripcion-fixed {
    top: 30%;
    transform: translateY(-50%);
    border-radius: 12px 0 0 12px;
    padding: 14px 16px;
    writing-mode: vertical-lr;
    display: flex;
    align-items: center;
    gap: 8px;
    right: 0;
  }
}

/* Interacciones */
.cta-inscripcion-fixed:hover {
  background: var(--color-secondary);
  text-decoration: none;
}

.cta-inscripcion-fixed:active {
  transform: translateY(-50%) scale(0.98);
}

@media (max-width: 767px) {
  .cta-inscripcion-fixed:active {
    transform: scale(0.96);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-inscripcion-fixed {
    transition: none;
  }
}

/* ===== TIMELINE ITEMS ===== */

.timeline-item {
  background: var(--color-surface, #ffffff);
  padding: 1.2rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.timeline-item:hover {
  transform: translateY(-5px);
}

/* ===== GALERÍA ===== */

.gallery-container {
  padding: 10px;
}

.gallery-section {
  padding: 80px 0;
  background: var(--color-bg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.gallery-item {
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  overflow: hidden;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* MOBILE FIX */
@media (max-width: 500px) {
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas */
    gap: 5px;
  }

  .gallery-item {
    aspect-ratio: 1 / 1;
  }
}

.gallery-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-bg);

  align-items: center;
  justify-content: center;
}

.gallery-modal.active {
  display: flex;
}

.modal-content {
  display: block;
  margin: auto;
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 35px;
  cursor: pointer;
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 50px;
  height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 24px;
  color: white;

  background-color: rgba(0, 0, 0, 0.4); /* 🔥 opacidad */
  border-radius: 50%;

  cursor: pointer;
  user-select: none;

  backdrop-filter: blur(4px); /* 🔥 efecto pro */
  transition: all 0.2s ease;
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

/* ===== FOOTER ===== */

.site-footer .footer-logo img {
  height: 150px;
  width: auto;
}

.site-footer .footer-email i {
  color: var(--color-primary);
}

.site-footer .footer-mail:hover {
  color: var(--color-secondary);
}

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

@media (max-width: 768px) {
  .sponsor-card {
    width: 140px;
    height: 140px;
  }
}
