/* ════════════════════════════════════════════════════════════════════════
   Tema RED DE EMISORAS — portal de muchas radios
   Skin sobre app.css. Se carga solo cuando el tema está activo.

   La idea: liviano y con transiciones suaves. Nada se recarga —ni el
   buscador, ni el filtro, ni la ficha— para que el audio no se corte nunca
   y la navegación se sienta de una sola pieza.
   ════════════════════════════════════════════════════════════════════════ */

.red-dir { --red-r: 16px; padding-bottom: 10px; }

/* ── Header del portal ────────────────────────────────────────────────── */
.hdr8 { border-bottom: 1px solid rgb(var(--border)); }
.hdr8-in { display: flex; align-items: center; gap: 20px; padding: 12px 16px; }
.hdr8-logo { flex-shrink: 0; display: flex; align-items: center; }
/* El logo es muy apaisado (casi 3:1): a 38px las letras quedaban diminutas */
.hdr8-logo img { height: 46px; width: auto; object-fit: contain; }
@media (max-width: 560px) { .hdr8-logo img { height: 38px; } }
/* El cambio día/noche del logo lo hace .logo-dual, en app.css */
.hdr8-logo span { font-family: var(--font-heading); font-weight: 800; font-size: 19px; }
/* El botón de registrar, en la barra de arriba */
.hdr8-sumar {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  margin-left: auto; padding: 8px 15px; border-radius: 999px;
  background: rgb(var(--accent)); color: rgb(var(--on-accent));
  font-size: 13.5px; font-weight: 700; white-space: nowrap;
  transition: filter .15s ease, transform .15s ease;
}
.hdr8-sumar:hover { filter: brightness(1.08); transform: translateY(-1px); }
.hdr8-sumar .material-symbols-outlined { font-size: 18px; }
/* Según va faltando sitio el botón se acorta a "Registrar"; por debajo de
   900 desaparece, que ahí ya manda el menú de hamburguesa y lo lleva. Un
   botón con solo el "+" no dice nada: antes de llegar a eso, se quita. */
@media (max-width: 1120px) { .hdr8-sumar-mas { display: none; } }
@media (max-width: 900px)  { .hdr8-sumar { display: none; } }

/* Y su gemelo del menú móvil */
.mobile-menu .menu-sumar {
  display: inline-flex; align-items: center; gap: 7px;
  margin: 4px 0 18px; padding: 12px 20px;
  border-radius: 999px; align-self: flex-start; border: 0;
  background: rgb(var(--accent)); color: rgb(var(--on-accent));
  font-size: 15px; font-weight: 700;
}
.mobile-menu .menu-sumar .material-symbols-outlined { font-size: 20px; }

.hdr8-social { display: flex; gap: 8px; margin-right: 4px; }
.hdr8-social a { color: rgb(var(--muted)); display: grid; place-items: center; transition: color .15s ease; }
.hdr8-social a:hover { color: rgb(var(--accent-text)); }
@media (max-width: 900px) { .hdr8-social { display: none; } }

/* ── Cabecera: título y buscador ──────────────────────────────────────── */
.red-head { padding: 42px 16px 26px; text-align: center; }
.red-head h1 {
  font-family: var(--font-heading); font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(27px, 4.2vw, 44px); line-height: 1.1;
}
.red-head > p { margin-top: 10px; color: rgb(var(--muted)); font-size: 16px; }

.red-buscar {
  display: flex; align-items: center; gap: 10px;
  max-width: 560px; margin: 24px auto 0; padding: 4px 6px 4px 16px;
  border: 1px solid rgb(var(--border)); border-radius: 999px;
  background: rgb(var(--surface));
  transition: border-color .2s ease, box-shadow .2s ease;
}
.red-buscar:focus-within {
  border-color: rgb(var(--accent));
  box-shadow: 0 0 0 4px rgb(var(--accent) / .14);
}
.red-buscar > .material-symbols-outlined { color: rgb(var(--muted)); font-size: 22px; }
.red-buscar input {
  flex: 1; min-width: 0; border: 0; outline: none; background: none;
  color: rgb(var(--text)); font: inherit; font-size: 15.5px; padding: 12px 0;
}
.red-limpiar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  color: rgb(var(--muted)); flex-shrink: 0;
}
.red-limpiar:hover { background: rgb(var(--surface-3)); color: rgb(var(--text)); }
.red-limpiar[hidden] { display: none; }

/* ── Tira de municipios ───────────────────────────────────────────────── */
.red-muni-wrap { border-bottom: 1px solid rgb(var(--border)); margin-bottom: 26px; }
.red-muni {
  display: flex; gap: 8px; padding: 12px 16px;
  overflow-x: auto; scrollbar-width: none;
}
.red-muni::-webkit-scrollbar { display: none; }
.red-chip {
  flex-shrink: 0; padding: 7px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgb(var(--border)); background: rgb(var(--surface));
  color: rgb(var(--muted)); font-size: 13.5px; font-weight: 600;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.red-chip:hover { color: rgb(var(--text)); border-color: rgb(var(--muted) / .5); }
.red-chip.on {
  background: rgb(var(--accent)); border-color: rgb(var(--accent));
  color: rgb(var(--on-accent));
}

/* ── Rejilla de emisoras ──────────────────────────────────────────────── */
.red-grid {
  display: grid; gap: 16px;
  /* 300px es el mínimo para que quepan el logo, dos líneas de nombre y el
     botón sin que los nombres largos queden cortados a la mitad. */
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.red-card {
  display: grid; align-items: center; gap: 13px;
  grid-template-columns: 68px minmax(0, 1fr) auto auto;
  padding: 13px; border-radius: var(--red-r);
  border: 1px solid rgb(var(--border)); background: rgb(var(--surface));
  transition: transform .22s cubic-bezier(.16,1,.3,1), box-shadow .22s ease, border-color .18s ease;
}
.red-card:hover {
  transform: translateY(-3px); border-color: rgb(var(--accent) / .45);
  box-shadow: 0 14px 30px -16px rgb(0 0 0 / .45);
}
/* Al filtrar, las que se van lo hacen con una transición corta */
.red-card.oculta { display: none; }
.red-card.sin-audio { opacity: .62; }

.red-card-logo {
  position: relative; width: 68px; height: 68px; border-radius: 13px;
  overflow: hidden; background: rgb(var(--surface-3)); cursor: pointer; padding: 0;
}
.red-card-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* El ecualizador solo aparece en la emisora que está sonando */
.red-card-eq {
  position: absolute; inset: auto 0 0 0; height: 22px; display: none;
  align-items: flex-end; justify-content: center; gap: 3px; padding-bottom: 5px;
  background: linear-gradient(transparent, rgb(0 0 0 / .68));
}
.red-card.sonando .red-card-eq { display: flex; }
.red-card-eq i {
  width: 3px; border-radius: 2px; background: #fff;
  animation: redOnda .95s ease-in-out infinite;
}
.red-card-eq i:nth-child(1) { height: 8px;  animation-delay: 0ms; }
.red-card-eq i:nth-child(2) { height: 14px; animation-delay: 170ms; }
.red-card-eq i:nth-child(3) { height: 10px; animation-delay: 330ms; }
@keyframes redOnda { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .red-card-eq i { animation: none; } }

/* ── Seguir escuchando ────────────────────────────────────────────────
   Una tira corta, de logos redondos. Deliberadamente más pequeña que el
   directorio: es un atajo, no otra sección que compita con él. */
.red-seguir { margin-bottom: 22px; }
.red-seguir-cab { display: flex; align-items: center; gap: 8px; margin-bottom: 13px; }
.red-seguir-cab h2 {
  font-family: var(--font-heading); font-size: 16px; font-weight: 700;
  margin: 0; flex: 1 1 auto;
}
.red-seguir-cab .material-symbols-outlined { font-size: 19px; color: rgb(var(--accent)); }
.red-seguir-x {
  background: none; border: 0; cursor: pointer; padding: 4px 8px;
  font-size: 12.5px; font-weight: 600; color: rgb(var(--muted));
  border-radius: 7px; transition: color .15s ease, background .15s ease;
}
.red-seguir-x:hover { color: rgb(var(--text)); background: rgb(var(--muted) / .12); }

.red-seguir-row {
  display: flex; gap: 16px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none; scroll-snap-type: x proximity;
}
.red-seguir-row::-webkit-scrollbar { display: none; }
.red-seg {
  flex: 0 0 auto; width: 84px; display: grid; gap: 7px; justify-items: center;
  background: none; border: 0; padding: 0; cursor: pointer; scroll-snap-align: start;
}
.red-seg-logo {
  position: relative; width: 72px; height: 72px; border-radius: 50%;
  overflow: hidden; background: rgb(var(--surface-3));
  border: 2px solid rgb(var(--border));
  transition: border-color .18s ease, transform .18s cubic-bezier(.16,1,.3,1);
}
.red-seg-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.red-seg-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgb(0 0 0 / .45); opacity: 0; transition: opacity .18s ease;
}
.red-seg-play .material-symbols-outlined { font-size: 30px; color: #fff; }
.red-seg:hover .red-seg-logo { border-color: rgb(var(--accent)); transform: scale(1.05); }
.red-seg:hover .red-seg-play { opacity: 1; }
.red-seg-nom {
  font-size: 12.5px; font-weight: 600; line-height: 1.3; text-align: center;
  color: rgb(var(--muted));
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.red-seg:hover .red-seg-nom { color: rgb(var(--text)); }

/* ── Favoritas ────────────────────────────────────────────────────────
   El corazón está apagado hasta que alguien lo pulsa, y en reposo casi
   no se ve: la tarjeta es de la emisora, no del botón. */
.red-fav {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; cursor: pointer; background: none; border: 0;
  color: rgb(var(--muted) / .55); padding: 0;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.red-fav .material-symbols-outlined { font-size: 21px; }
.red-fav:hover { color: rgb(var(--danger)); background: rgb(var(--danger) / .12); }
.red-fav.on { color: rgb(var(--danger)); }
.red-fav.on .material-symbols-outlined { font-variation-settings: 'FILL' 1; }
/* Un latido corto al marcarla, para que se note que quedó guardada */
.red-fav.on { animation: redLatido .32s ease; }
@keyframes redLatido { 40% { transform: scale(1.28); } }
@media (prefers-reduced-motion: reduce) { .red-fav.on { animation: none; } }

/* La pastilla de favoritas lleva el corazón y la cuenta */
.red-chip[data-vista] { display: inline-flex; align-items: center; gap: 6px; }
.red-chip[data-vista] .material-symbols-outlined { font-size: 17px; }
.red-chip-fav b { font-weight: 800; opacity: .75; }
.red-chip-fav .material-symbols-outlined { font-variation-settings: 'FILL' 1; }

/* El corazón grande de la ficha */
.red-ficha-btns { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 13px; }
.red-ficha-fav {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgb(var(--border)); background: transparent;
  color: rgb(var(--muted)); font-size: 13.5px; font-weight: 700;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.red-ficha-fav:hover { color: rgb(var(--danger)); border-color: rgb(var(--danger) / .5); }
.red-ficha-fav.on {
  color: rgb(var(--danger)); border-color: rgb(var(--danger) / .55);
  background: rgb(var(--danger) / .1);
}
.red-ficha-fav.on .material-symbols-outlined { font-variation-settings: 'FILL' 1; }

.red-card-txt { min-width: 0; }
.red-card-txt h3 {
  font-size: 15.5px; font-weight: 700; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.red-card-txt p {
  margin-top: 3px; font-size: 12.5px; color: rgb(var(--muted));
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.red-play {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgb(var(--accent)); color: rgb(var(--on-accent)); flex-shrink: 0;
  transition: transform .15s ease, filter .15s ease;
}
.red-play:hover { transform: scale(1.08); filter: brightness(1.06); }
.red-card.sonando .red-play .material-symbols-outlined::before { content: 'graphic_eq'; }
.red-pronto {
  flex-shrink: 0; padding: 5px 10px; border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: rgb(var(--muted)); background: rgb(var(--surface-3));
  white-space: nowrap;
}
.red-vacio { text-align: center; color: rgb(var(--muted)); padding: 40px 16px; font-size: 15px; }
.red-vacio[hidden] { display: none; }

/* ── Ficha de la emisora ──────────────────────────────────────────────── */
.red-modal {
  position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center;
  padding: 20px; background: rgb(0 0 0 / .62); backdrop-filter: blur(3px);
  animation: redEntra .18s ease;
}
.red-modal[hidden] { display: none; }
@keyframes redEntra { from { opacity: 0; } to { opacity: 1; } }
.red-modal-caja {
  position: relative; width: min(560px, 100%); max-height: 86vh; overflow-y: auto;
  border-radius: 20px; background: rgb(var(--surface)); padding: 28px;
  box-shadow: 0 30px 70px -20px rgb(0 0 0 / .6);
  animation: redSube .26s cubic-bezier(.16,1,.3,1);
}
@keyframes redSube { from { transform: translateY(16px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .red-modal, .red-modal-caja { animation: none; }
}
.red-modal-x {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px;
  border-radius: 50%; display: grid; place-items: center; color: rgb(var(--muted));
}
.red-modal-x:hover { background: rgb(var(--surface-3)); color: rgb(var(--text)); }

.red-ficha-cab { display: flex; gap: 18px; align-items: flex-start; }
.red-ficha-cab img {
  width: 92px; height: 92px; border-radius: 16px; object-fit: cover; flex-shrink: 0;
  background: rgb(var(--surface-3));
}
.red-ficha-cab h2 { font-family: var(--font-heading); font-size: 23px; font-weight: 800; line-height: 1.2; }
.red-ficha-cab p { margin-top: 4px; color: rgb(var(--muted)); font-size: 14px; }
.red-ficha-play {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px 10px 14px; border-radius: 999px;
  background: rgb(var(--accent)); color: rgb(var(--on-accent));
  font-weight: 700; font-size: 14.5px;
  transition: transform .15s ease, filter .15s ease;
}
.red-ficha-play:hover { transform: translateY(-1px); filter: brightness(1.06); }

.red-ficha-bio {
  margin-top: 20px; padding-top: 18px; border-top: 1px solid rgb(var(--border));
  font-size: 15px; line-height: 1.7; color: rgb(var(--text) / .88);
}
.red-ficha-redes { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgb(var(--border)); }
.red-ficha-tit {
  display: block; margin-bottom: 11px;
  font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: rgb(var(--muted));
}
.red-ficha-redes > div { display: flex; flex-wrap: wrap; gap: 8px; }
.red-ficha-redes a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  border: 1px solid rgb(var(--border)); background: rgb(var(--surface-2));
  transition: border-color .15s ease, background .15s ease;
}
.red-ficha-redes a:hover { border-color: rgb(var(--accent)); background: rgb(var(--accent) / .08); }

@media (max-width: 560px) {
  .red-head { padding: 28px 16px 20px; }
  .red-grid { grid-template-columns: minmax(0, 1fr); }
  .red-modal { padding: 0; place-items: end stretch; }
  .red-modal-caja { max-height: 92vh; border-radius: 20px 20px 0 0; padding: 24px 20px; }
  .red-ficha-cab img { width: 72px; height: 72px; }
}

/* ── Las redes de la emisora, dentro del reproductor ──────────────────── */
.player-redes { display: flex; align-items: center; gap: 6px; }
.player-redes:empty { display: none; }
.player-redes a {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  color: rgb(var(--muted)); transition: color .15s ease, background .15s ease;
}
.player-redes a:hover { color: rgb(var(--accent-text)); background: rgb(var(--surface-3)); }
@media (max-width: 860px) { .player-redes { display: none; } }

/* ── Noticias de la filial ────────────────────────────────────────────────
   A propósito en segundo plano: tarjetas pequeñas en una fila que se
   desliza. Las emisoras son el motivo del portal; esto las acompaña. */
.fil { padding: 34px 16px 10px; }
.fil-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.fil-head h2 {
  font-family: var(--font-heading); font-size: 21px; font-weight: 800;
  position: relative; padding-left: 13px;
}
.fil-head h2::before {
  content: ''; position: absolute; left: 0; top: 3px; bottom: 3px;
  width: 4px; border-radius: 3px; background: rgb(var(--accent));
}
.fil-navs { display: flex; gap: 6px; }
.fil-navs .icon-btn { border: 1px solid rgb(var(--border)); }

.fil-row {
  display: flex; gap: 14px; overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none; scroll-snap-type: x proximity; padding-bottom: 4px;
}
.fil-row::-webkit-scrollbar { display: none; }
.fil-card {
  flex: 0 0 236px; scroll-snap-align: start; color: inherit; text-decoration: none;
  border: 1px solid rgb(var(--border)); border-radius: 14px; overflow: hidden;
  background: rgb(var(--surface));
  transition: transform .2s cubic-bezier(.16,1,.3,1), border-color .18s ease;
}
.fil-card:hover { transform: translateY(-3px); border-color: rgb(var(--accent) / .45); }
.fil-img { position: relative; aspect-ratio: 16/10; background: rgb(var(--surface-3)); }
.fil-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fil-cat {
  position: absolute; left: 8px; bottom: 8px;
  padding: 3px 9px; border-radius: 999px;
  background: rgb(var(--accent)); color: rgb(var(--on-accent));
  font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.fil-card h3 {
  padding: 11px 13px 0; font-size: 14px; font-weight: 700; line-height: 1.33;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.fil-card p {
  padding: 5px 13px 13px; font-size: 12.5px; line-height: 1.45; color: rgb(var(--muted));
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 560px) { .fil-card { flex: 0 0 196px; } }

/* Enlace al sitio de donde salen las noticias */
.fil-todas {
  display: inline-flex; align-items: center; gap: 5px; margin-right: 6px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgb(var(--border)); background: rgb(var(--surface));
  font-size: 13px; font-weight: 700; color: rgb(var(--accent-text));
  white-space: nowrap;
  transition: border-color .15s ease, background .15s ease;
}
/* En el móvil no cabe la frase entera y el botón se partía en dos líneas */
@media (max-width: 620px) {
  .fil-todas-mas { display: none; }
  .fil-todas { padding: 7px 12px; }
}
.fil-todas:hover { border-color: rgb(var(--accent)); background: rgb(var(--accent) / .08); }
.fil-todas .material-symbols-outlined { font-size: 16px; }

/* ── Registro público de emisoras ─────────────────────────────────────── */
/* El reproductor flota abajo: sin este hueco taparía el botón de enviar */
.reg-wrap { padding: 40px 16px 150px; }
.reg-caja {
  max-width: 720px; margin: 0 auto; padding: 36px;
  border: 1px solid rgb(var(--border)); border-radius: 20px;
  background: rgb(var(--surface));
}
.reg-caja h1 { font-family: var(--font-heading); font-size: clamp(25px, 3.4vw, 34px); font-weight: 800; }
.reg-intro { margin-top: 12px; color: rgb(var(--muted)); font-size: 15px; line-height: 1.65; }
.reg-error {
  display: flex; align-items: center; gap: 8px; margin-top: 18px;
  padding: 12px 15px; border-radius: 12px; font-size: 14px;
  background: rgb(var(--danger) / .12); border: 1px solid rgb(var(--danger) / .4);
  color: rgb(var(--danger));
}
.reg-form { margin-top: 24px; display: grid; gap: 15px; }
.reg-fila { display: grid; gap: 15px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reg-campo { display: grid; gap: 6px; min-width: 0; }
.reg-campo > span { font-size: 13.5px; font-weight: 700; }
.reg-campo > span i { font-style: normal; color: rgb(var(--danger)); }
.reg-campo input, .reg-campo textarea, .reg-campo select {
  width: 100%; padding: 11px 14px; border-radius: 11px; font: inherit; font-size: 14.5px;
  border: 1px solid rgb(var(--border)); background: rgb(var(--bg)); color: rgb(var(--text));
  transition: border-color .15s ease, box-shadow .15s ease;
}
.reg-campo input:focus, .reg-campo textarea:focus, .reg-campo select:focus {
  outline: none; border-color: rgb(var(--accent)); box-shadow: 0 0 0 3px rgb(var(--accent) / .16);
}
/* El desplegable nativo saca su propia flecha gris y no respeta el modo
   noche: se le quita y se dibuja una con el color del texto. */
.reg-campo select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 19px) calc(50% + 1px), calc(100% - 14px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.reg-campo select option { background: rgb(var(--surface)); color: rgb(var(--text)); }
.reg-campo textarea { resize: vertical; line-height: 1.6; }
.reg-sep {
  margin-top: 10px; padding-top: 16px; border-top: 1px solid rgb(var(--border));
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: rgb(var(--muted));
}
.reg-sep small { font-weight: 600; letter-spacing: 0; text-transform: none; }
.reg-suma { max-width: 220px; }
.reg-enviar { margin-top: 8px; justify-self: start; padding: 13px 28px; font-size: 15.5px; }
.reg-nota { font-size: 13px; color: rgb(var(--muted)); }

/* Subir el logo: un recuadro grande en el que se puede soltar el archivo,
   que al elegirlo enseña la imagen en vez del texto. */
.reg-logo {
  position: relative; display: grid; place-items: center; gap: 8px;
  min-height: 132px; padding: 18px; cursor: pointer; text-align: center;
  border: 1.5px dashed rgb(var(--border)); border-radius: 14px;
  background: rgb(var(--bg));
  transition: border-color .15s ease, background .15s ease;
}
.reg-logo:hover { border-color: rgb(var(--accent)); background: rgb(var(--accent) / .05); }
.reg-logo input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.reg-logo-txt { display: grid; justify-items: center; gap: 3px; }
.reg-logo-txt .material-symbols-outlined { font-size: 30px; color: rgb(var(--accent)); }
.reg-logo-txt b { font-size: 14.5px; }
.reg-logo-txt small { font-size: 12.5px; color: rgb(var(--muted)); }
.reg-logo-prev[hidden] { display: none; }
.reg-logo-prev {
  width: 84px; height: 84px; object-fit: contain;
  border-radius: 12px; background: rgb(var(--surface));
}
.reg-logo.tiene { border-style: solid; border-color: rgb(var(--accent) / .5); }
.reg-logo.tiene .reg-logo-txt .material-symbols-outlined { display: none; }

/* El campo trampa: invisible para una persona, tentador para un robot.
   Nada de display:none, que algunos robots lo detectan. */
.as-trampa {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0;
}

.reg-listo { text-align: center; padding: 20px 0; }
.reg-listo .material-symbols-outlined { font-size: 62px; color: rgb(var(--ok)); }
.reg-listo h1 { margin: 12px 0 10px; }
.reg-listo p { color: rgb(var(--muted)); font-size: 15.5px; line-height: 1.7; max-width: 480px; margin: 0 auto 24px; }

/* La invitación, al final del directorio */
.red-sumar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  flex-wrap: wrap; margin-top: 26px; padding: 22px 26px;
  border: 1px dashed rgb(var(--border)); border-radius: var(--red-r);
  background: rgb(var(--surface-2) / .5);
}
.red-sumar div { min-width: 0; }
.red-sumar b { display: block; font-size: 16px; font-weight: 700; }
.red-sumar span { font-size: 14px; color: rgb(var(--muted)); }

@media (max-width: 620px) {
  .reg-caja { padding: 24px 20px; }
  .reg-fila { grid-template-columns: minmax(0, 1fr); }
}
