/* ==========================================================================
   FARÁNDULA UPDS — SISTEMA DE DISEÑO
   Identidad: azul marino profundo, azul eléctrico, celeste/cian, blanco y
   gris muy claro. Títulos condensados en mayúsculas, doodles decorativos
   (estrellas, coronas, pinceladas, confeti) siempre sutiles.
   ========================================================================== */

:root {
  --navy-950: #051238;
  --navy-900: #071a4a;
  --navy-800: #0b2463;
  --navy-700: #12307d;
  --electric: #1f6bff;
  --cyan: #2ec5ff;
  --cyan-300: #8be0ff;
  --cyan-ink: #0a8fd6;       /* celeste para textos grandes sobre blanco */
  --cyan-ink-strong: #0a6fc2; /* celeste para textos chicos sobre blanco/gris */
  --white: #ffffff;
  --mist: #f3f6fb;
  --ink: #0b2463;
  --muted-light: #4a5a85;    /* texto secundario sobre fondos claros */
  --muted-dark: #c4d3f2;     /* texto secundario sobre azul marino */

  --font-display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-brush: 'Caveat Brush', 'Segoe Print', cursive;

  --radius-card: 1.5rem;
  --shadow-soft: 0 10px 30px -12px rgba(7, 26, 74, 0.35);
  --shadow-glow: 0 0 0 3px rgba(46, 197, 255, 0.35), 0 12px 32px -10px rgba(46, 197, 255, 0.55);
  --nav-height: 4.25rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Las anclas no quedan tapadas por la barra fija */
section[id] {
  scroll-margin-top: var(--nav-height);
}

/* ------------------------------------------------------------------ */
/* Tipografía                                                          */
/* ------------------------------------------------------------------ */
.font-display {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.92;
}

.font-brush {
  font-family: var(--font-brush);
  font-weight: 400;
  text-transform: none;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  line-height: 0.95;
  font-size: clamp(2.4rem, 7vw, 4.25rem);
}

.on-dark .section-title {
  color: var(--white);
  text-shadow: 0 3px 0 var(--navy-950), 0 0 24px rgba(46, 197, 255, 0.35);
}

.on-light .section-title {
  color: var(--navy-800);
  text-shadow: 0 3px 0 rgba(46, 197, 255, 0.35);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.9rem;
}

.on-dark .section-kicker { color: var(--cyan); }
.on-light .section-kicker { color: var(--cyan-ink-strong); }

.on-dark { color: var(--white); }
.on-dark .text-muted { color: var(--muted-dark); }
.on-light { color: var(--ink); }
.on-light .text-muted { color: var(--muted-light); }

/* ------------------------------------------------------------------ */
/* Título oficial: FARÁNDULA + cápsula UPDS                             */
/* ------------------------------------------------------------------ */
.brand-title {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  line-height: 0.85;
}

.brand-title__word {
  font-size: clamp(3.6rem, 13vw, 7.5rem);
  color: var(--white);
  letter-spacing: -0.01em;
  text-shadow:
    0 4px 0 var(--navy-950),
    0 0 2px var(--cyan),
    0 0 28px rgba(46, 197, 255, 0.45);
}

.brand-title__capsule {
  margin-top: 0.35rem;
  padding: 0.05em 0.55em 0.08em;
  font-size: clamp(3rem, 10.5vw, 5.75rem);
  color: var(--white);
  background: var(--navy-800);
  border: 0.06em solid var(--cyan);
  border-radius: 999px;
  box-shadow:
    0 0 0 0.04em var(--white),
    0 0 36px rgba(46, 197, 255, 0.55),
    0 10px 24px -6px rgba(5, 18, 56, 0.8);
  transform: rotate(-3deg);
}

.brand-title--light .brand-title__word {
  color: var(--navy-800);
  text-shadow: 0 4px 0 rgba(46, 197, 255, 0.45);
}

/* ------------------------------------------------------------------ */
/* Botones                                                             */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:focus-visible {
  outline: 3px solid var(--cyan-300);
  outline-offset: 3px;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--cyan);
  color: var(--navy-900);
  box-shadow: 0 8px 22px -8px rgba(46, 197, 255, 0.75);
}

.btn-primary:hover {
  background: var(--cyan-300);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(46, 197, 255, 0.9);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--cyan);
}

.on-dark .btn-secondary { color: var(--white); }
.on-light .btn-secondary { color: var(--navy-800); border-color: var(--cyan-ink); }

.btn-secondary:hover {
  background: rgba(46, 197, 255, 0.14);
  transform: translateY(-2px);
}

.btn-sm {
  min-height: 2.5rem;
  padding: 0.5rem 1.1rem;
  font-size: 1rem;
}

/* ------------------------------------------------------------------ */
/* Fondos de sección                                                   */
/* ------------------------------------------------------------------ */
.bg-navy {
  background-color: var(--navy-900);
}

.bg-navy-glow {
  background:
    radial-gradient(ellipse 70% 55% at 50% 35%, rgba(31, 107, 255, 0.45) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 85% 90%, rgba(46, 197, 255, 0.18) 0%, transparent 70%),
    var(--navy-900);
}

.bg-mist { background-color: var(--mist); }

/* Patrón sutil de estrellas, ondas y puntos (baja opacidad) */
.pattern-soft {
  position: relative;
  isolation: isolate;
}

.pattern-soft::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%232ec5ff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M20 30 l4 10 l10 4 l-10 4 l-4 10 l-4 -10 l-10 -4 l10 -4z' fill='%232ec5ff' stroke='none'/%3E%3Cpath d='M90 40 q15 -14 30 0 t30 0'/%3E%3Ccircle cx='120' cy='110' r='3' fill='%232ec5ff' stroke='none'/%3E%3Cpath d='M40 120 q10 -10 20 0'/%3E%3Ccircle cx='70' cy='80' r='2' fill='%232ec5ff' stroke='none'/%3E%3Cpath d='M135 140 l3 7 l7 3 l-7 3 l-3 7 l-3 -7 l-7 -3 l7 -3z' fill='%232ec5ff' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 160px 160px;
  opacity: 0.06;
}

.on-light.pattern-soft::before {
  opacity: 0.09;
  filter: hue-rotate(10deg) saturate(1.2);
}

/* Separador en onda entre secciones */
.wave-divider {
  display: block;
  width: 100%;
  height: clamp(36px, 6vw, 72px);
}

/* ------------------------------------------------------------------ */
/* Doodles decorativos (SVG del sprite)                                */
/* ------------------------------------------------------------------ */
.doodle {
  position: absolute;
  pointer-events: none;
  color: var(--cyan);
  opacity: 0.85;
}

.doodle-float { animation: doodle-float 7s ease-in-out infinite; }
.doodle-float-slow { animation: doodle-float 11s ease-in-out infinite; }
.doodle-twinkle { animation: doodle-twinkle 3.2s ease-in-out infinite; }

@keyframes doodle-float {
  0%, 100% { transform: translateY(0) rotate(var(--doodle-rot, 0deg)); }
  50% { transform: translateY(-12px) rotate(calc(var(--doodle-rot, 0deg) + 6deg)); }
}

@keyframes doodle-twinkle {
  0%, 100% { opacity: 0.85; transform: scale(1) rotate(var(--doodle-rot, 0deg)); }
  50% { opacity: 0.35; transform: scale(0.8) rotate(var(--doodle-rot, 0deg)); }
}

/* ------------------------------------------------------------------ */
/* Tarjetas                                                            */
/* ------------------------------------------------------------------ */
.card-soft {
  background: var(--white);
  border: 1px solid rgba(11, 36, 99, 0.08);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-soft:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 197, 255, 0.6);
  box-shadow: 0 18px 36px -14px rgba(7, 26, 74, 0.4);
}

.card-navy {
  background: linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 100%);
  border: 1.5px solid rgba(46, 197, 255, 0.35);
  border-radius: var(--radius-card);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.6);
}

.icon-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  font-size: 1.35rem;
  color: var(--navy-900);
  background: var(--cyan);
  box-shadow: 0 8px 18px -8px rgba(46, 197, 255, 0.9);
}

/* ------------------------------------------------------------------ */
/* Fotos tipo Polaroid                                                 */
/* ------------------------------------------------------------------ */
.polaroid {
  background: var(--white);
  padding: 0.6rem 0.6rem 2.4rem;
  border-radius: 0.35rem;
  box-shadow: 0 14px 30px -12px rgba(5, 18, 56, 0.55);
}

.polaroid__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: linear-gradient(140deg, var(--navy-700), var(--electric));
  border-radius: 0.15rem;
}

/* ------------------------------------------------------------------ */
/* Aparición progresiva al hacer scroll                               */
/* ------------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Sin JavaScript el contenido se ve igual */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .doodle-float, .doodle-float-slow, .doodle-twinkle { animation: none; }
  .btn, .card-soft { transition: none; }
}

/* ==========================================================================
   COMPONENTES
   ========================================================================== */

/* ---------------------------- Navbar ---------------------------- */
.nav-link {
  position: relative;
  color: var(--white);
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  border-radius: 3px;
  background: var(--cyan);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-link:hover { color: var(--cyan-300); }
.nav-link:hover::after { transform: scaleX(1); }

.mobile-link {
  display: block;
  padding: 0.65rem 0.25rem;
  color: var(--white);
  border-bottom: 1px solid rgba(46, 197, 255, 0.15);
}

.mobile-link:hover { color: var(--cyan); }

.nav-link:focus-visible,
.mobile-link:focus-visible,
#siteNav a:focus-visible,
#openQrBtn:focus-visible,
#navToggle:focus-visible {
  outline: 3px solid var(--cyan-300);
  outline-offset: 3px;
  border-radius: 0.5rem;
}

/* ---------------------------- Hero ---------------------------- */
.brand-crown {
  filter: drop-shadow(0 0 10px rgba(46, 197, 255, 0.7));
}

.hero-polaroid {
  transform: rotate(var(--tilt, 0deg));
  animation: polaroid-float 9s ease-in-out infinite;
}

.hero-polaroid .polaroid { padding-bottom: 0.9rem; }
.hero-polaroid .polaroid__img { overflow: hidden; }

@keyframes polaroid-float {
  0%, 100% { transform: rotate(var(--tilt, 0deg)) translateY(0); }
  50% { transform: rotate(calc(var(--tilt, 0deg) * 0.6)) translateY(-14px); }
}

/* ---------------------------- Recorrido ---------------------------- */
.route-map {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 3px solid var(--cyan);
  box-shadow: 0 0 0 6px rgba(46, 197, 255, 0.15), 0 30px 60px -24px rgba(0, 0, 0, 0.7);
  cursor: zoom-in;
}

.route-map img { transition: transform 0.6s ease; }
.route-map:hover img { transform: scale(1.02); }

.route-map:focus-visible {
  outline: 3px solid var(--cyan-300);
  outline-offset: 4px;
}

.route-map__hint {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(5, 18, 56, 0.85);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.route-steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Línea punteada que une los puntos del recorrido */
.route-steps::before {
  content: '';
  position: absolute;
  left: 1.75rem;
  top: 2rem;
  bottom: 2rem;
  border-left: 3px dotted rgba(46, 197, 255, 0.6);
}

.route-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(46, 197, 255, 0.25);
}

.route-step__icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  font-size: 1.1rem;
  background: var(--cyan);
  color: var(--navy-900);
}

.route-step__icon--check {
  background: var(--white);
  color: var(--electric);
}

.route-step__icon--finish {
  background: var(--electric);
  color: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
}

.route-step__label {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  color: var(--cyan);
}

.route-step__place {
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.3;
}

/* ---------------------------- Mural ---------------------------- */
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy-800);
  background: var(--white);
  border: 2px solid rgba(11, 36, 99, 0.12);
  transition: all 0.2s ease;
}

.filter-chip:hover { border-color: var(--cyan-ink); }

.filter-chip.active {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--white);
}

.filter-chip.active i { color: var(--cyan); }

.filter-chip--ghost {
  background: transparent;
  border-style: dashed;
}

.filter-chip:focus-visible {
  outline: 3px solid var(--cyan-ink);
  outline-offset: 2px;
}

/* Masonry con columnas: cada foto conserva su altura */
.mural-masonry {
  columns: 1;
  column-gap: 1.75rem;
}

@media (min-width: 560px) { .mural-masonry { columns: 2; } }
@media (min-width: 900px) { .mural-masonry { columns: 3; } }

.mural-card {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin-bottom: 1.75rem;
  padding: 0.65rem 0.65rem 0.85rem;
  background: var(--white);
  border: 2px solid transparent;
  border-radius: 0.4rem;
  box-shadow: 0 10px 24px -14px rgba(5, 18, 56, 0.55);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.mural-card:hover,
.mural-card:focus-within {
  transform: rotate(0deg) scale(1.03);
  border-color: var(--cyan);
  box-shadow: 0 22px 40px -18px rgba(5, 18, 56, 0.6);
  z-index: 2;
  position: relative;
}

.mural-card--rank-1 { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(46, 197, 255, 0.25), 0 16px 32px -14px rgba(5, 18, 56, 0.6); }

.mural-card__photo {
  position: relative;
  overflow: hidden;
  border-radius: 0.2rem;
  background: var(--navy-900);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.mural-card__photo img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 160px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mural-card:hover .mural-card__photo img { transform: scale(1.04); }

.mural-card__photo:focus-visible {
  outline: 3px solid var(--cyan-ink);
  outline-offset: 2px;
}

.mural-card__caption { padding: 0.75rem 0.25rem 0; }

.mural-card__name {
  font-size: 1.75rem;
  line-height: 1;
  color: var(--navy-800);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mural-card__msg {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-style: italic;
  color: var(--muted-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mural-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(11, 36, 99, 0.15);
}

.mural-card__time {
  font-size: 0.75rem;
  color: var(--muted-light);
}

.turma-tag {
  display: inline-flex;
  max-width: 100%;
  margin-top: 0.35rem;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  background: rgba(46, 197, 255, 0.15);
  color: var(--navy-800);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.turma-tag span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-chip {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(5, 18, 56, 0.85);
  color: var(--white);
  backdrop-filter: blur(4px);
}

#lightboxBadge.rank-chip { position: static; }

.rank-chip--1 { background: var(--cyan); color: var(--navy-900); }
.rank-chip--2 { background: var(--white); color: var(--navy-800); }
.rank-chip--3 { background: var(--electric); color: var(--white); }

/* Botones de voto y compartir */
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-weight: 800;
  color: var(--navy-800);
  background: rgba(46, 197, 255, 0.14);
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.like-btn i { color: var(--electric); }
.like-btn:hover { border-color: var(--cyan); }

.like-btn.liked {
  background: var(--navy-800);
  color: var(--white);
}

.like-btn.liked i { color: var(--cyan); }

.share-btn,
.btn-ghost-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  border-radius: 999px;
  color: var(--navy-800);
  border: 2px solid rgba(11, 36, 99, 0.12);
  transition: all 0.2s ease;
}

.btn-ghost-sm {
  padding: 0.35rem 0.9rem;
  font-weight: 700;
  font-size: 0.875rem;
}

.share-btn:hover,
.btn-ghost-sm:hover { border-color: var(--cyan-ink); color: var(--cyan-ink); }

.like-btn:focus-visible,
.share-btn:focus-visible,
.btn-ghost-sm:focus-visible {
  outline: 3px solid var(--cyan-ink);
  outline-offset: 2px;
}

/* Corazón gigante del doble toque */
.heart-burst-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 3;
}

.heart-burst-icon {
  font-size: 5.5rem;
  color: var(--white);
  opacity: 0;
  transform: scale(0.3);
  filter: drop-shadow(0 0 18px rgba(46, 197, 255, 0.95));
}

.heart-burst-icon.burst-animate {
  animation: heart-burst 0.9s ease-out forwards;
}

@keyframes heart-burst {
  0% { opacity: 0; transform: scale(0.3); }
  25% { opacity: 1; transform: scale(1.15); }
  45% { transform: scale(0.95); }
  70% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.3); }
}

/* Lightbox */
.lightbox-polaroid { padding: 0.9rem; }

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  font-weight: 800;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(46, 197, 255, 0.4);
  transition: background-color 0.2s ease;
}

.modal-close:hover { background: rgba(46, 197, 255, 0.25); }

.modal-close--light {
  color: var(--navy-800);
  background: var(--mist);
  border-color: rgba(11, 36, 99, 0.12);
}

.modal-close:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

/* ---------------------------- Uploader ---------------------------- */
#uploaderCard { scroll-margin-top: calc(var(--nav-height) + 1rem); }

.dropzone {
  display: block;
  text-align: center;
  padding: 1.75rem 1.25rem;
  border: 2.5px dashed rgba(46, 197, 255, 0.55);
  border-radius: 1.25rem;
  background: rgba(46, 197, 255, 0.06);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.dropzone:hover,
.dropzone.dragover {
  background: rgba(46, 197, 255, 0.14);
  border-color: var(--cyan);
}

.dropzone.dragover { transform: scale(1.01); }

.dropzone:focus-within {
  outline: 3px solid var(--cyan-300);
  outline-offset: 3px;
}

label.btn:focus-within {
  outline: 3px solid var(--cyan-300);
  outline-offset: 3px;
}

.field-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.field {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.95rem;
  border-radius: 0.9rem;
  font-size: 1rem;              /* 16px evita el zoom automático en iOS */
  color: var(--white);
  background: rgba(5, 18, 56, 0.6);
  border: 1.5px solid rgba(46, 197, 255, 0.3);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field::placeholder { color: rgba(196, 211, 242, 0.55); }

.field:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(46, 197, 255, 0.3);
}

.upload-progress {
  background: linear-gradient(90deg, var(--electric), var(--cyan), var(--cyan-300));
  background-size: 200% 100%;
  animation: progress-shine 1.4s linear infinite;
}

@keyframes progress-shine {
  from { background-position: 200% 0; }
  to { background-position: 0 0; }
}

/* ---------------------------- Orden de desfile ---------------------------- */
.group-search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.1rem;
  min-height: 3.25rem;
  border-radius: 999px;
  border: 2px solid rgba(11, 36, 99, 0.14);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  color: var(--muted-light);
}

.group-search:focus-within {
  border-color: var(--cyan-ink);
  box-shadow: 0 0 0 3px rgba(10, 143, 214, 0.25);
}

.group-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 1rem;
  color: var(--ink);
}

.groups-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  list-style: none;
  padding: 0;
}

@media (min-width: 640px) { .groups-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .groups-list { grid-template-columns: repeat(3, 1fr); } }

.group-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.2rem;
  border-radius: 1.25rem;
  background: var(--mist);
  border: 1.5px solid rgba(11, 36, 99, 0.08);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

/* El buscador oculta tarjetas con el atributo hidden */
.group-card[hidden] { display: none; }

.group-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.group-card__order {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--navy-800);
  color: var(--cyan);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  box-shadow: 0 6px 14px -8px rgba(7, 26, 74, 0.8);
}

.group-card__body { min-width: 0; }

.group-card__meta {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  color: var(--cyan-ink-strong);
}

.group-card__theme {
  margin-top: 0.15rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: 1.45rem;
  line-height: 1.05;
  color: var(--navy-800);
  overflow-wrap: anywhere;
}

.group-card__tutors {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted-light);
}

/* ---------------------------- Encuesta ---------------------------- */
.survey-card { display: flex; flex-direction: column; gap: 2.25rem; }
.survey-card:hover { transform: none; }

.survey-q { border: 0; margin: 0; padding: 0; min-width: 0; }

.survey-q__title {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--navy-800);
}

.survey-q__num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  margin-top: -0.1rem;
  border-radius: 999px;
  background: var(--navy-800);
  color: var(--cyan);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
}

.survey-q__hint {
  margin: -0.4rem 0 1rem;
  font-size: 0.875rem;
  color: var(--muted-light);
}

/* Opciones tipo píldora (radio real oculto + span visible) */
.choice-grid { display: grid; gap: 0.6rem; }
.choice-grid--2 { grid-template-columns: 1fr; }
.choice-grid--5 { grid-template-columns: 1fr; }

@media (min-width: 560px) {
  .choice-grid--2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 720px) {
  .choice-grid--5 { grid-template-columns: repeat(5, 1fr); gap: 0.5rem; }
  .choice-grid--5 .choice span { padding: 0.55rem 0.4rem; font-size: 0.9rem; }
}

.choice { position: relative; display: block; cursor: pointer; }

.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.6rem 0.9rem;
  border-radius: 1rem;
  border: 2px solid rgba(11, 36, 99, 0.14);
  background: var(--white);
  color: var(--navy-800);
  font-weight: 700;
  text-align: center;
  transition: all 0.15s ease;
}

.choice:hover span { border-color: var(--cyan-ink); }

.choice input:checked + span {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--white);
  box-shadow: 0 0 0 3px rgba(46, 197, 255, 0.35);
}

.choice input:focus-visible + span,
.rate-dot input:focus-visible + span {
  outline: 3px solid var(--cyan-ink);
  outline-offset: 2px;
}

/* Matriz 1 a 5 */
.rate-matrix { display: flex; flex-direction: column; gap: 0.75rem; }

.rate-row {
  display: grid;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid rgba(11, 36, 99, 0.1);
  border-radius: 1rem;
  background: var(--mist);
}

.rate-row__label {
  font-weight: 700;
  color: var(--navy-800);
}

.rate-row__dots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

@media (min-width: 720px) {
  .rate-row { grid-template-columns: 1fr auto; align-items: center; column-gap: 1rem; }
  .rate-row__dots { grid-template-columns: repeat(5, 2.75rem); }
}

.rate-dot { position: relative; cursor: pointer; }

.rate-dot span[aria-hidden] {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  border-radius: 999px;
  border: 2px solid rgba(11, 36, 99, 0.18);
  background: var(--white);
  color: var(--navy-800);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  transition: all 0.15s ease;
}

.rate-dot:hover span[aria-hidden] { border-color: var(--cyan-ink); }

.rate-dot input:checked + span {
  background: var(--cyan);
  border-color: var(--navy-800);
  color: var(--navy-900);
}

/* Pregunta sin responder */
.is-missing .survey-q__title,
.is-missing.rate-row .rate-row__label { color: #b42318; }
.is-missing.rate-row { border-color: #b42318; }
.is-missing .choice span { border-color: rgba(180, 35, 24, 0.45); }

.survey-text {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 1rem;
  border: 2px solid rgba(11, 36, 99, 0.14);
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  resize: vertical;
}

.survey-text:focus {
  outline: none;
  border-color: var(--cyan-ink);
  box-shadow: 0 0 0 3px rgba(10, 143, 214, 0.25);
}

.survey-error {
  padding: 0.8rem 1rem;
  border-radius: 0.9rem;
  background: #fef3f2;
  color: #b42318;
  font-weight: 700;
  font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
  .hero-polaroid, .upload-progress { animation: none; }
  .mural-card, .mural-card__photo img, .route-map img, .group-card { transition: none; }
}
