/* Eventos Raqueteo — estilos base (pieza 1). Teléfono primero; la computadora desde 900 px.
   Identidad: fondo blanco y gris claro; navy (#00263A) y verde lima (#C0DF16) solo como acentos. Plus Jakarta Sans.
   Cada pieza agrega su archivo (public/css/plan.css, ficha.css…) y usa estos tokens y componentes. */
@font-face {
  font-family: 'Jakarta';
  src: url('/fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jakarta';
  src: url('/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Marca (solo acentos) */
  --navy: #00263a;
  --navy-2: #0b3a55;
  --navy-3: #1d5579;
  --navy-suave: #e6edf2;
  --lima: #c0df16;
  --lima-2: #a9c513;
  --lima-suave: #f4f9d9;
  --lima-texto: #566500; /* lima legible sobre blanco */
  /* Fondos y texto */
  --fondo: #f4f6f8;
  --superficie: #ffffff;
  --borde: #e3e8ee;
  --borde-2: #cfd7e0;
  --texto: #0f2233;
  --texto-2: #4b5d6e;
  --texto-3: #7d8c9a;
  /* Estados */
  --rojo: #d6453d;
  --rojo-suave: #fdecea;
  --ambar: #a86e00;
  --ambar-suave: #fff5df;
  --verde: #1b8a4f;
  --verde-suave: #e5f6ec;
  --azul: #2563c9;
  --azul-suave: #e8f0fd;
  /* Forma */
  --radio: 16px;
  --radio-s: 11px;
  --sombra: 0 1px 2px rgba(0, 38, 58, .05), 0 4px 14px rgba(0, 38, 58, .05);
  --sombra-alta: 0 12px 40px rgba(0, 38, 58, .18);
  --curva: cubic-bezier(.2, .8, .2, 1);
  --lateral: 240px;
  --barra: 64px;
  --cabecera: 56px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Jakarta', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--fondo);
  color: var(--texto);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--navy-3); }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.015em; }
h1 { font-size: 24px; font-weight: 800; }
h2 { font-size: 18px; font-weight: 750; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
.ic { width: 20px; height: 20px; flex: none; }
.tenue { color: var(--texto-3); font-size: 14px; }
.suave { color: var(--texto-2); }
.oculto { display: none !important; }
:focus-visible { outline: 3px solid var(--navy-3); outline-offset: 2px; }

/* ---------- Arranque ---------- */
.arranque { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; background: var(--superficie); }
.arranque img { height: 64px; width: auto; animation: latido 1.4s ease-in-out infinite; }
@keyframes latido { 50% { opacity: .55; transform: scale(.97); } }

/* ---------- Marco: teléfono ---------- */
.marco { min-height: 100vh; min-height: 100dvh; }
.lateral { display: none; }
.columna { min-width: 0; }
.cabecera-movil {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  height: calc(var(--cabecera) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 16px 0;
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--borde);
}
.cabecera-movil img { height: 30px; width: auto; display: block; }
.cabecera-titulo { font-weight: 750; color: var(--texto-2); font-size: 15px; padding-left: 10px; border-left: 1.5px solid var(--borde-2); margin-right: auto; }
.principal { padding: 18px 16px calc(var(--barra) + 28px + env(safe-area-inset-bottom)); max-width: 1100px; }
.barra-inferior {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; justify-content: space-around; gap: 2px;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--borde);
}
.barra-inferior a {
  position: relative; flex: 1; min-width: 0; min-height: 52px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--texto-3); text-decoration: none; font-size: 11.5px; font-weight: 650; border-radius: 12px;
  transition: color .2s, background .2s;
}
.barra-inferior a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barra-inferior a .ic { width: 23px; height: 23px; }
.barra-inferior a.activo { color: var(--navy); background: var(--navy-suave); }
.barra-inferior a.activo::before { content: ''; position: absolute; top: -7px; left: 50%; width: 28px; height: 4px; margin-left: -14px; border-radius: 0 0 4px 4px; background: var(--lima); }
.barra-inferior a:active { transform: scale(.96); }

/* ---------- Marco: computadora ---------- */
@media (min-width: 900px) {
  .marco { display: grid; grid-template-columns: var(--lateral) 1fr; }
  .cabecera-movil, .barra-inferior { display: none; }
  .principal { padding: 32px clamp(24px, 3.5vw, 48px) 64px; }
  .lateral {
    position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px;
    padding: 22px 14px 16px; background: var(--superficie); border-right: 1px solid var(--borde);
  }
  .lateral-logo { display: block; padding: 2px 10px; }
  .lateral-logo img { height: 40px; width: auto; display: block; }
  .lateral-app { padding: 4px 10px 18px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--texto-3); }
  .lateral-menu { display: flex; flex-direction: column; gap: 2px; }
  .lateral-item {
    position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 11px;
    color: var(--texto-2); text-decoration: none; font-weight: 650; transition: background .2s, color .2s;
  }
  .lateral-item:hover { background: var(--fondo); color: var(--texto); }
  .lateral-item.activo { background: var(--navy-suave); color: var(--navy); }
  .lateral-item.activo::before { content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--lima); }
  .lateral-cuenta {
    margin-top: auto; display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 10px; text-align: left;
    border: 0; border-top: 1px solid var(--borde); background: none; border-radius: 0; cursor: pointer;
  }
  .lateral-cuenta:hover .lateral-cuenta-texto b { color: var(--navy-3); }
  .lateral-cuenta-texto { display: grid; min-width: 0; }
  .lateral-cuenta-texto b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lateral-cuenta-texto small { font-size: 12px; color: var(--texto-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  h1 { font-size: 28px; }
}

/* ---------- Avatar ---------- */
.avatar {
  flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 15px; cursor: pointer;
  box-shadow: 0 0 0 2px var(--superficie), 0 0 0 4px var(--lima);
}
.avatar.grande { width: 52px; height: 52px; font-size: 21px; }
.avatar.apagado { background: var(--borde-2); box-shadow: none; }

/* ---------- Páginas ---------- */
.pagina { display: flex; flex-direction: column; gap: 16px; animation: entrar .4s var(--curva) both; }
@keyframes entrar { from { opacity: 0; transform: translateY(8px); } }
.encabezado { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.encabezado-texto { display: grid; gap: 6px; min-width: 0; }
.encabezado-texto p { color: var(--texto-2); }
.volver { display: inline-flex; align-items: center; gap: 4px; color: var(--texto-2); text-decoration: none; font-weight: 650; font-size: 14px; }
.volver .ic { width: 16px; height: 16px; }
.acciones { display: flex; gap: 8px; flex-wrap: wrap; }
.pila { display: flex; flex-direction: column; gap: 12px; }
.fila { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.espacio-arriba { margin-top: 10px; }

/* ---------- Tarjetas ---------- */
.tarjeta { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); box-shadow: var(--sombra); min-width: 0; }
.tarjeta.relleno { padding: 16px; }
.tarjeta-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.tarjeta:not(.relleno) > .tarjeta-cab { padding: 16px 16px 0; }
.tarjeta-cab p { margin-top: 2px; }
@media (min-width: 900px) { .tarjeta.relleno { padding: 20px; } }

/* ---------- Datos (números grandes de Inicio) ---------- */
.datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 10px; }
@media (min-width: 640px) { .datos { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } }
.dato {
  display: grid; gap: 2px; align-content: start; padding: 12px 12px 12px 16px; min-height: 92px;
  background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); box-shadow: var(--sombra);
  color: inherit; text-decoration: none; transition: transform .2s var(--curva), box-shadow .2s;
  position: relative; overflow: hidden;
}
.dato::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--lima); }
.dato:hover { transform: translateY(-2px); box-shadow: var(--sombra-alta); }
.dato-valor { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--navy); line-height: 1.1; }
.dato-icono .ic { width: 30px; height: 30px; }
.dato-rotulo { font-size: 13px; font-weight: 650; color: var(--texto-2); line-height: 1.3; }
@media (min-width: 640px) { .dato { padding: 14px 16px 14px 20px; } .dato-rotulo { font-size: 14px; } }
.dato small { font-size: 12px; color: var(--texto-3); }
.dato.sin-datos::after { background: var(--borde-2); }
.dato.sin-datos .dato-valor { color: var(--texto-3); }

/* ---------- Listas ---------- */
.lista-eventos { display: flex; flex-direction: column; margin: 0 -6px; }
.fila-evento { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-radius: 12px; color: inherit; text-decoration: none; }
.fila-evento + .fila-evento { border-top: 1px solid var(--borde); }
.fila-evento:hover { background: var(--fondo); }
.fila-evento-texto { display: grid; min-width: 0; flex: 1; }
.fila-evento-texto b { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 15px; line-height: 1.3; }
.fila-evento-texto small { color: var(--texto-3); font-size: 13px; }
.fecha-chip { flex: none; width: 50px; display: grid; justify-items: center; padding: 5px 0; border-radius: 12px; background: var(--navy-suave); color: var(--navy); line-height: 1.1; }
.fecha-chip b { font-size: 19px; font-weight: 800; }
.fecha-chip small { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--navy-3); }
.lista-personas { display: flex; flex-direction: column; }
.fila-persona { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 16px; text-align: left; border: 0; background: none; cursor: pointer; }
.fila-persona + .fila-persona { border-top: 1px solid var(--borde); }
.fila-persona:hover { background: var(--fondo); }
.fila-persona .avatar { box-shadow: none; cursor: inherit; }
.fila-persona-texto { display: grid; gap: 1px; flex: 1; min-width: 0; }
.fila-persona-texto b, .fila-persona-texto small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fila-persona-texto small { color: var(--texto-3); font-size: 13px; }
.fila-persona-rol { display: flex; align-items: center; gap: 8px; margin-top: 4px; min-width: 0; }
.fila-persona > .ic { color: var(--texto-3); width: 18px; height: 18px; }
.roles { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.roles li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; color: var(--texto-2); font-size: 15px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 16px; border-radius: var(--radio-s);
  border: 1px solid var(--borde-2); background: var(--superficie); color: var(--texto);
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .15s var(--curva), background .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { border-color: var(--navy-3); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.primario { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primario:hover { background: var(--navy-2); }
.btn.lima { background: var(--lima); border-color: var(--lima); color: var(--navy); }
.btn.lima:hover { background: var(--lima-2); }
.btn.peligro { color: var(--rojo); border-color: #f1c4c0; }
.btn.peligro:hover { background: var(--rojo-suave); }
.btn.peligro-lleno { background: var(--rojo); border-color: var(--rojo); color: #fff; }
.btn.fantasma { border-color: transparent; background: transparent; color: var(--texto-2); }
.btn.fantasma:hover { background: rgba(0, 38, 58, .06); color: var(--texto); }
.btn.chico { min-height: 36px; padding: 6px 12px; font-size: 14px; border-radius: 9px; }
.btn.ancho { width: 100%; }
.btn .ic { width: 18px; height: 18px; }
.btn.chico .ic { width: 16px; height: 16px; }
.girando { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: girar .7s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

/* ---------- Campos ---------- */
.form { display: grid; gap: 14px; }
.campo { display: grid; gap: 6px; min-width: 0; }
.campo-etiqueta { font-size: 14px; font-weight: 700; color: var(--texto-2); }
.campo-etiqueta b { color: var(--rojo); }
.campo small { color: var(--texto-3); font-size: 13px; }
.campo .campo-error { color: var(--rojo); font-weight: 650; }
.entrada {
  width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--borde-2); border-radius: var(--radio-s);
  background: var(--superficie); font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.entrada:focus { border-color: var(--navy-3); box-shadow: 0 0 0 4px rgba(29, 85, 121, .12); }
.campo.con-error .entrada { border-color: var(--rojo); }
.selector {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background: var(--superficie) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5d6e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px;
}
textarea.entrada { min-height: 120px; resize: vertical; }

/* ---------- Etiquetas y notas ---------- */
.etiqueta { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 750; background: #eef1f4; color: var(--texto-2); white-space: nowrap; }
.etiqueta.verde { background: var(--verde-suave); color: var(--verde); }
.etiqueta.ambar { background: var(--ambar-suave); color: var(--ambar); }
.etiqueta.rojo { background: var(--rojo-suave); color: var(--rojo); }
.etiqueta.azul { background: var(--azul-suave); color: var(--azul); }
.etiqueta.lima { background: var(--lima-suave); color: var(--lima-texto); }
.etiqueta.navy { background: var(--navy); color: #fff; }
.nota { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--azul-suave); color: #1c3f73; font-size: 15px; }
.nota .ic { margin-top: 1px; }
.nota.ambar { background: var(--ambar-suave); color: #6b4a00; }
.nota.rojo { background: var(--rojo-suave); color: #8a2620; }
.nota.verde { background: var(--verde-suave); color: #135d36; }

/* ---------- Vacío y cargando ---------- */
.vacio { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 28px 12px; color: var(--texto-2); }
.vacio-icono { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--lima-suave); color: var(--lima-texto); margin-bottom: 4px; }
.vacio-icono .ic { width: 28px; height: 28px; }
.vacio h3 { color: var(--texto); }
.vacio p { max-width: 420px; }
.vacio .btn { margin-top: 8px; }
.esqueleto { background: linear-gradient(90deg, #eceff2 0%, #f6f8f9 50%, #eceff2 100%); background-size: 200% 100%; animation: brillo 1.2s linear infinite; border-radius: 12px; }
@keyframes brillo { to { background-position: -200% 0; } }

/* ---------- Hoja (sube desde abajo en el teléfono) ---------- */
.capa { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 25, 40, .42); animation: aparecer .2s ease both; }
.capa.saliendo { animation: desaparecer .18s ease both; }
.hoja {
  width: 100%; max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column;
  background: var(--superficie); border-radius: 22px 22px 0 0; box-shadow: var(--sombra-alta);
  padding-bottom: env(safe-area-inset-bottom); animation: subir .32s var(--curva) both;
}
.capa.saliendo .hoja { animation: bajar .18s ease both; }
.hoja-asa { width: 40px; height: 5px; border-radius: 3px; background: var(--borde-2); margin: 8px auto 0; flex: none; }
.hoja-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 18px; }
.hoja-cab h2 { font-size: 19px; }
.hoja-cuerpo { padding: 4px 18px 18px; overflow-y: auto; overscroll-behavior: contain; }
.hoja-pie { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid var(--borde); flex-wrap: wrap; }
.hoja-pie .btn { flex: 1; }
.texto-hoja { white-space: pre-line; color: var(--texto-2); }
/* "Avisa tú a los inscritos" (public/js/comun/avisar-inscritos.js) */
.avisar-evento { display: grid; gap: 2px; margin: 12px 0 6px; padding: 10px 12px; border-radius: 12px; background: var(--fondo); }
.avisar-evento small { color: var(--texto-2); }
.avisar-lista { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.avisar-lista li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: 8px 0; border-bottom: 1px solid var(--borde); }
.avisar-lista li:last-child { border-bottom: 0; }
.avisar-quien { display: grid; min-width: 0; }
.avisar-quien b, .avisar-quien small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avisar-quien small { color: var(--texto-2); }
.avisar-lista .btn { flex: none; }
.avisar-texto { margin-top: 12px; }
.avisar-texto summary { cursor: pointer; font-weight: 650; color: var(--navy-3); min-height: 32px; }
.avisar-texto p { white-space: pre-line; margin: 6px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--lima-suave); color: var(--texto); }
.hoja-accion { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 6px; border-radius: 12px; color: var(--texto); text-decoration: none; }
.hoja-accion:hover { background: var(--fondo); }
.hoja-accion b { flex: 1; }
.hoja-icono { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--navy-suave); color: var(--navy); }
.hoja-accion > .ic { color: var(--texto-3); width: 18px; height: 18px; }
@media (min-width: 640px) {
  .capa { align-items: center; padding: 24px; }
  .hoja { width: min(540px, 100%); border-radius: 20px; animation-name: entrar-hoja; padding-bottom: 0; }
  .hoja.ancha { width: min(900px, 100%); }
  .hoja-asa { display: none; }
  .hoja-cab { padding-top: 16px; }
  .hoja-pie .btn { flex: none; }
  .capa.saliendo .hoja { animation-name: salir-hoja; }
}
@keyframes aparecer { from { opacity: 0; } }
@keyframes desaparecer { to { opacity: 0; } }
@keyframes subir { from { transform: translateY(100%); } }
@keyframes bajar { to { transform: translateY(100%); } }
@keyframes entrar-hoja { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes salir-hoja { to { opacity: 0; transform: translateY(8px) scale(.98); } }

/* ---------- Cuenta ---------- */
.cuenta { display: grid; gap: 14px; }
.cuenta-quien { display: flex; align-items: center; gap: 14px; }
.cuenta-quien > div { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.cuenta-quien b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cuenta-quien small { color: var(--texto-3); font-size: 14px; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cuenta-quien .avatar { cursor: default; }
.cuenta-enlaces { display: grid; border-top: 1px solid var(--borde); border-bottom: 1px solid var(--borde); padding: 4px 0; }

/* ---------- Avisos flotantes ---------- */
/* En el teléfono, arriba (debajo de la cabecera): así no tapan la barra de abajo ni las hojas que suben. */
.avisos { position: fixed; z-index: 80; left: 16px; right: 16px; top: calc(var(--cabecera) + 10px + env(safe-area-inset-top)); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.aviso-flotante {
  pointer-events: auto; display: flex; gap: 10px; align-items: center; max-width: 440px; width: 100%;
  padding: 12px 16px; border-radius: 14px; background: var(--navy); color: #fff; font-weight: 650; font-size: 15px;
  box-shadow: var(--sombra-alta); animation: entrar-aviso .35s var(--curva) both;
}
.aviso-flotante .ic { color: var(--lima); }
.aviso-flotante.error { background: var(--rojo); }
.aviso-flotante.error .ic { color: #fff; }
.aviso-flotante.saliendo { animation: salir-aviso .25s ease both; }
@keyframes entrar-aviso { from { opacity: 0; transform: translateY(-12px) scale(.97); } }
@keyframes salir-aviso { to { opacity: 0; transform: translateY(-10px); } }
@media (min-width: 900px) { .avisos { left: auto; right: 24px; top: auto; bottom: 24px; align-items: flex-end; } }

/* ---------- Pantalla de entrada ---------- */
.entrada-pantalla {
  min-height: 100vh; min-height: 100dvh; display: grid; place-items: center;
  padding: calc(28px + env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom));
  background: radial-gradient(120% 60% at 50% 0%, var(--lima-suave) 0%, var(--fondo) 55%);
}
.entrada-caja {
  width: min(100%, 400px); display: grid; gap: 20px; justify-items: center; text-align: center;
  padding: 32px 22px; background: var(--superficie); border: 1px solid var(--borde); border-radius: 24px; box-shadow: var(--sombra-alta);
  animation: entrar .5s var(--curva) both;
}
.entrada-logo { height: 64px; width: auto; }
.entrada-caja h1 { font-size: 27px; color: var(--navy); }
.entrada-frase { margin-top: 6px; color: var(--texto-2); font-size: 16px; }
.entrada-caja .nota { width: 100%; text-align: left; }
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 58px; padding: 12px 18px;
  border-radius: 15px; background: var(--navy); color: #fff; font-size: 18px; font-weight: 800; text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 38, 58, .25); transition: transform .12s, background .2s;
}
.btn-google:hover { background: var(--navy-2); }
.btn-google:active { transform: scale(.98); }
.btn-google .g { width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: #fff; flex: none; }
.entrada-pie { color: var(--texto-3); font-size: 14px; }
.entrada-local { width: 100%; display: grid; gap: 10px; text-align: left; padding-top: 16px; border-top: 1px dashed var(--borde-2); }
.entrada-local-titulo { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--texto-3); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
::view-transition-old(root) { animation: .15s ease both desaparecer; }
::view-transition-new(root) { animation: .25s var(--curva) both entrar; }
