:root {
  /* Paleta de marca */
  --brand-primary: #ff5555;      /* coral - acciones principales */
  --brand-primary-dark: #e13f3f;
  --brand-primary-tint: #ffe4e4;
  --brand-teal: #43b5c0;         /* teal - acentos secundarios */
  --brand-teal-dark: #2f8b93;
  --brand-teal-tint: #e2f6f8;
  --brand-green: #76b153;        /* verde - éxito / positivo */
  --brand-green-light: #8ded54;  /* verde brillante - resaltados */
  --brand-green-tint: #eef9e0;
  --brand-pink: #ff7e7e;
  --brand-cyan: #94ebf5;
  --ink: #000000;
  --paper: #ffffff;

  --bg: #f4f6fb;
  --card: #eef6f7;
  --card-dark: #e0eff1;
  --text: #1a1d29;
  --muted: #6b7280;
  --radius: 16px;
  --shadow: 0 2px 10px rgba(20, 30, 60, 0.08);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: contain;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

/* ---------- Offline banner ---------- */
.offline-banner {
  display: none;
  background: #fff3cd;
  color: #7a5b00;
  font-size: 13px;
  text-align: center;
  padding: 8px 12px;
  font-weight: 600;
}
.offline-banner.show { display: block; }

/* ---------- Botón flotante "bajá para ver más" ---------- */
.scroll-hint {
  position: fixed;
  left: 50%;
  bottom: 28%;
  transform: translateX(-50%) translateY(10px);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-teal-dark));
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(47,139,147,0.35);
  opacity: 0;
  pointer-events: none;
  z-index: 60;
  cursor: pointer;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.scroll-hint.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  animation: scrollHintBounce 1.6s ease-in-out infinite;
}
@keyframes scrollHintBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-hint.show { animation: none; }
}



/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px 16px 26px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -12px;
  background-image: url('Fondo.jpeg');
  background-size: cover;
  background-position: top center;
  animation: heroZoom 16s ease-in-out infinite alternate;
  will-change: transform;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0.4) 100%);
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.09); }
}
.hero-title {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #ffffff;
  font-family: 'Slackey', cursive;
  font-weight: 400;
  font-size: 29.5px;
  line-height: 1.3;
  letter-spacing: 0.2px;
  text-shadow:
    0 3px 7px rgba(194, 166, 224, 0.65),
    0 6px 12px rgba(156, 204, 222, 0.55),
    0 9px 16px rgba(112, 124, 145, 0.45);
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 6px;
  animation: floatTitle 3.8s ease-in-out infinite;
}
.hero-title #typedText {
  white-space: pre-line;
}
@keyframes floatTitle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.type-cursor {
  display: inline-block;
  margin-left: 2px;
  font-weight: 300;
  animation: blinkCursor 0.9s step-end infinite;
}
.type-cursor.hidden {
  display: none;
}
@keyframes blinkCursor {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.hero-badge {
  position: relative;
  z-index: 1;
  margin: -18px auto 0;
  background: var(--brand-primary);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(255,85,85,0.45);
  text-align: center;
  max-width: 85%;
}

/* ---------- Ranking list ---------- */
.ranking {
  padding: 26px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rank-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border-radius: 14px;
  padding: 10px 14px;
  min-height: 52px;
  cursor: pointer;
  transition: background 0.25s ease;
}
.rank-row:active { background: var(--card-dark); }
.rank-badge {
  flex: 0 0 26px;
  font-weight: 800;
  font-size: 29px;
  color: var(--brand-teal-dark);
}
.rank-name {
  flex: 1;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
  transition: opacity 0.18s ease;
}
.rank-pts {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  transition: opacity 0.18s ease;
}
.rank-detail-btn {
  flex: 0 0 auto;
  border: 1px solid var(--brand-primary);
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--brand-primary-tint);
  color: var(--brand-primary-dark);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.rank-detail-btn:active {
  background: var(--brand-primary);
  color: #fff;
  transform: scale(0.96);
}
.rank-row.pulse { animation: pulseRow 0.9s ease; }
@keyframes pulseRow {
  0% { background: var(--brand-green-light); }
  100% { background: var(--card); }
}
.rank-row.fade-swap .rank-name,
.rank-row.fade-swap .rank-pts { opacity: 0; }

/* ---------- Buttons ---------- */
.btn-primary {
  display: block;
  width: calc(100% - 32px);
  margin: 14px 16px 20px;
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(255,85,85,0.35);
}
.btn-primary:active { background: var(--brand-primary-dark); }
.btn-secondary {
  display: inline-block;
  background: #eef1f8;
  color: var(--brand-primary-dark);
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.link-muted {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  text-decoration: underline;
  margin: 4px 0 18px;
  cursor: pointer;
}

/* ---------- Footer ---------- */
.footer {
  margin-top: auto;
  padding: 18px 16px calc(20px + var(--safe-bottom));
  background: #f0f2f8;
  border-top: 1px solid #e2e5ee;
  text-align: center;
}
.footer p { font-size: 12px; color: var(--muted); margin: 0 0 10px; }
.subscribe-row {
  display: flex;
  gap: 8px;
}
.subscribe-row input {
  flex: 1;
  border: 1px solid #d5d9e5;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  background: #fff;
}
.subscribe-row button {
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0 16px;
  font-weight: 700;
  font-size: 13px;
}
.subscribe-msg { font-size: 12px; margin-top: 8px; min-height: 14px; }
.subscribe-msg.ok { color: var(--brand-green); }
.subscribe-msg.err { color: #c0392b; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,14,30,0.55);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
}
.modal-backdrop.open { display: flex; }
.modal-sheet {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 20px 20px calc(24px + var(--safe-bottom));
  max-height: 82vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(.2,.8,.2,1);
}
.modal-backdrop.open .modal-sheet { transform: translateY(0); }
.modal-handle {
  width: 40px; height: 4px; background: #dfe3ee; border-radius: 4px;
  margin: 0 auto 14px;
}
.modal-title { font-size: 17px; font-weight: 800; margin: 0 0 4px; }
.modal-total {
  font-size: 34px;
  font-weight: 800;
  color: var(--brand-primary);
  margin: 6px 0 16px;
}
.modal-total span { font-size: 14px; color: var(--muted); font-weight: 600; }
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eef0f6;
  font-size: 13px;
}
.detail-row:last-child { border-bottom: none; }
.detail-disc { font-weight: 700; }
.detail-cat { color: var(--muted); font-size: 11px; display: block; }
.detail-puesto {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--brand-teal-tint);
  color: var(--brand-teal-dark);
}
.detail-pts { font-weight: 800; }
.modal-close {
  display: block;
  margin: 18px auto 0;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.empty-state { text-align: center; color: var(--muted); font-size: 13px; padding: 20px 0; }

/* ---------- Gallery view ---------- */
.gallery-view {
  display: none;
  flex-direction: column;
  flex: 1;
}
.gallery-view.active { display: flex; }
.gallery-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid #eef0f6;
}
.back-btn {
  background: #eef1f8;
  border: none;
  border-radius: 50%;
  width: 36px; height: 36px;
  font-size: 16px;
  color: var(--brand-primary-dark);
  font-weight: 800;
}
.gallery-header h2 { font-size: 16px; margin: 0; }

.carousel {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 16px 8px;
}
.carousel-track-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 18px;
  overflow: hidden;
  background: #eceef4;
  box-shadow: var(--shadow);
  touch-action: pan-y;
}
.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
}
.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
}
.carousel-slide img {
  width: 100%; height: 100%;
  object-fit: contain;
  background: #0b0f16;
  display: block;
  pointer-events: none;
  user-select: none;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 800;
  color: var(--brand-teal-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.carousel-arrow.prev { left: 8px; }
.carousel-arrow.next { right: 8px; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 12px 0 4px;
}
.carousel-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: #d5d9e5;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dots span.active { background: var(--brand-primary); transform: scale(1.3); }

.download-link {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-teal-dark);
  margin: 10px 0 4px;
  cursor: pointer;
}

.reaction-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 12px 0 4px;
}
.reaction-btn {
  background: #fff;
  border: 1px solid #e2e5ee;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.reaction-btn:active { transform: scale(0.9); }
.reaction-btn.selected { border-color: var(--brand-primary); background: var(--brand-primary-tint); }
.reaction-btn[disabled] { opacity: 0.55; }

.reaction-total-label {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 14px 0 6px;
}
.reaction-totals {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-bottom: 20px;
}
.reaction-total-pill {
  background: var(--card);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Points table view ---------- */
.points-table-wrap { padding: 16px; }
.points-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.points-table th, .points-table td {
  border: 1px solid #e2e5ee;
  padding: 8px 6px;
  text-align: center;
  font-size: 20px;
}
.points-table th { background: var(--card); font-weight: 800; }

/* ---------- Credits footer ---------- */
.credits-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -20%, rgba(67,181,192,0.2), transparent 42%),
    linear-gradient(135deg, #ffffff 0%, #f2fbfb 52%, #fff7f5 100%);
  padding: 28px 20px calc(30px + var(--safe-bottom));
  text-align: center;
  border-top: 1px solid rgba(67,181,192,0.22);
  box-shadow: 0 -10px 28px rgba(54,89,104,0.08);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.8,.2,1);
}
.credits-footer.in-view { opacity: 1; transform: translateY(0); }
.credits-footer::before {
  content: "";
  position: absolute;
  top: 0; left: -50%;
  width: 200%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-teal), var(--brand-primary), var(--brand-green-light), transparent);
  animation: creditsSweep 5s linear infinite;
}
@keyframes creditsSweep {
  0% { transform: translateX(-25%); }
  100% { transform: translateX(25%); }
}
.credits-badge {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  animation: creditsPulse 2.4s ease-out infinite;
  box-shadow: 0 8px 20px rgba(47,139,147,0.2);
}
.credits-logo {
  width: 62px;
  height: 62px;
  display: block;
  object-fit: contain;
  border-radius: 50%;
}
@keyframes creditsPulse {
  0% { box-shadow: 0 0 0 0 rgba(67,181,192,0.55); }
  70% { box-shadow: 0 0 0 14px rgba(67,181,192,0); }
  100% { box-shadow: 0 0 0 0 rgba(67,181,192,0); }
}
.credits-text {
  color: #3c5263;
  font-size: 12.5px;
  line-height: 1.6;
  margin: 0 0 10px;
}
.credits-text strong {
  display: inline-block;
  margin-top: 2px;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 14px;
  background: linear-gradient(90deg, var(--brand-teal), var(--brand-green-light), var(--brand-primary), var(--brand-teal));
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: creditsGradient 6s linear infinite;
}
@keyframes creditsGradient {
  0% { background-position: 0% center; }
  100% { background-position: 300% center; }
}
.credits-author {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #718093;
  font-weight: 700;
}
.credits-author span { color: var(--brand-primary); font-weight: 800; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a1d29;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 100;
  max-width: 90%;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   ADMIN THEME
   ============================================================ */
body.admin { background: #0b0d12; }
.admin .app { background: transparent; box-shadow: none; }
.admin-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.admin-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 20px;
  padding: 24px 22px 28px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.admin-card h1 {
  text-align: center;
  font-size: 20px;
  margin: 0 0 20px;
}
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}
.field select, .field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e2e5ee;
  background: var(--card);
  font-size: 14px;
  color: var(--text);
  appearance: none;
}
.field-points-hint {
  font-size: 11px;
  color: var(--brand-teal-dark);
  margin-top: 4px;
  font-weight: 700;
}
.btn-block {
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  margin-top: 4px;
}
.btn-add { background: var(--card); color: var(--text); }
.btn-notify { background: var(--ink); color: var(--paper); }
.btn-photo { background: var(--brand-teal-tint); color: var(--brand-teal-dark); margin-top: 10px; }
.btn-danger-outline { background: #fff; color: #c0392b; border: 1px solid #f3caca; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 8px 0 4px;
}
.photo-thumb {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--card);
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb button {
  position: absolute;
  top: 2px; right: 2px;
  width: 20px; height: 20px;
  border: none;
  border-radius: 50%;
  background: rgba(192,57,43,0.9);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}
hr.sep { border: none; border-top: 1px solid #eef0f6; margin: 18px 0; }
.admin-log { font-size: 12px; color: var(--muted); margin-top: 14px; max-height: 140px; overflow-y: auto; }
.admin-log div { padding: 4px 0; border-bottom: 1px dashed #eef0f6; }
.login-card input { margin-bottom: 12px; }
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.admin-topbar h1 { margin: 0; font-size: 18px; }
.logout-link { font-size: 12px; color: var(--muted); font-weight: 700; }

/* ============================================================
   POLISHED ADMIN AND GALLERY SURFACES
   ============================================================ */
body.admin {
  background:
    radial-gradient(circle at 15% 10%, rgba(67,181,192,0.14), transparent 30%),
    radial-gradient(circle at 85% 90%, rgba(255,85,85,0.12), transparent 32%),
    #080a0f;
}
.admin-wrap {
  padding: 32px 16px;
}
.admin-card {
  max-width: 430px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  background: rgba(250,251,253,0.98);
  box-shadow: 0 24px 70px rgba(0,0,0,0.48), 0 0 0 1px rgba(67,181,192,0.06);
}
.admin-card h1 {
  color: #10131b;
  letter-spacing: -0.02em;
}
.admin-topbar {
  padding-bottom: 16px;
  border-bottom: 1px solid #e7eaf0;
}
.admin-topbar h1::before {
  content: "CONTROL CENTER";
  display: block;
  margin-bottom: 5px;
  color: var(--brand-teal-dark);
  font-size: 9px;
  letter-spacing: 0.16em;
  font-weight: 800;
}
.logout-link {
  padding: 8px 11px;
  border: 1px solid #e1e5ec;
  border-radius: 999px;
  background: #fff;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.logout-link:hover { color: var(--brand-primary-dark); border-color: var(--brand-primary); }
.field label {
  color: #4e586b;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 10px;
}
.field select, .field input {
  border-color: #dfe4ec;
  background: #f7f9fb;
  box-shadow: inset 0 1px 2px rgba(25,35,55,0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field select:focus, .field input:focus {
  outline: none;
  border-color: var(--brand-teal);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(67,181,192,0.16);
}
.btn-block {
  min-height: 46px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn-block:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}
.btn-block:active { transform: translateY(0); }
.btn-add {
  background: #e8f5f5;
  color: #236f76;
  border: 1px solid #c9e8ea;
}
.btn-notify {
  background: linear-gradient(135deg, #161b27, #293447);
  box-shadow: 0 8px 18px rgba(18,25,40,0.18);
}
.btn-photo {
  background: linear-gradient(135deg, #e4f7f8, #eef7ee);
  color: #267981;
  border: 1px solid #c9e9e4;
}
.admin-log {
  color: #647087;
  padding: 2px 0;
}
.photo-grid {
  gap: 8px;
  padding: 8px;
  border: 1px dashed #d8e0e8;
  border-radius: 14px;
  background: #f7f9fb;
}
.photo-thumb {
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(22,35,55,0.12);
}
.photo-thumb button {
  width: 23px;
  height: 23px;
  background: rgba(168,44,42,0.92);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#view-general,
#view-docentes {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(67,181,192,0.14), transparent 32%),
    radial-gradient(circle at 90% 75%, rgba(255,85,85,0.08), transparent 34%),
    linear-gradient(155deg, #f8fbfc 0%, #eef4f6 58%, #f7f9fb 100%);
}
#view-general::before,
#view-docentes::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image: linear-gradient(rgba(45,108,120,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(45,108,120,0.045) 1px, transparent 1px);
  background-size: 28px 28px;
}
#view-general > *,
#view-docentes > * { position: relative; z-index: 1; }
#view-general .gallery-header,
#view-docentes .gallery-header {
  padding: 18px 16px;
  border-bottom: 1px solid rgba(44,72,86,0.12);
  background: rgba(255,255,255,0.72);
}
#view-general .gallery-header h2,
#view-docentes .gallery-header h2 {
  color: #18212d;
  font-size: 18px;
  letter-spacing: 0.01em;
}
#view-general .gallery-header h2::after,
#view-docentes .gallery-header h2::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-top: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-teal), var(--brand-primary));
}
#view-general .back-btn,
#view-docentes .back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 0 0 3px;
  background: var(--brand-teal-dark);
  color: #fff;
  border: 1px solid var(--brand-teal-dark);
  box-shadow: 0 4px 10px rgba(47,139,147,0.25);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
#view-general .back-btn:hover,
#view-docentes .back-btn:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  box-shadow: 0 5px 12px rgba(255,85,85,0.25);
  transform: translateX(-2px);
}
#view-general .carousel,
#view-docentes .carousel {
  padding-top: 24px;
}
#view-general .carousel-track-wrap,
#view-docentes .carousel-track-wrap {
  border: 1px solid #dbe6e9;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(35,63,76,0.16), 0 0 0 6px rgba(255,255,255,0.65);
}
#view-general .carousel-slide img,
#view-docentes .carousel-slide img { background: #f3f7f8; }
#view-general .carousel-arrow,
#view-docentes .carousel-arrow {
  color: var(--brand-teal-dark);
  background: #fff;
  border: 2px solid var(--brand-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 3px;
  line-height: 1;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(35,63,76,0.22);
  transition: background 0.2s ease, transform 0.2s ease;
}
#view-general .carousel-arrow:hover,
#view-docentes .carousel-arrow:hover {
  background: var(--brand-primary);
}
#view-general .download-link,
#view-docentes .download-link {
  display: block;
  width: fit-content;
  margin: 10px auto 4px;
  color: #fff;
  padding: 9px 14px;
  border: 1px solid var(--brand-teal-dark);
  border-radius: 999px;
  background: var(--brand-teal-dark);
  box-shadow: 0 5px 12px rgba(47,139,147,0.2);
  transition: background 0.2s ease, color 0.2s ease;
}
#view-general > .link-muted,
#view-docentes > .link-muted {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: auto auto 22px;
  padding: 0 18px;
  border: 2px solid var(--brand-teal);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(47,139,147,0.16);
  color: var(--brand-teal-dark);
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
#view-general > .link-muted:hover,
#view-docentes > .link-muted:hover {
  background: var(--brand-teal-dark);
  color: #fff;
  box-shadow: 0 8px 18px rgba(47,139,147,0.26);
  transform: translateY(-2px);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 5px;
  font-size: 15px;
  line-height: 1;
  transform: translateY(-1px);
}
#view-general > .link-muted:hover .link-arrow,
#view-docentes > .link-muted:hover .link-arrow {
  transform: translate(2px, -1px);
}
#view-general .download-link:hover,
#view-docentes .download-link:hover {
  color: #fff;
  background: var(--brand-teal-dark);
}
#view-general .reaction-btn,
#view-docentes .reaction-btn {
  border: 2px solid #c7dfe2;
  background: #fff;
  box-shadow: 0 4px 10px rgba(35,63,76,0.1);
}
#view-general .reaction-btn.selected,
#view-docentes .reaction-btn.selected {
  border-color: var(--brand-primary);
  background: var(--brand-primary-tint);
  box-shadow: 0 4px 12px rgba(255,85,85,0.2);
}
#view-general .reaction-total-label,
#view-docentes .reaction-total-label {
  color: #6b7280;
}
#view-general .reaction-total-pill,
#view-docentes .reaction-total-pill {
  color: #263342;
  background: rgba(255,255,255,0.82);
  border: 1px solid #dbe6e9;
}

@media (max-width: 360px) {
  .admin-card { padding: 20px 16px 24px; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Admin photo carousel and preview ---------- */
.photo-grid {
  display: block;
  padding: 0;
  margin: 8px 0 4px;
  overflow: hidden;
  border: 1px dashed #d8e0e8;
  border-radius: 14px;
  background: #f7f9fb;
}
.admin-photo-carousel { padding: 10px; }
.admin-photo-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #e9eff3;
}
.admin-photo-track {
  display: flex;
  transition: transform 0.32s cubic-bezier(.2,.8,.2,1);
}
.admin-photo-slide {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 16 / 9;
  min-height: 150px;
  background: #e9eff3;
}
.admin-photo-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  cursor: zoom-in;
}
.admin-photo-delete {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #b63135;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 2px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,0.35);
}
.admin-photo-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0 0 3px;
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 50%;
  background: rgba(23,34,45,0.78);
  color: #fff;
  font-size: 25px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}
.admin-photo-arrow.prev { left: 10px; }
.admin-photo-arrow.next { right: 10px; }
.admin-photo-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 2px 0;
}
.admin-photo-counter {
  flex: 0 0 auto;
  min-width: 42px;
  color: #3c5263;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}
.admin-photo-range {
  flex: 1;
  min-width: 0;
  accent-color: var(--brand-teal-dark);
  cursor: pointer;
}
.admin-photo-empty {
  padding: 18px 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.admin-preview {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 58px 18px 24px;
  background: rgba(5,9,15,0.88);
}
.admin-preview.open { display: flex; }
.admin-preview img {
  display: block;
  max-width: min(94vw, 900px);
  max-height: calc(100vh - 90px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 18px 55px rgba(0,0,0,0.5);
}
.admin-preview-close {
  position: fixed;
  z-index: 1002;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0 0 3px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(0,0,0,0.4);
}

/* ---------- Top 10 fotos con más reacciones ---------- */
.top-photos {
  padding: 8px 16px 26px;
}
.top-photos-title {
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--text);
}
.top-photos-hint {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 18px;
  background: var(--brand-teal-tint);
  border: 1px solid rgba(67,181,192,0.25);
  border-radius: 14px;
  padding: 12px 14px;
}
.top-photos-hint strong { color: var(--brand-teal-dark); }

.top-photos-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.top-photo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 16px;
  padding: 10px;
  overflow: hidden;
}
.top-photo-main {
  display: flex;
  align-items: center;
  gap: 10px;
}
.top-photo-rank {
  flex: 0 0 30px;
  text-align: center;
  font-weight: 800;
  font-size: 15px;
  color: var(--brand-teal-dark);
}
.top-photo-thumb {
  flex: 0 0 62px;
  width: 62px; height: 62px;
  border-radius: 12px;
  overflow: hidden;
  background: #dfe6ee;
}
.top-photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.top-photo-info { flex: 1; min-width: 0; }
.top-photo-count {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}
.top-photo-count span { font-weight: 600; color: var(--muted); font-size: 11px; }
.top-photo-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.top-photo-actions button {
  flex: 1 1 50%;
  border: none;
  border-radius: 10px;
  padding: 9px 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.top-photo-btn-download {
  background: var(--brand-teal-tint);
  color: var(--brand-teal-dark);
}
.top-photo-btn-view {
  background: var(--brand-primary);
  color: #fff;
}

/* 1er puesto — efecto llamativo */
.top-photo-card.rank-1 {
  border: 2px solid transparent;
  background-image:
    linear-gradient(135deg, #fff9e6, #fff),
    linear-gradient(120deg, #ffd35c, #ff9f1c, #ffd35c, #ff5555, #ffd35c);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-size: 100% 100%, 300% 300%;
  animation: rank1BorderShift 4s linear infinite;
  box-shadow: 0 10px 26px rgba(255, 175, 28, 0.35);
}
@keyframes rank1BorderShift {
  0% { background-position: 0% 0%, 0% 50%; }
  100% { background-position: 0% 0%, 100% 50%; }
}
.top-photo-card.rank-1 .top-photo-rank { color: #b8720a; }
.top-photo-card.rank-1::before {
  content: "👑";
  position: absolute;
  top: -6px;
  left: 10px;
  font-size: 20px;
  animation: rank1CrownFloat 1.8s ease-in-out infinite;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,0.25));
}
@keyframes rank1CrownFloat {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-4px) rotate(6deg); }
}
.top-photo-card.rank-1 .top-photo-thumb { box-shadow: 0 0 0 3px #ffd35c; }

/* 2do puesto — efecto más discreto, no le compite al primero */
.top-photo-card.rank-2 {
  border: 1.5px solid #c9d2de;
  background: linear-gradient(135deg, #f6f8fb, #eef1f6);
  box-shadow: 0 4px 14px rgba(120,140,160,0.18);
}
.top-photo-card.rank-2 .top-photo-rank { color: #7c8798; }
.top-photo-card.rank-2 .top-photo-thumb { box-shadow: 0 0 0 2px #c9d2de; }

@media (prefers-reduced-motion: reduce) {
  .top-photo-card.rank-1, .top-photo-card.rank-1::before { animation: none; }
}

/* ---------- Visor de foto a pantalla completa (público) ---------- */
.photo-preview {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 58px 18px 24px;
  background: rgba(5,9,15,0.9);
}
.photo-preview.open { display: flex; }
.photo-preview img {
  display: block;
  max-width: min(94vw, 900px);
  max-height: calc(100vh - 90px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 18px 55px rgba(0,0,0,0.5);
}
.photo-preview-close {
  position: fixed;
  z-index: 1002;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0 0 3px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(0,0,0,0.4);
}

.top-photo-emoji-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}
.top-photo-emoji-pill {
  background: #fff;
  border: 1px solid #e2e5ee;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
}

/* ============================================================
   NEÓN GIRATORIO — líder del ranking (1er puesto)
   ============================================================ */
@property --neon-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.ranking .rank-row:first-child {
  position: relative;
  z-index: 0;
  border-radius: 14px;
  margin: 6px 0;
  overflow: visible;
  /* Ola de mar suave desplazándose de derecha a izquierda */
  background: linear-gradient(100deg,
    #b5f9ff 0%,
    #ffc973 22%,
    #ffffff 42%,
    #ffdfe9 62%,
    #d9f6ee 82%,
    #a9f8ff 100%);
  background-size: 230% 100%;
  animation: waveShift 8s linear infinite;
}
/* Lucecita neón que recorre todo el contorno */
.ranking .rank-row:first-child::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: 16px;
  padding: 2px;
  background: conic-gradient(from var(--neon-angle),
    transparent 0deg,
    transparent 250deg,
    rgba(85, 241, 255, 0.9) 300deg,
    rgba(141,237,84,0.95) 332deg,
    #ff8827 350deg,
    transparent 360deg);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: neonAngleSpin 3.6s linear infinite;
}
/* Sin halo: el efecto queda limitado al borde */
.ranking .rank-row:first-child::after {
  content: none;
}
/* Número del líder, discreto para no competir con la ola */
.ranking .rank-row:first-child .rank-badge {
  color: var(--brand-teal-dark);
  text-shadow: 0 0 6px rgba(67,181,192,0.4);
}

/* ============================================================
   Segundo puesto — brillo plateado, más lento y tenue
   ============================================================ */
.ranking .rank-row:nth-child(2) {
  position: relative;
  z-index: 0;
  border-radius: 14px;
  background: var(--card);
  margin: 6px 0;
  overflow: visible;
}
.ranking .rank-row:nth-child(2)::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: 16px;
  background: conic-gradient(
    from var(--neon-angle),
    #cfd8e6, #d4e7fe, #cff5f8, #cfd8e6, #dbecff, #cfd8e6
  );
  opacity: 0.55;
  animation: neonAngleSpin 6s linear infinite;
}
.ranking .rank-row:nth-child(2)::after {
  content: "";
  position: absolute;
  inset: -4px;
  z-index: -2;
  border-radius: 18px;
  background: conic-gradient(
    from var(--neon-angle),
    #cfd8e6, #9fb4cc, #43b5c0, #cfd8e6
  );
  filter: blur(7px);
  opacity: 0.3;
  animation: neonAngleSpin 6s linear infinite;
}

@keyframes neonAngleSpin {
  to { --neon-angle: 360deg; }
}

/* ===== Latido en el 1er puesto + tamaño diferenciado 1° y 2° (SIN scale, sin separación) ===== */
@keyframes heartbeatPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(0,0,0,0); }
  15%      { box-shadow: 0 0 14px rgba(255,126,126,0.35); }
  30%      { box-shadow: 0 0 0 rgba(0,0,0,0); }
  45%      { box-shadow: 0 0 18px rgba(141,237,84,0.35); }
  60%      { box-shadow: 0 0 0 rgba(0,0,0,0); }
}

.ranking .rank-row:first-child {
  padding: 16px 14px;
  animation: waveShift 8s linear infinite, heartbeatPulse 1.8s ease-in-out infinite;
}
.ranking .rank-row:first-child .rank-badge {
  font-size: 1.25em;
}
.ranking .rank-row:first-child .school-name,
.ranking .rank-row:first-child b {
  font-size: 1.06em;
}

.ranking .rank-row:nth-child(2) {
  padding: 13px 14px;
}
.ranking .rank-row:nth-child(2) .rank-badge {
  font-size: 1.1em;
}

@media (prefers-reduced-motion: reduce) {
  .ranking .rank-row:first-child {
    animation: none;
  }
}

@keyframes waveShift {
  0% { background-position: 100% 0; }
  100% { background-position: 0% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ranking .rank-row:first-child,
  .ranking .rank-row:first-child::before,
  .ranking .rank-row:first-child::after,
  .ranking .rank-row:nth-child(2)::before,
  .ranking .rank-row:nth-child(2)::after { animation: none; }
}

/* ---------- Momentos de reinado y entrega de premios (carrusel) ---------- */
.momentos-carousel .carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b0f16;
  display: block;
}
.moment-video-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 700;
}
.moment-actions-row {
  display: flex;
  gap: 8px;
  margin: 14px 0 6px;
}
.moment-actions-row button {
  flex: 1 1 50%;
  border: none;
  border-radius: 10px;
  padding: 11px 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
#momentDownloadBtn { background: var(--brand-teal-tint); color: var(--brand-teal-dark); }
#momentViewBtn { background: var(--brand-primary); color: #fff; }

/* ---------- Zonas de subida con drag&drop y vista previa (panel admin) ---------- */
.upload-section { margin-bottom: 4px; }
.upload-label {
  display: block;
  font-weight: 800;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 8px;
}
.upload-hint {
  font-size: 11px;
  color: var(--muted);
  background: var(--brand-teal-tint);
  border-radius: 10px;
  padding: 8px 10px;
  margin: 0 0 10px;
  line-height: 1.5;
}
.dropzone {
  border: 2px dashed #c9d2de;
  border-radius: 14px;
  padding: 22px 14px;
  text-align: center;
  cursor: pointer;
  background: #f7f9fb;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.dropzone p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.dropzone.dragover {
  background: var(--brand-teal-tint);
  border-color: var(--brand-teal);
}
.pending-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0;
}
.pending-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #e9eff3;
}
.pending-item img, .pending-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}
.pending-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(182,49,53,0.92);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}
.pending-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
}
.admin-log-title {
  font-size: 13px;
  margin: 16px 0 6px;
  color: var(--text);
}

/* Historial con scroll de verdad, en celular y PC */
#adminLog {
  max-height: 280px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #eef0f6;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fafbfc;
}

/* ---------- Fix: fotos horizontales en el carrusel de momentos ---------- */
.momentos-carousel .carousel-track-wrap {
  aspect-ratio: 16 / 10;
  background: #e9eff3;
}
.momentos-carousel .carousel-slide img,
.momentos-carousel .carousel-slide video {
  background: #e9eff3;
}

/* ---------- Fix: el video también necesita tamaño en pantalla completa ---------- */
.photo-preview video {
  display: block;
  max-width: min(94vw, 900px);
  max-height: calc(100vh - 90px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 18px 55px rgba(0,0,0,0.5);
  background: #000;
}

/* ---------- Top mejores momentos (carrusel compacto) ---------- */
.topmomentos-wrap {
  aspect-ratio: 4 / 5;
  background: #e9eff3;
}
.topmomentos-slide {
  position: relative;
}
.topmomentos-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.topmomentos-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.topmomentos-actions button {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.topmomentos-btn-download {
  background: rgba(255,255,255,0.95);
  color: var(--brand-teal-dark);
}
.topmomentos-btn-view {
  background: var(--brand-primary);
  color: #fff;
}
.topmomentos-legend {
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 10px;
}