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

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

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

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

.cta-inscripcion-fixed {
  position: fixed;
  z-index: 1000;
  background: linear-gradient(135deg, #ff6f00, #c62828);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  /* Glow base sutil */
  box-shadow: 0 0 10px rgba(255, 111, 0, 0.3);
}

/* Desktop */
@media (min-width: 768px) {
  .cta-inscripcion-fixed {
    top: 30%;
    transform: translateY(-10%);
    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;
  }
}

/* 🔥 HOVER (acá está la magia) */
.cta-inscripcion-fixed:hover {
  background: linear-gradient(135deg, #fbc02d, #ff6f00);
  color: #000;

  box-shadow:
    0 0 15px rgba(255, 111, 0, 0.7),
    0 0 30px rgba(255, 111, 0, 0.4);

  transform: translateY(-10%) scale(1.05);
}

/* ACTIVE */
.cta-inscripcion-fixed:active {
  transform: translateY(-10%) scale(0.97);
}

/* Mobile fix */
@media (max-width: 767px) {
  .cta-inscripcion-fixed:hover {
    transform: translateY(-50%) scale(1.05);
  }

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

/* 🔥 Efecto “respiración” (muy sutil) */
@keyframes pulseFire {
  0% {
    box-shadow: 0 0 8px rgba(255, 111, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 18px rgba(255, 111, 0, 0.6);
  }
  100% {
    box-shadow: 0 0 8px rgba(255, 111, 0, 0.3);
  }
}

.cta-inscripcion-fixed {
  animation: pulseFire 2.5s infinite;
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .cta-inscripcion-fixed {
    transition: none;
    animation: 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-ag);
}

.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-a);
  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);
}

/* ===== CRONOGRAMA PRO ===== */

.cronograma-section {
  /* margin-top: -80px; */
  padding-bottom: 80px;
  background: linear-gradient(
    to bottom,
    var(--color-bg-ag) 0%,
    var(--color-bg-m) 40%
  );
  color: var(--color-text);
}

.cronograma-section .section-title {
  text-align: center;
  font-family: inherit;
  font-weight: 700;
}

/* GRID GENERAL */
.cronograma-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: start;
}

/* IZQUIERDA */
.cronograma-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ITEM */
.cronograma-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-radius: 14px;
  background: var(--color-bg-ag);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* DISTANCIAS (más imponente) */
.distancias {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* HORA (muy protagonista) */
.hora {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.hora-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-primary);
}

.hora-hs {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0.8;
}

/* DERECHA */
.cronograma-right {
  display: flex;
}

.cronograma-box {
  width: 100%;
  padding: 20px;
  border-radius: 14px;
  background: var(--color-bg-ag);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* TEXTO */
.cronograma-box .label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.cronograma-box .valor {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.cronograma-box hr {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 12px 0;
}

@media (max-width: 768px) {
  .cronograma-grid {
    grid-template-columns: 1fr;
  }

  .distancias {
    font-size: 1.6rem;
    text-align: center;
  }

  .cronograma-item {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .hora-num {
    font-size: 2rem;
  }
}

/* =========================
   FOOTER – MODERNO DINÁMICO
========================= */

.site-footer {
  background: var(--color-bg-close);
  color: var(--color-text);
  padding-top: 80px;
  position: relative;
}

/* contenedor */

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 60px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* derecha */

.footer-right {
  display: flex;
  align-items: center;
}

/* logo */

.footer-brand img {
  height: 50px;
  margin-bottom: 25px;
  opacity: 0.9;
  border-radius: 5px;
}

/* organización */

.footer-org {
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  opacity: 0.85;
}

/* mail */

.footer-mail {
  color: var(--color-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;

  transition: all 0.2s ease;
  opacity: 0.8;
}

.footer-mail:hover {
  color: var(--color-primary);
  transform: translateY(-1px);
}

.footer-social {
  display: flex;
  gap: 18px;
}

.footer-social a {
  color: var(--color-text);
  font-size: 1.4rem;

  transition:
    transform 0.2s ease,
    color 0.2s ease;

  opacity: 0.7;
}

.footer-social a:hover {
  color: var(--color-primary);
  transform: translateY(-3px) scale(1.05);
}

/* bottom */

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .footer-left {
    align-items: center;
  }
}

/* =========================
   DETALLE PRO (opcional)
========================= */

/* línea sutil con color de marca */

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);

  width: 120px;
  height: 3px;

  background: var(--color-primary);
  border-radius: 2px;
}
