/**
 * Estilos para la Landing y Formulario de Registro - Concurso Calabacita Tía 2da Edición
 * Centro de Convivencia Infantil
 */

html, body {
  overflow-y: auto !important;
  height: auto !important;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 10%, #20083b 0%, #0c0317 60%, #05010a 100%) !important;
  color: #f8fafc !important;
  font-family: 'Poppins', 'Nunito Sans', sans-serif !important;
}


/* Hero Banner */
.calabacita-hero {
  position: relative;
  padding: 50px 20px 35px 20px;
  text-align: center;
  background: radial-gradient(circle at 50% 20%, rgba(255, 107, 0, 0.2) 0%, transparent 70%);
}

.tag-badge {
  background: linear-gradient(90deg, #ff7b00, #ffb703);
  color: #1a052e;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(255, 123, 0, 0.35);
}

/* Quota / Cupo Container */
.quota-box {
  background: rgba(255, 183, 3, 0.08);
  border: 1px solid rgba(255, 183, 3, 0.35);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 14px 20px;
  max-width: 540px;
  margin: 18px auto 0 auto;
}

.quota-progress-container {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
  margin-top: 8px;
}

.quota-progress-bar {
  background: linear-gradient(90deg, #ffb703, #ff7b00);
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease;
}

.quota-closed-box {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 20px;
  max-width: 580px;
  margin: 20px auto 0 auto;
}

/* Countdown Card */
.countdown-container {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 183, 3, 0.3);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 20px;
  max-width: 480px;
  margin: 22px auto 0 auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.countdown-card {
  background: rgba(18, 5, 33, 0.7);
  border: 1px solid rgba(255, 123, 0, 0.3);
  border-radius: 12px;
  padding: 8px 4px;
  text-align: center;
}

.countdown-val {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffb703;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.countdown-txt {
  font-size: 0.7rem;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Category Pills */
.category-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 183, 3, 0.3);
  color: #ffb703;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  display: inline-block;
  margin: 3px;
}

/* Content Cards */
.info-glass-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  border-radius: 22px;
  padding: 28px 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  margin-bottom: 24px;
}

.form-glass-card {
  background: rgba(22, 7, 40, 0.85);
  border: 2px solid rgba(255, 123, 0, 0.4);
  backdrop-filter: blur(20px);
  border-radius: 26px;
  padding: 36px 30px;
  box-shadow: 0 20px 50px rgba(255, 107, 0, 0.2), 0 0 30px rgba(168, 85, 247, 0.15);
}

/* Form Inputs Styling */
.custom-input {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  border-radius: 14px !important;
  padding: 12px 16px !important;
  font-size: 0.98rem !important;
  transition: all 0.25s ease !important;
}

.custom-input:focus {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: #ff7b00 !important;
  box-shadow: 0 0 0 4px rgba(255, 123, 0, 0.25) !important;
  color: #ffffff !important;
}

.custom-input::placeholder {
  color: rgba(255, 255, 255, 0.45) !important;
}

.form-label {
  font-weight: 600;
  color: #f1f5f9;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.form-text {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 0.78rem;
}

/* Checkbox styling */
.form-check-input {
  width: 1.3em;
  height: 1.3em;
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 123, 0, 0.6);
  cursor: pointer;
}

.form-check-input:checked {
  background-color: #ff7b00;
  border-color: #ff7b00;
}

.form-check-label {
  cursor: pointer;
  font-size: 0.88rem;
  color: #e2e8f0;
  line-height: 1.4;
}

/* Button Submit */
.btn-submit-calabacita {
  background: linear-gradient(135deg, #ff6b00 0%, #ea580c 50%, #c026d3 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 16px 28px;
  border-radius: 18px;
  border: none;
  box-shadow: 0 10px 30px rgba(255, 107, 0, 0.5);
  transition: all 0.25s ease;
  cursor: pointer;
  width: 100%;
}

.btn-submit-calabacita:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(255, 107, 0, 0.7);
  filter: brightness(1.1);
}

.privacy-box {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 28px;
}

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

/* Hero Fast Jump CTA */
.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #ffb703 0%, #ff7b00 100%);
  color: #1a052e !important;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: 0 8px 25px rgba(255, 183, 3, 0.4), 0 0 15px rgba(255, 123, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(255, 183, 3, 0.6), 0 0 25px rgba(255, 123, 0, 0.5);
  color: #0c0317 !important;
}

.hero-cta-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.hero-cta-btn:hover .hero-cta-arrow {
  transform: translateY(3px);
}

/* Criterio Card & Collapsible Details */
.criterio-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 183, 3, 0.25);
  border-radius: 16px;
  padding: 16px;
  transition: all 0.25s ease;
}

.criterio-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 183, 3, 0.45);
}

.criterio-details summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  user-select: none;
  outline: none;
}

.criterio-details summary::-webkit-details-marker {
  display: none;
}

.criterio-details summary::after {
  content: " ▾";
  font-size: 0.85em;
  transition: transform 0.2s ease;
}

.criterio-details[open] summary::after {
  content: " ▴";
}

/* Bottom Navigation Tab Bar (Estilo App Móvil) */
.bottom-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: rgba(14, 4, 26, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 123, 0, 0.35);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.65);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)) 12px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 580px;
  margin: 0 auto;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
}

@media (min-width: 581px) {
  .bottom-nav-bar {
    left: 50%;
    transform: translateX(-50%);
    border-left: 1px solid rgba(255, 123, 0, 0.25);
    border-right: 1px solid rgba(255, 123, 0, 0.25);
    bottom: 12px;
    border-radius: 24px;
  }
}

.bottom-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  color: rgba(255, 255, 255, 0.65) !important;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  transition: all 0.25s ease;
  position: relative;
  min-width: 60px;
}

.bottom-tab-icon {
  font-size: 1.3rem;
  line-height: 1.2;
  margin-bottom: 2px;
  transition: transform 0.2s ease;
}

.bottom-tab-item:hover,
.bottom-tab-item:focus {
  color: #ffb703 !important;
}

.bottom-tab-item:hover .bottom-tab-icon {
  transform: translateY(-2px);
}

.bottom-tab-item.active {
  color: #ffb703 !important;
  font-weight: 700;
}

.bottom-tab-item.active::after {
  content: "";
  position: absolute;
  bottom: 0px;
  width: 18px;
  height: 3px;
  background: linear-gradient(90deg, #ff7b00, #ffb703);
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(255, 183, 3, 0.8);
}

.bottom-tab-highlight {
  background: linear-gradient(135deg, #ff7b00, #ea580c);
  color: #ffffff !important;
  padding: 6px 14px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(255, 123, 0, 0.45);
  transform: translateY(-2px);
}

.bottom-tab-highlight .bottom-tab-icon {
  font-size: 1.2rem;
  margin-bottom: 1px;
}

.bottom-tab-highlight:hover {
  background: linear-gradient(135deg, #ff9500, #f97316);
  color: #ffffff !important;
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(255, 123, 0, 0.65);
}

.bottom-tab-badge {
  position: absolute;
  top: -3px;
  right: 2px;
  background: #c026d3;
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 999px;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(192, 38, 211, 0.5);
}

/* Espacio inferior para no tapar contenido */
main {
  margin-bottom: 80px;
}


/* Mascot in Form Header */
.form-header-mascot {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 123, 0, 0.25);
  border-radius: 20px;
  padding: 16px 20px;
  position: relative;
  overflow: hidden;
}

.mascot-img-form {
  width: 110px;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(255, 123, 0, 0.5));
  animation: mascotFloat 3.5s ease-in-out infinite alternate;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.mascot-img-form:hover {
  transform: scale(1.08) rotate(3deg);
}

@keyframes mascotFloat {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  100% {
    transform: translateY(-7px) rotate(1.5deg);
  }
}

.mascot-badge {
  display: inline-block;
  background: rgba(255, 183, 3, 0.15);
  border: 1px solid rgba(255, 183, 3, 0.45);
  color: #ffb703;
  font-weight: 700;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 12px;
  border-radius: 999px;
}

@media (max-width: 576px) {
  .mascot-img-form {
    width: 90px;
    max-height: 120px;
  }
  .form-header-mascot {
    padding: 14px 12px;
  }
}


