/* ==========================================================================
   2da Carrera Infantil El Refugio 2026 - Tema Blanco con Paleta Oficial
   Colores: Magenta, Cian, Púrpura, Amarillo, Naranja y Verde
   ========================================================================== */

:root {
  --neon-pink: #FF2D7A;
  --neon-cyan: #00B4D8;
  --vibrant-purple: #7928CA;
  --purple-dark: #5B21B6;
  --sun-yellow: #EAB308;
  --speed-orange: #FF6B00;
  --lime-green: #10B981;
  
  --site-bg: #FFFFFF;
  --light-bg: #F8FAFC;
  --card-bg: #FFFFFF;
  --border-color: #E2E8F0;
  
  --text-dark: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;

  --font-title: 'Fredoka', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  font-family: var(--font-body);
  background-color: var(--site-bg);
  color: var(--text-body);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .badge-custom {
  font-family: var(--font-title);
  letter-spacing: -0.3px;
  color: var(--text-dark);
}

/* NAVBAR & TOP BAR */
.top-announcement-bar {
  background: linear-gradient(90deg, #047857 0%, #10B981 50%, #047857 100%);
  color: #FFFFFF;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 6px 12px;
  text-align: center;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
  position: relative;
  z-index: 1031;
}

.navbar-custom {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid #E2E8F0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 0.6rem 0;
  transition: all 0.3s ease;
}

.navbar-brand-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

@media (min-width: 992px) {
  .navbar-brand-wrapper {
    width: auto;
  }
}

.navbar-custom .navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: calc(100% - 48px);
  margin-right: 0;
  padding: 0;
}

.navbar-custom .navbar-brand img {
  height: 42px;
  width: auto;
  flex-shrink: 0;
}

.navbar-custom .navbar-brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
  color: #0F172A;
}

.navbar-custom .navbar-brand-sub {
  font-size: 0.76rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #0082B4;
  font-weight: 700;
}

.navbar-custom .navbar-toggler {
  padding: 4px 6px;
  font-size: 1.6rem;
  flex-shrink: 0;
  border: none;
  line-height: 1;
}

@media (max-width: 576px) {
  .navbar-custom .navbar-brand img {
    height: 36px;
  }
  .navbar-custom .navbar-brand-title {
    font-size: 0.92rem;
  }
  .navbar-custom .navbar-brand-sub {
    font-size: 0.70rem;
  }
  .top-announcement-bar {
    font-size: 0.76rem;
    padding: 5px 8px;
  }
}

.brand-logos img {
  max-height: 48px;
  object-fit: contain;
  background: #ffffff;
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
}

.brand-logos img:hover {
  transform: scale(1.05);
}

/* HERO SECTION - TEMA BLANCO CON ARTE */
.hero-section {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #F0FDF4 40%, #EFF6FF 80%, #FFFFFF 100%);
  padding: 75px 0 65px 0;
  border-bottom: 3px solid #E2E8F0;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 10%, rgba(0, 180, 216, 0.08) 0%, rgba(255, 45, 122, 0.05) 50%, rgba(255, 255, 255, 0.95) 100%);
  z-index: 1;
}

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

.hero-title-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--speed-orange), var(--neon-pink));
  color: #ffffff;
  font-weight: 800;
  padding: 8px 24px;
  border-radius: 50px;
  text-transform: uppercase;
  font-size: 0.92rem;
  letter-spacing: 1px;
  box-shadow: 0 6px 20px rgba(255, 45, 122, 0.3);
  animation: pulse 2s infinite;
}

.hero-heading {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.15;
  color: #0F172A;
  margin-top: 15px;
}

.hero-heading span.gradient-text {
  background: linear-gradient(135deg, var(--vibrant-purple) 0%, var(--neon-pink) 50%, var(--speed-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #475569;
  margin-bottom: 25px;
}

/* COUNTDOWN TIMER */
.countdown-box {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 25px 0;
  flex-wrap: wrap;
}

.timer-item {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 16px;
  padding: 12px 18px;
  min-width: 90px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.timer-num {
  font-size: 2.2rem;
  font-weight: 900;
  font-family: var(--font-title);
  color: var(--vibrant-purple);
  line-height: 1;
}

.timer-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 5px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* BUTTONS */
.btn-carrera-primary {
  background: linear-gradient(135deg, var(--neon-pink) 0%, var(--vibrant-purple) 100%);
  color: #ffffff;
  font-weight: 700;
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1.1rem;
  box-shadow: 0 8px 20px rgba(255, 45, 122, 0.35);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-carrera-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 25px rgba(255, 45, 122, 0.5);
  color: #ffffff;
}

.btn-carrera-cyan {
  background: linear-gradient(135deg, #00B4D8 0%, #0077B6 100%);
  color: #ffffff;
  font-weight: 700;
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1.05rem;
  box-shadow: 0 8px 20px rgba(0, 180, 216, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-carrera-cyan:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0, 180, 216, 0.5);
  color: #ffffff;
}

/* SECTIONS */
.section-title-wrap {
  text-align: center;
  margin-bottom: 40px;
}

.section-badge {
  display: inline-block;
  background: rgba(0, 180, 216, 0.12);
  color: #0284C7;
  border: 1px solid rgba(0, 180, 216, 0.3);
  padding: 6px 18px;
  border-radius: 30px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: #0F172A;
}

/* CARDS */
.custom-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.custom-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  padding: 25px;
  height: 100%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.category-card.cat1 { border-top: 5px solid var(--neon-pink); }
.category-card.cat2 { border-top: 5px solid #00B4D8; }
.category-card.cat3 { border-top: 5px solid var(--sun-yellow); }

.category-badge {
  font-size: 0.85rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-block;
}

/* ITINERARIO TABLE */
.table-itinerario {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.table-itinerario tr {
  background: #F8FAFC;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.table-itinerario tr:hover {
  background: #F1F5F9;
  transform: scale(1.008);
}

.table-itinerario td {
  padding: 16px 20px;
  color: #1E293B;
  border: none;
  vertical-align: middle;
}

.table-itinerario td:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  font-weight: 800;
  font-family: var(--font-title);
  color: var(--vibrant-purple);
}

.table-itinerario td:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

/* CRONOGRAMA RESPONSIVO PARA MÓVILES (TIMELINE VERTICAL SIN SCROLL) */
.timeline-mobile-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline-mobile-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-left: 5px solid #00B4D8;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-mobile-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.timeline-mobile-card.border-start-pink { border-left-color: #FF2D7A !important; }
.timeline-mobile-card.border-start-cyan { border-left-color: #00B4D8 !important; }
.timeline-mobile-card.border-start-yellow { border-left-color: #EAB308 !important; }
.timeline-mobile-card.border-start-purple { border-left-color: #7928CA !important; }
.timeline-mobile-card.border-start-green { border-left-color: #10B981 !important; }

.badge-timeline {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 20px;
}

.bg-pink-subtle.text-pink {
  background-color: rgba(255, 45, 122, 0.12) !important;
  color: #FF2D7A !important;
}

.bg-cyan-subtle.text-cyan {
  background-color: rgba(0, 180, 216, 0.12) !important;
  color: #0284C7 !important;
}

.bg-yellow-subtle.text-yellow {
  background-color: rgba(234, 179, 8, 0.16) !important;
  color: #B45309 !important;
}

.bg-purple-subtle.text-purple {
  background-color: rgba(121, 40, 202, 0.12) !important;
  color: #7928CA !important;
}

.bg-green-subtle.text-green {
  background-color: rgba(16, 185, 129, 0.14) !important;
  color: #047857 !important;
}

/* LOGOS SPONSORS BAR */
.organizers-bar {
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
  padding: 35px 0;
}

.logo-card-wrap {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 105px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-card-wrap:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.logo-card-wrap img {
  max-height: 70px;
  max-width: 100%;
  object-fit: contain;
}

/* REGISTRATION FORM STYLES */
.form-container-card {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.form-label {
  font-weight: 600;
  color: #1E293B;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.form-control, .form-select {
  background-color: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  color: #0F172A;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus, .form-select:focus {
  background-color: #FFFFFF;
  border-color: #00B4D8;
  color: #0F172A;
  box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.15);
}

.form-control::placeholder {
  color: #94A3B8;
}

/* SEDES INFO BOX */
.sede-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-left: 5px solid #00B4D8;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.sede-box.el-refugio { border-left-color: var(--neon-pink); }
.sede-box.ampliaciones { border-left-color: var(--speed-orange); }
.sede-box.bojai { border-left-color: var(--lime-green); }

/* FOOTER */
.site-footer {
  background: #0F172A;
  border-top: 1px solid #E2E8F0;
  padding: 40px 0 25px 0;
  color: #94A3B8;
}

/* ANIMATIONS */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   ELEMENTOS DE COMPARTIR EN REDES SOCIALES
   ========================================================================== */
.social-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.social-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  color: #FFFFFF;
}

.btn-share-whatsapp {
  background-color: #25D366;
  color: #FFFFFF;
}
.btn-share-whatsapp:hover {
  background-color: #1EBE5D;
}

.btn-share-facebook {
  background-color: #1877F2;
  color: #FFFFFF;
}
.btn-share-facebook:hover {
  background-color: #0C63D4;
}

.btn-share-twitter {
  background-color: #0F172A;
  color: #FFFFFF;
}
.btn-share-twitter:hover {
  background-color: #1E293B;
}

.btn-share-telegram {
  background-color: #0088CC;
  color: #FFFFFF;
}
.btn-share-telegram:hover {
  background-color: #0077B5;
}

.btn-share-copy {
  background-color: #64748B;
  color: #FFFFFF;
}
.btn-share-copy:hover {
  background-color: #475569;
}

.btn-share-native {
  background: linear-gradient(135deg, var(--neon-pink), var(--speed-orange));
  color: #FFFFFF;
}

/* BARRA FLOTANTE LATERAL PARA COMPARTIR */
.floating-share-bar {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px 8px;
  border-radius: 30px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border: 1px solid #E2E8F0;
  backdrop-filter: blur(8px);
}

.floating-share-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 1.25rem;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.floating-share-btn:hover {
  transform: scale(1.15) rotate(5deg);
  color: #FFFFFF;
}

.share-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: #0F172A;
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.share-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}

/* ==========================================================================
   CHECKBOX TÁCTIL Y DE ALTA VISIBILIDAD PARA MÓVILES
   ========================================================================== */
.custom-checkbox-touch-card {
  background: #FFFFFF;
  border: 2.5px solid #00B4D8;
  border-radius: 16px;
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 14px rgba(0, 180, 216, 0.08);
}

.custom-checkbox-touch-card:hover {
  border-color: #0284C7;
  background-color: #F8FAFC;
}

.custom-checkbox-touch-card.is-checked {
  background-color: #F0FDF4;
  border-color: #10B981;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
}

.custom-checkbox-touch-card.has-error {
  background-color: #FEF2F2 !important;
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2) !important;
  animation: shake-box 0.45s cubic-bezier(.36,.07,.19,.97) both;
}

.custom-prominent-check {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  border: 2.5px solid #00B4D8 !important;
  border-radius: 8px !important;
  margin: 0 !important;
  cursor: pointer !important;
  accent-color: #10B981 !important;
  transition: all 0.2s ease;
  display: block;
}

.custom-prominent-check:checked {
  background-color: #10B981 !important;
  border-color: #10B981 !important;
}

@keyframes shake-box {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

@media (max-width: 991px) {
  .floating-share-bar {
    left: auto;
    right: 15px;
    top: auto;
    bottom: 20px;
    transform: none;
    flex-direction: row;
    padding: 8px 12px;
    border-radius: 50px;
  }
  .floating-share-btn {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .hero-heading { font-size: 2.2rem; }
  .form-container-card { padding: 20px 16px; border-radius: 18px; }
  .timer-item { min-width: 65px; padding: 8px 6px; }
  .timer-num { font-size: 1.5rem; }
  
  /* Evitar zoom automático de iOS en inputs manteniendo >= 16px */
  .form-control, .form-select {
    font-size: 16px !important;
    padding: 13px 14px;
    border-radius: 12px;
    min-height: 48px;
  }

  .btn-carrera-primary, .btn-carrera-cyan {
    min-height: 52px;
    font-size: 1.05rem;
    padding: 14px 20px;
  }

  .custom-checkbox-touch-card {
    padding: 14px 14px;
  }

  .custom-prominent-check {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
  }

  .floating-share-bar {
    bottom: 12px;
    right: 12px;
    z-index: 1020;
    gap: 6px;
    padding: 6px 10px;
  }
  .floating-share-btn {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }
}
