/* ============================================================================
   css/eventos.css — páginas públicas de components/pages-3.jsx
   ----------------------------------------------------------------------------
   Eventos, Únete/Registro, Evaluación pública, Tienda y Noticias.
   Fuente de verdad: DESIGN.md (Noche Altiplánica). Solo tokens del núcleo;
   prefijos: p3- (compartido), ev-, rg-, evp-, tn-, nt-.
   ======================================================================== */

/* ============ Compartido ============ */
.p3-mascota { width: 150px; height: auto; margin: 0 auto; display: block; }
.p3-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.p3-stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.p3-opt { font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--fg-disabled); margin-left: 4px; }
.p3-hint { font-size: 12.5px; line-height: 1.5; color: var(--fg-muted); }
.p3-err { font-size: 12.5px; line-height: 1.5; color: var(--red-soft); }
.field.is-invalid .input, .field.is-invalid .textarea {
  border-color: var(--red); box-shadow: 0 0 0 3px rgba(229,72,77,.15);
}
.p3-alert {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: var(--r-sm);
  background: rgba(229,72,77,.12); color: var(--red-soft);
  font-size: 13.5px; line-height: 1.45;
}
.p3-alert svg { flex: none; }
.p3-form { display: grid; gap: 16px; }
.p3-foot { font-size: 12.5px; color: var(--fg-muted); text-align: center; margin: 0; }

/* Spinner */
@keyframes p3Spin { to { transform: rotate(360deg); } }
.p3-spin {
  display: inline-block; vertical-align: middle;
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--surface-4); border-top-color: var(--primary);
  animation: p3Spin .8s linear infinite;
}
.p3-spin.is-sm { width: 16px; height: 16px; border-width: 2px; }
.p3-spin.is-ink { border-color: rgba(14,10,20,.25); border-top-color: var(--primary-ink); }

/* Skeletons */
.p3-skel-card { background: var(--surface-1); border-radius: 12px; overflow: hidden; }
.p3-skel-body { padding: 18px; display: grid; gap: 10px; }
.p3-skel-line { height: 12px; border-radius: 6px; width: 100%; }
.p3-skel-line.is-lg { height: 18px; }

/* Estados vacíos y de resultado */
.p3-vacio {
  padding: 56px 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.p3-vacio p { color: var(--fg-muted); max-width: 44ch; margin: 0; }
.p3-vacio .p3-mascota { width: 150px; margin-bottom: 4px; }
.p3-estado {
  text-align: center; padding: 8px 0 4px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.p3-estado .p3-mascota { width: 140px; }
.p3-estado p { color: var(--fg-soft); max-width: 38ch; margin: 0; }
.p3-estado .p3-estado-msg { color: var(--red-soft); }
.p3-estado-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }

/* Diálogo (nivel 3). Sin la palabra "modal" en las clases: styles.css fuerza
   anchos con [class*="modal"] > div en móvil. */
@keyframes p3Fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes p3Pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes p3SlideL { from { transform: translateX(100%); } to { transform: none; } }
@keyframes p3SlideUp { from { transform: translateY(100%); } to { transform: none; } }
.p3-scrim {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center; padding: 20px;
  background: rgba(5,3,9,.72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: p3Fade .2s var(--ease) both;
}
.p3-dialog {
  position: relative; width: min(100%, 460px);
  max-height: calc(100vh - 40px); overflow-y: auto; overscroll-behavior: contain;
  padding: 32px 28px 28px;
  background: var(--surface-3); color: var(--fg);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-modal), inset 0 1px 0 rgba(255,255,255,.06);
  animation: p3Pop .3s var(--ease) both;
}
.p3-dialog.is-wide { width: min(100%, 560px); }
.p3-dialog-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; min-width: 36px; background: var(--surface-4); z-index: 2; }
.p3-scrim.is-side { place-items: stretch end; padding: 0; }
.p3-scrim.is-side .p3-dialog {
  width: min(100%, 420px); height: 100%; max-height: 100vh;
  border-radius: 12px 0 0 12px; animation: p3SlideL .32s var(--ease) both;
}
@media (max-width: 600px) {
  .p3-scrim, .p3-scrim.is-side { place-items: end stretch; padding: 0; }
  .p3-dialog, .p3-scrim.is-side .p3-dialog {
    width: 100%; height: auto; max-height: 92vh;
    border-radius: 20px 20px 0 0;
    padding: 28px 16px calc(24px + env(safe-area-inset-bottom));
    animation: p3SlideUp .32s var(--ease) both;
  }
}

/* Toast */
@keyframes p3Toast { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.p3-toast {
  position: fixed; left: 50%; bottom: 104px; z-index: 1100; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px);
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--surface-3); color: var(--fg); font-size: 13px; font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
  animation: p3Toast .25s var(--ease) both;
}
.p3-toast svg { color: var(--success); flex: none; }
@media (max-width: 1024px) { .p3-toast { bottom: auto; top: calc(var(--nav-h) + 12px); } }

/* ============ EVENTOS ============ */
.ev-body { padding-top: 8px; padding-bottom: 96px; }
.ev-hero-stats { display: flex; flex-wrap: wrap; gap: 24px; font-size: 13px; color: rgba(255,255,255,.75); }
.ev-hero-stats b { font-size: 20px; font-weight: 500; color: var(--gold); margin-right: 6px; }

/* Destacado */
.ev-feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  background: var(--surface-1); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--edge-light); margin-bottom: 56px;
}
.ev-feature-skel { height: 420px; border-radius: var(--r-lg); margin-bottom: 56px; }
.ev-feature-media { position: relative; min-height: 440px; background: var(--surface-2); }
.ev-feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-feature-body {
  position: relative; overflow: hidden; padding: 40px;
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
}
.ev-feature-body > * { position: relative; }
.ev-feature-halo { position: absolute !important; top: -120px; right: -120px; width: 380px; height: 380px; }
.ev-feature-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); }
.ev-feature-date { display: flex; align-items: flex-end; gap: 16px; }
.ev-feature-dia {
  font-size: clamp(72px, 9vw, 128px); line-height: .82; font-weight: 800;
  letter-spacing: -.05em; color: var(--fg); font-variant-numeric: tabular-nums;
}
.ev-feature-mes { display: flex; flex-direction: column; gap: 4px; padding-bottom: 6px; }
.ev-feature-mes-l {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: clamp(28px, 3vw, 40px); line-height: 1; color: var(--gold-soft);
}
.ev-feature-mes .mono { font-size: 13px; color: var(--fg-muted); text-transform: capitalize; }
.ev-feature-title {
  font-size: clamp(24px, 2.8vw, 34px); line-height: 1.12; font-weight: 800;
  letter-spacing: -.02em; text-wrap: balance;
}
.ev-feature-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--fg-soft); }
.ev-feature-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ev-feature-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* Cuenta regresiva */
.ev-count { display: flex; gap: 8px; }
.ev-count-cell {
  min-width: 74px; padding: 12px 14px; border-radius: var(--r-md);
  background: var(--surface-2); text-align: center;
  display: flex; flex-direction: column; gap: 4px;
}
.ev-count-num { font-size: 28px; line-height: 1; font-weight: 500; color: var(--fg); }
.ev-count-lbl { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); }

/* Filtros */
.ev-filtros { display: grid; gap: 10px; margin-bottom: 40px; }
.ev-chip-dot { width: 8px; height: 8px; border-radius: 99px; background: var(--tipo); flex: none; }

/* Bloques */
.ev-bloque { margin-bottom: 64px; }
.ev-bloque-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.ev-bloque-n {
  font-size: 13px; color: var(--fg-muted); background: var(--surface-2);
  padding: 2px 10px; border-radius: var(--r-full);
}

/* Calendario (día grande / mes) */
.ev-cal {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  min-width: 58px; padding: 8px 10px 7px; border-radius: var(--r-md);
  background: rgba(14,10,20,.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.ev-cal-mes { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--tipo, var(--primary)); line-height: 1.2; }
.ev-cal-dia { font-size: 26px; font-weight: 800; line-height: 1.05; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.ev-cal-dow { font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,.6); text-transform: capitalize; }
.ev-cal.is-static { position: static; background: var(--surface-2); backdrop-filter: none; flex: none; }
.ev-cal.is-static .ev-cal-dia { color: var(--fg); }

/* Píldoras sobre imagen */
.ev-tipo-pill, .ev-live {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: var(--r-full);
  background: rgba(14,10,20,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.ev-tipo-pill { top: 12px; right: 12px; }
.ev-tipo-pill::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: var(--tipo, var(--primary)); box-shadow: 0 0 8px var(--tipo, var(--primary)); }
.ev-feature-media .ev-tipo-pill { top: 16px; right: auto; left: 16px; }
.ev-live { left: 12px; bottom: 12px; color: #7DD9A7; }

/* Tarjeta */
.ev-card { display: flex; flex-direction: column; overflow: hidden; }
.ev-card-media { aspect-ratio: 16 / 10; }
.ev-card-media img { width: 100%; height: 100%; object-fit: cover; }
.ev-card-media .action-circle { z-index: 3; }
.ev-card.is-past .ev-card-media img { filter: grayscale(.55) brightness(.75); }
.ev-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ev-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-mod { color: var(--fg-soft); }
.ev-card-title {
  font-size: 17px; line-height: 24px; font-weight: 700; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ev-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--fg-muted); }
.ev-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.ev-card-desc {
  margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--fg-soft); flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ev-card-cta { margin-top: auto; width: 100%; }

/* Cabecera del diálogo de inscripción */
.ev-dlg-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; padding-right: 40px; }
.ev-tipo-label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tipo, var(--primary)); }
.ev-dlg-title { font-size: 20px; line-height: 1.25; font-weight: 700; margin-top: 4px; }
.ev-dlg-meta { font-size: 12.5px; color: var(--fg-muted); margin-top: 6px; text-transform: capitalize; }

@media (max-width: 900px) {
  .ev-feature { grid-template-columns: 1fr; }
  .ev-feature-media { min-height: 0; aspect-ratio: 16 / 10; }
  .ev-feature-body { padding: 28px 20px; }
}
@media (max-width: 600px) {
  .ev-count { gap: 6px; }
  .ev-count-cell { min-width: 0; flex: 1; padding: 10px 4px; }
  .ev-count-num { font-size: 22px; }
  .ev-feature-ctas .btn { width: 100%; }
  .ev-bloque { margin-bottom: 48px; }
}

/* ============ ÚNETE / REGISTRO ============ */
.rg-visual {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 4 / 5; border-radius: var(--r-lg); background: var(--surface-2);
  box-shadow: var(--edge-light);
}
.rg-visual > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.rg-visual::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14,10,20,0) 40%, rgba(14,10,20,.85) 100%);
}
.rg-visual-mascota { position: absolute; top: 18px; right: 14px; width: 120px; z-index: 1; }
.rg-visual-caption { position: absolute; left: 28px; right: 28px; bottom: 28px; z-index: 1; color: #fff; }
.rg-visual-caption .eyebrow { color: var(--gold-soft); }
.rg-quote { margin: 8px 0 0; font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; color: #fff; text-wrap: balance; }
.rg-quote em { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: 1.08em; color: var(--gold-soft); }

/* Hub */
.rg-hub {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 56px; align-items: center; padding-top: 40px; padding-bottom: 96px;
}
.rg-hub-title { margin: 16px 0; }
.rg-rutas { display: grid; gap: 12px; margin-top: 32px; }
.rg-ruta {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) 40px; gap: 18px; align-items: center;
  width: 100%; padding: 20px; text-align: left; border-radius: var(--r-md);
  background: var(--surface-1); box-shadow: var(--edge-light); color: var(--fg);
  transition: background-color .2s var(--ease), opacity .7s var(--ease), transform .7s var(--ease);
}
.rg-ruta:hover { background: var(--surface-2); }
.rg-ruta-ico {
  width: 52px; height: 52px; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: rgba(164,107,224,.14); color: var(--violet-200);
}
.rg-ruta-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rg-ruta-t { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.rg-ruta-d { font-size: 13.5px; line-height: 1.5; color: var(--fg-soft); }
.action-circle.rg-ruta-go { width: 40px; height: 40px; }
.rg-ruta:hover .rg-ruta-go { transform: scale(1.06); background: var(--primary-hover); }
.rg-pasos {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.rg-pasos li { font-size: 12.5px; line-height: 1.4; color: var(--fg-soft); padding-top: 12px; border-top: 2px solid var(--surface-3); }
.rg-pasos li span { display: block; font-size: 11px; color: var(--primary); margin-bottom: 4px; }

/* Formulario */
.rg-form-page { padding-top: 40px; padding-bottom: 96px; }
.rg-form-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; }
.rg-form-side { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 20px; }
.rg-form-side .rg-visual { aspect-ratio: 4 / 4.4; }
.rg-form-side .rg-quote { font-size: 21px; }
.rg-back { justify-self: start; }
.rg-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rg-step {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500; color: var(--fg-soft); text-align: left;
  transition: background .15s, color .15s;
}
.rg-step:hover { background: var(--surface-1); color: var(--fg); }
.rg-step-n {
  width: 28px; height: 28px; border-radius: 99px; flex: none;
  display: grid; place-items: center;
  background: var(--surface-2); font-family: var(--font-mono); font-size: 12px; color: var(--fg-soft);
  transition: background .2s, color .2s;
}
.rg-step.is-done { color: var(--fg); }
.rg-step.is-done .rg-step-n { background: var(--success); color: #0E0A14; }
.rg-form-main { max-width: 760px; min-width: 0; }
.rg-form-title { margin: 12px 0 16px; }
.rg-card { padding: 8px 32px 32px; margin-top: 28px; }
.rg-fs {
  border: 0; margin: 0; padding: 28px 0; min-width: 0;
  display: grid; gap: 18px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.rg-fs:last-child { border-bottom: 0; padding-bottom: 4px; }
.rg-fs legend {
  display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 18px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--fg);
}
.rg-fs-n { font-size: 12px; color: var(--primary); letter-spacing: .04em; }
.rg-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.rg-foto { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: var(--r-md); background: var(--surface-2); }
.rg-foto-thumb {
  position: relative; width: 84px; height: 84px; flex: none; overflow: hidden;
  border-radius: var(--r-md); background: var(--surface-3); color: var(--fg-muted);
  display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.rg-foto-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.rg-foto-cargando { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(14,10,20,.6); }
.rg-foto-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.rg-foto .rg-foto-btn { cursor: pointer; font-size: 13px; letter-spacing: .02em; text-transform: none; color: var(--fg); }
.rg-foto-ok { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--success); }
.rg-otros-hint { margin: -2px 0 6px; }
.rg-otro-row { display: grid; grid-template-columns: 38% minmax(0, 1fr) 40px; gap: 8px; align-items: center; margin-bottom: 8px; }
.rg-otros-add { justify-self: start; font-size: 14px; }
.rg-acepta {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2);
  transition: box-shadow .15s;
}
.rg-acepta input { flex: none; margin-top: 2px; }
.rg-acepta span { font-size: 13.5px; line-height: 1.55; color: var(--fg-soft); }
.rg-acepta.is-on { box-shadow: inset 0 0 0 1px rgba(164,107,224,.55); }
.rg-acepta.is-invalid { box-shadow: inset 0 0 0 1px var(--red); }
.rg-submit { width: 100%; min-height: 52px; font-size: 15px; }

/* Confirmación */
.rg-ok { padding-top: 56px; padding-bottom: 96px; }
.rg-ok-card {
  position: relative; overflow: hidden; max-width: 580px; margin: 0 auto;
  padding: 48px 32px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.rg-ok-card > * { position: relative; z-index: 1; }
.rg-ok-card > .rg-ok-halo { position: absolute; z-index: 0; top: -140px; left: 50%; width: 440px; height: 440px; transform: translateX(-50%); }
.rg-ok-card p { color: var(--fg-soft); margin: 0; max-width: 46ch; }
.rg-ok-pasos { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 10px; text-align: left; width: 100%; max-width: 340px; }
.rg-ok-pasos li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--fg-muted); }
.rg-ok-pasos li span {
  width: 26px; height: 26px; border-radius: 99px; flex: none; display: grid; place-items: center;
  background: var(--surface-2); font-family: var(--font-mono); font-size: 12px;
}
.rg-ok-pasos li.is-done span { background: var(--success); color: #0E0A14; }
.rg-ok-pasos li.is-now { color: var(--fg); }
.rg-ok-pasos li.is-now span { background: var(--primary); color: var(--primary-ink); }

@media (max-width: 960px) {
  .rg-hub { grid-template-columns: 1fr; gap: 32px; padding-top: 24px; }
  .rg-hub .rg-visual { aspect-ratio: 16 / 10; max-height: 380px; }
  .rg-visual-mascota { width: 90px; }
  .rg-form-grid { grid-template-columns: 1fr; gap: 20px; }
  .rg-form-side { position: static; }
  .rg-form-side .rg-visual { display: none; }
  .rg-steps {
    display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
    margin: 0 -16px; padding: 0 16px;
  }
  .rg-steps::-webkit-scrollbar { display: none; }
  .rg-step { white-space: nowrap; background: var(--surface-1); border-radius: var(--r-full); padding: 6px 14px 6px 6px; font-size: 13px; }
  .rg-step-n { width: 24px; height: 24px; font-size: 11px; }
}
@media (max-width: 600px) {
  .rg-pasos { grid-template-columns: repeat(2, 1fr); }
  .rg-grid2 { grid-template-columns: 1fr; }
  .rg-card { padding: 4px 18px 24px; }
  .rg-ruta { grid-template-columns: 44px minmax(0, 1fr) 36px; gap: 14px; padding: 16px; }
  .rg-ruta-ico { width: 44px; height: 44px; }
  .action-circle.rg-ruta-go { width: 36px; height: 36px; }
  .rg-quote { font-size: 22px; }
  .rg-visual-caption { left: 20px; right: 20px; bottom: 20px; }
  .rg-ok-card { padding: 36px 20px; }
  .rg-foto { align-items: flex-start; }
  .rg-otro-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px; }
}

/* ============ EVALUACIÓN PÚBLICA ============ */
.evp-page { min-height: 100vh; }
.evp-top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(14,10,20,.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
[data-theme="light"] .evp-top { background: rgba(250,249,251,.88); border-bottom-color: var(--border); }
.evp-top-in {
  max-width: 760px; margin: 0 auto; padding: 10px 24px; min-height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.evp-brand { display: flex; align-items: center; gap: 10px; color: var(--fg); flex: none; }
.evp-top-prog { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--fg-soft); }
.evp-bar { width: 160px; height: 6px; border-radius: var(--r-full); background: var(--surface-3); overflow: hidden; }
.evp-bar span { display: block; height: 100%; border-radius: inherit; background: var(--primary); transition: width .4s var(--ease); }
.evp-bar.is-lg { width: 100%; max-width: 360px; height: 8px; margin: 2px auto 6px; }
.evp-result.is-ok .evp-bar span { background: var(--gold); }
.evp-main { max-width: 760px; margin: 0 auto; padding: 48px 24px 120px; }
.evp-skel-title { height: 44px; width: 80%; margin: 16px 0 32px; border-radius: 10px; }
.evp-skel-card { height: 180px; margin-bottom: 16px; }

.evp-head { margin-bottom: 32px; }
.evp-title { margin: 14px 0 12px; font-size: clamp(30px, 4.4vw, 48px); text-wrap: balance; }
.evp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.evp-id { padding: 24px; margin-bottom: 20px; }
.evp-q-n {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--primary);
}
.evp-q-n span { color: var(--fg-muted); }
.evp-q-n svg { color: var(--success); }
.evp-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.evp-q { padding: 24px; transition: box-shadow .2s var(--ease); }
.evp-q.is-done { box-shadow: var(--edge-light), inset 3px 0 0 var(--primary); }
.evp-q-t { font-size: 18px; line-height: 1.45; font-weight: 600; letter-spacing: -.01em; margin-bottom: 16px; }
.evp-opts { display: grid; gap: 10px; }
.evp-opt {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) 20px; gap: 14px; align-items: center;
  padding: 12px 16px 12px 12px; border-radius: var(--r-md); cursor: pointer;
  background: var(--surface-2); color: var(--fg-soft); font-size: 15px; line-height: 1.45;
  transition: background .15s, box-shadow .15s, color .15s;
}
.evp-opt:hover { background: var(--surface-3); color: var(--fg); }
.evp-opt:focus-within { box-shadow: 0 0 0 2px var(--primary); }
.evp-opt.is-sel { background: rgba(164,107,224,.16); box-shadow: inset 0 0 0 1.5px var(--primary); color: var(--fg); }
.evp-letra {
  width: 36px; height: 36px; border-radius: 99px; display: grid; place-items: center;
  background: var(--surface-3); font-size: 13px; font-weight: 700; color: var(--fg-soft);
  transition: background .15s, color .15s, transform .2s var(--ease);
}
.evp-opt.is-sel .evp-letra { background: var(--primary); color: var(--primary-ink); transform: scale(1.04); }
.evp-opt-check { color: var(--primary); opacity: 0; transition: opacity .15s; }
.evp-opt.is-sel .evp-opt-check { opacity: 1; }
.evp-submit {
  position: sticky; bottom: 16px; z-index: 10; margin-top: 28px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 12px 12px 22px; border-radius: var(--r-lg);
  background: var(--surface-3); box-shadow: var(--shadow-bar), inset 0 1px 0 rgba(255,255,255,.06);
}
.evp-submit .p3-alert { flex-basis: 100%; order: -1; }
.evp-submit-txt { font-size: 14px; color: var(--fg-soft); }
.evp-submit-txt .mono { color: var(--fg); }

.evp-result {
  position: relative; overflow: hidden; max-width: 600px; margin: 24px auto 0;
  padding: 48px 32px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.evp-result > * { position: relative; z-index: 1; }
.evp-result > .evp-result-halo { position: absolute; z-index: 0; top: -160px; left: 50%; width: 480px; height: 480px; transform: translateX(-50%); }
.evp-result p { color: var(--fg-soft); margin: 0; max-width: 44ch; }
.evp-score { font-size: clamp(56px, 10vw, 88px); line-height: 1; font-weight: 500; letter-spacing: -.04em; color: var(--fg); }
.evp-score span { font-size: .35em; color: var(--fg-muted); margin-left: 8px; letter-spacing: 0; }
.evp-result.is-ok .evp-score { color: var(--gold); }
.evp-stars { position: absolute !important; inset: 0; z-index: 0 !important; pointer-events: none; }
.evp-stars span {
  position: absolute; width: 5px; height: 5px; border-radius: 99px;
  background: var(--gold-soft); box-shadow: 0 0 10px var(--gold);
  animation: twinkle 2.4s ease-in-out infinite;
}
.evp-stars span:nth-child(1) { top: 12%; left: 14%; }
.evp-stars span:nth-child(2) { top: 22%; right: 12%; animation-delay: .4s; }
.evp-stars span:nth-child(3) { top: 46%; left: 8%; animation-delay: .8s; width: 3px; height: 3px; }
.evp-stars span:nth-child(4) { top: 58%; right: 9%; animation-delay: 1.2s; }
.evp-stars span:nth-child(5) { top: 8%; left: 52%; animation-delay: 1.6s; width: 3px; height: 3px; }
.evp-stars span:nth-child(6) { bottom: 14%; left: 18%; animation-delay: .6s; }
.evp-stars span:nth-child(7) { bottom: 22%; right: 20%; animation-delay: 1s; width: 3px; height: 3px; }
.evp-stars span:nth-child(8) { top: 34%; left: 30%; animation-delay: 1.8s; width: 3px; height: 3px; }

@media (max-width: 600px) {
  .evp-top-in { padding: 8px 16px; }
  .evp-bar { width: 72px; }
  .evp-main { padding: 32px 16px 120px; }
  .evp-q, .evp-id { padding: 18px; }
  .evp-q-t { font-size: 17px; }
  .evp-opt { gap: 12px; padding: 10px 12px 10px 10px; }
  .evp-submit { padding: 14px; border-radius: 16px; }
  .evp-submit .btn { width: 100%; }
  .evp-result { padding: 36px 20px; }
}

/* ============ TIENDA ============ */
.tn-body { padding-top: 8px; padding-bottom: 96px; }
.tn-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tn-hero-chips .badge {
  background: rgba(14,10,20,.55); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.tn-cats { margin-bottom: 28px; }
.tn-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.tn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }

.tn-card { display: flex; flex-direction: column; overflow: hidden; }
.tn-card-media { aspect-ratio: 1 / 1; }
.tn-card-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--fg-disabled); }
.tn-card-media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.tn-card-media .action-circle { z-index: 3; }
.tn-dest { position: absolute; top: 10px; left: 10px; z-index: 2; }
.tn-agotado {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  background: rgba(14,10,20,.62); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.tn-card.is-out .tn-card-media img { filter: grayscale(.7); }
.tn-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tn-cat { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.tn-card-title {
  font-size: 15.5px; line-height: 1.35; font-weight: 700; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tn-card-desc {
  margin: 0; font-size: 13px; line-height: 1.5; color: var(--fg-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tn-stock { font-size: 12px; font-weight: 500; color: var(--warning); }
.tn-card-foot { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.tn-precio { font-size: 13px; color: var(--gold-soft); white-space: nowrap; }
.tn-precio b { font-size: 20px; font-weight: 500; color: var(--gold); letter-spacing: -.02em; }

/* Panel del pedido */
.tn-aside { position: sticky; top: calc(var(--nav-h) + 24px); padding: 22px; }
.tn-cart-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; padding-right: 36px; }
.tn-aside .tn-cart-head { padding-right: 0; }
.tn-cart-vacio { text-align: center; padding: 8px 0; }
.tn-cart-vacio .p3-mascota { width: 110px; }
.tn-cart-vacio p { font-size: 13px; color: var(--fg-muted); margin: 10px 0 0; }
.tn-cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tn-cart-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 28px; gap: 10px; align-items: center; }
.tn-cart-thumb {
  width: 44px; height: 44px; border-radius: var(--r-sm); overflow: hidden;
  background: var(--surface-2); color: var(--fg-muted); display: grid; place-items: center;
}
.tn-cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tn-cart-name { font-size: 13.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tn-cart-unit { font-size: 12px; color: var(--fg-muted); }
.tn-step { display: inline-flex; align-items: center; background: var(--surface-2); border-radius: var(--r-full); }
.tn-step button {
  width: 28px; height: 28px; border-radius: 99px; display: grid; place-items: center;
  font-size: 15px; color: var(--fg-soft); transition: background .15s, color .15s;
}
.tn-step button:hover:not(:disabled) { background: var(--surface-4); color: var(--fg); }
.tn-step button:disabled { opacity: .35; cursor: not-allowed; }
.tn-step span { min-width: 22px; text-align: center; font-size: 13px; }
.tn-cart-del {
  width: 28px; height: 28px; border-radius: 99px; display: grid; place-items: center;
  color: var(--fg-muted); transition: color .15s, background .15s;
}
.tn-cart-del:hover { color: var(--red-soft); background: rgba(229,72,77,.12); }
.tn-total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 16px 0; padding-top: 14px; border-top: 1px solid var(--border);
  font-size: 14px; font-weight: 700;
}
.tn-cart-nota { margin: 12px 0 0; text-align: center; }

/* Barra del pedido (móvil) */
.tn-cartbar {
  display: none; position: fixed; z-index: 45;
  left: 16px; right: 16px; bottom: calc(88px + env(safe-area-inset-bottom));
  align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 0 20px 0 8px; border-radius: var(--r-full);
  background: var(--primary); color: var(--primary-ink);
  font-size: 14px; font-weight: 700;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  animation: p3Pop .3s var(--ease) both;
}
.tn-cartbar-n {
  width: 40px; height: 40px; border-radius: 99px; display: grid; place-items: center;
  background: var(--primary-ink); color: var(--primary); font-size: 14px;
}
.tn-cartbar > span:nth-child(2) { flex: 1; text-align: left; }

/* Checkout */
.tn-co-title { margin: 8px 0 12px; padding-right: 40px; }
.tn-co-resumen { list-style: none; margin: 0 0 20px; padding: 0; }
.tn-co-resumen li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: 13.5px; color: var(--fg-soft);
}
.tn-co-resumen li .mono { color: var(--fg); }
.tn-pago { flex-wrap: wrap; }
.tn-ok-code {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 16px;
  padding: 14px 18px; border-radius: var(--r-md); background: var(--surface-2); text-align: left;
}
.tn-ok-code .mono { font-size: 15px; color: var(--fg); }

@media (max-width: 1024px) {
  .tn-layout { grid-template-columns: 1fr; }
  .tn-aside { display: none; }
  .tn-cartbar { display: inline-flex; }
}
@media (max-width: 600px) {
  .tn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tn-card-body { padding: 12px; }
  .tn-card-title { font-size: 14px; }
  .tn-card-desc { display: none; }
  .tn-card-foot .btn { width: 100%; }
  .tn-precio b { font-size: 18px; }
}

/* ============ NOTICIAS ============ */
.nt-body { padding-top: 8px; padding-bottom: 96px; }
.nt-filtros { margin-bottom: 32px; }
.nt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 12px; color: var(--fg-muted); }
.nt-meta .mono { font-size: 12px; }

/* Destacada */
.nt-feature {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  overflow: hidden; border-radius: var(--r-lg); margin-bottom: 40px;
}
.nt-feature-skel { height: 380px; border-radius: var(--r-lg); margin-bottom: 40px; }
.nt-feature-media { position: relative; min-height: 380px; overflow: hidden; background: var(--surface-2); }
.nt-feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nt-feature-tag { position: absolute; top: 16px; left: 16px; z-index: 2; }
.nt-feature-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.nt-feature-title { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.nt-feature-title a { color: var(--fg); }
.nt-feature-desc { margin: 0; font-size: 16px; line-height: 1.6; color: var(--fg-soft); }
.nt-feature-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.nt-feature:hover .btn-link { color: var(--primary); gap: 12px; }
.nt-autor { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--fg-soft); }
.nt-avatar {
  width: 32px; height: 32px; border-radius: 99px; flex: none; display: grid; place-items: center;
  background: rgba(164,107,224,.2); color: var(--violet-200);
  font-size: 13px; font-weight: 700; text-transform: uppercase;
}

/* Tarjeta */
.nt-card { position: relative; display: flex; flex-direction: column; overflow: hidden; }
.nt-card-media { aspect-ratio: 16 / 10; }
.nt-card-media img { width: 100%; height: 100%; object-fit: cover; }
.nt-card-media .action-circle { z-index: 2; }
.nt-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.nt-card-title { font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.nt-card-title a { color: var(--fg); }
.nt-card-desc {
  margin: 0; font-size: 14px; line-height: 1.55; color: var(--fg-soft);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.nt-autor-sm { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--fg-muted); margin-top: auto; }
.nt-feature .p3-stretch:focus-visible::after, .nt-card .p3-stretch:focus-visible::after { outline: 2px solid var(--primary); outline-offset: -2px; border-radius: 12px; }
.nt-feature .p3-stretch:focus-visible, .nt-card .p3-stretch:focus-visible { outline: none; }

/* Artículo */
.nt-cover {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: calc(var(--nav-h) * -1);
  padding: calc(var(--nav-h) + 120px) 0 56px;
  min-height: min(78vh, 720px); display: flex; align-items: flex-end;
}
.nt-cover-bg { position: absolute; inset: 0; z-index: -2; background: var(--surface-2); }
.nt-cover-bg img { width: 100%; height: 100%; object-fit: cover; }
.nt-cover::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14,10,20,.5) 0%, rgba(14,10,20,.3) 35%, rgba(14,10,20,.88) 78%, var(--bg) 100%);
}
[data-theme="light"] .nt-cover::after {
  background: linear-gradient(180deg, rgba(14,10,20,.5) 0%, rgba(14,10,20,.35) 35%, rgba(14,10,20,.9) 100%);
}
.nt-cover-head { width: 100%; max-width: 920px; margin: 0 auto; padding: 0 32px; color: #fff; }
.nt-back { color: rgba(255,255,255,.8); margin-bottom: 24px; }
.nt-back:hover { color: #fff; }
.nt-cover-head .nt-meta, .nt-cover-head .nt-meta .mono { color: rgba(255,255,255,.75); }
.nt-art-title {
  margin: 16px 0 20px; color: #fff;
  font-size: clamp(34px, 5vw, 60px); line-height: 1.04; font-weight: 800; letter-spacing: -.03em;
  text-wrap: balance;
}
.nt-cover-head .nt-autor { color: rgba(255,255,255,.85); }
.nt-cover-head .nt-autor b { color: #fff; }
.nt-art-body {
  max-width: calc(68ch + 64px); margin: 0 auto; padding: 40px 32px 96px;
  font-size: 18px;
}
.nt-lede {
  margin: 0 0 8px; padding-left: 20px; border-left: 2px solid var(--gold);
  font-size: 1.17em; line-height: 1.55; color: var(--fg); font-weight: 400;
}
.nt-ref { margin: 32px 0; padding: 18px 22px; border-radius: var(--r-md); background: var(--surface-1); box-shadow: var(--edge-light); }
.nt-ref p { margin: 6px 0 0; font-size: 15px; line-height: 1.6; font-style: italic; color: var(--fg-soft); }
.nt-ref a { font-style: normal; font-size: 13px; color: var(--primary); display: inline-flex; align-items: center; gap: 4px; }
.nt-ref a:hover { color: var(--primary-hover); }
.nt-contenido { margin-top: 8px; }
.nt-h { font-size: 1.4em; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; margin: 1.6em 0 .2em; }
.nt-h.is-sm { font-size: 1.1em; }
.nt-p { margin: .9em 0 0; color: var(--fg-soft); line-height: 1.75; }
.nt-p.is-sm { font-size: 14.5px; }
.nt-bloque { padding: 0; margin-top: 48px; }
.nt-bloque .nt-p { margin-top: 10px; }
.nt-preguntas { padding: 24px 28px; margin-top: 40px; border-radius: var(--r-md); background: var(--surface-1); box-shadow: var(--edge-light); }
.nt-preguntas ol { list-style: none; margin: 12px 0 0; padding: 0; }
.nt-preguntas li {
  display: flex; gap: 14px; padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px; line-height: 1.55; color: var(--fg);
}
.nt-preguntas li:last-child { border-bottom: 0; padding-bottom: 0; }
.nt-preguntas li .mono { font-size: 13px; color: var(--primary); padding-top: 3px; flex: none; }
.nt-acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.nt-share {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
}
.nt-share-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nt-share .icon-btn.is-ok { color: var(--success); }
.nt-copiado { font-size: 12.5px; color: var(--success); }

/* Estados del detalle */
.nt-estado { padding-top: 40px; padding-bottom: 96px; }
.nt-skel-cover { height: 360px; border-radius: var(--r-lg); }
.nt-skel-body { max-width: 68ch; margin: 32px auto 0; display: grid; gap: 14px; }

@media (max-width: 860px) {
  .nt-feature { grid-template-columns: 1fr; }
  .nt-feature-media { min-height: 0; aspect-ratio: 16 / 10; }
  .nt-feature-body { padding: 24px 20px; }
}
@media (max-width: 768px) {
  .nt-cover { padding: calc(var(--nav-h) + 72px) 0 36px; min-height: 64vh; }
  .nt-cover-head { padding: 0 16px; }
  .nt-art-body { padding: 28px 16px 72px; font-size: 17px; }
  .nt-preguntas { padding: 20px; }
  .nt-acciones .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .p3-scrim, .p3-dialog, .p3-toast, .tn-cartbar, .evp-stars span { animation: none !important; }
  .p3-spin { animation-duration: 2s; }
}
