/* Mis avisos — estilo de la web del CEM (web/plantillas_web): blanco y crema, texto ciruela,
   degradado magenta a 120°. Letra Segoe UI (decisión de Raúl, 27/11/2026). */
:root {
  --degradado: linear-gradient(120deg, #b6017c 0%, #c42a62 55%, #d0434f 100%);
  --degradado-hover: linear-gradient(120deg, #c4148c 0%, #d23c72 55%, #dc5660 100%);
  --magenta: #b6017c;
  --texto-rosa: #7a0a52;
  --texto: #2a1420;
  --cuerpo: #4a3a42;
  --suave: #76656d;
  --tenue: #a8979f;
  --crema: #fcf6f3;
  --rosa-claro: #fde3e6;
  --rosa-hover: #fbd2d9;
  --linea: #f0e4e2;
  --campo-borde: #e6d6d4;
  --rojo: #c4282c;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #fff; }
body {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 14px; color: var(--cuerpo);
  -webkit-font-smoothing: antialiased; user-select: none; overflow: hidden;
}
button, input, textarea { font: inherit; color: inherit; }

/* ---------- banda de arriba ---------- */
.banda {
  background: var(--degradado); color: #fff;
  display: flex; align-items: center; gap: 4px;
  height: 46px; padding: 0 8px 0 12px;
}
.banda h1 { font-size: 15.5px; font-weight: 700; margin: 0; flex: 1; min-width: 0; white-space: nowrap;
  display: flex; align-items: center; gap: 2px; }
.banda h1 .espacio { flex: 1; }
.banda .icono {
  background: none; border: 0; color: #fff; cursor: pointer;
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.banda .icono:hover { background: rgba(255,255,255,.18); }
.banda .icono svg { width: 18px; height: 18px; }
/* flechas de mes, junto al título: círculo blanco, todo el círculo es el botón */
.icono-blanco {
  width: 24px; height: 24px; flex: none; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: #fff; color: var(--magenta);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 3px rgba(42,20,32,.18); transition: transform .1s, background .15s;
}
.icono-blanco:hover { background: var(--rosa-claro); transform: scale(1.06); }
.icono-blanco:active { transform: scale(.96); }
.icono-blanco svg { width: 14px; height: 14px; }
/* «+» del pie (abre la frase rápida) */
.circulo-claro {
  width: 34px; height: 34px; flex: none; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: var(--rosa-claro); color: var(--texto-rosa);
  display: inline-flex; align-items: center; justify-content: center; transition: background .15s;
}
.circulo-claro:hover, .circulo-claro.activo { background: var(--rosa-hover); }
.circulo-claro svg { width: 17px; height: 17px; }
.banda .titulo-btn {
  background: none; border: 0; color: #fff; cursor: pointer; font: inherit;
  display: inline-flex; align-items: center; gap: 2px; padding: 3px 5px; border-radius: 9px;
  white-space: nowrap;
}
.banda .titulo-btn:hover, .banda .titulo-btn.abierto { background: rgba(255,255,255,.18); }
.banda .titulo-btn svg { width: 14px; height: 14px; transition: transform .15s; }
.banda .titulo-btn.abierto svg { transform: rotate(180deg); }
.banda .hoy {
  background: rgba(255,255,255,.16); border: 0; color: #fff; cursor: pointer;
  font-weight: 600; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; margin-right: 2px; flex: none;
}
.banda .hoy:hover { background: rgba(255,255,255,.28); }

.cuerpo { padding: 10px 16px 14px; }

/* ---------- caja rápida ---------- */
.rapida {
  margin-bottom: 4px; display: flex; align-items: center; gap: 8px;
  background: var(--crema); border: 1px solid var(--campo-borde); border-radius: 12px;
  padding: 0 12px; height: 40px; transition: border-color .15s, box-shadow .15s;
}
.rapida:focus-within { border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(182,1,124,.12); }
.rapida .mas { color: var(--texto-rosa); font-weight: 700; font-size: 18px; line-height: 1; }
.rapida input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--texto); }
.previa { margin: 6px 2px 0; font-size: 12.5px; color: var(--suave); line-height: 1.35; }
.previa b { color: var(--texto); font-weight: 600; }

/* ---------- calendario ---------- */
.semana, .fila-sem { display: grid; grid-template-columns: repeat(7, 1fr); }
.semana { margin-top: 2px; }
/* La tira continua de semanas: se ven 6 (alto fijo) y se desliza con la rueda; al parar, el mes
   que más se ve se encaja entero (asentar() en app.js). Sin barra de desplazamiento a la vista. */
.tira-cal {
  height: calc(38px * 6); overflow-y: auto; margin-top: 4px;
  scrollbar-width: none; overscroll-behavior: contain;
}
.tira-cal::-webkit-scrollbar { display: none; }
.fila-sem { height: 38px; }

/* desplegables de mes y año (bajo el título) */
.menu.desp { max-height: 300px; overflow-y: auto; min-width: 150px; }
.menu.desp button.este { color: var(--magenta); font-weight: 700; }
.menu.desp button.actual { background: var(--degradado); color: #fff; font-weight: 600; }
.menu.desp::-webkit-scrollbar { width: 6px; }
.menu.desp::-webkit-scrollbar-thumb { background: var(--campo-borde); border-radius: 3px; }
.semana span { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--tenue); }
.dia {
  position: relative; height: 38px; display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.dia .num {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13.5px; color: var(--cuerpo); transition: background .12s;
}
/* sábados y domingos: mismo color de número que el resto y un fondo gris muy suave (Raúl, 27/11) */
.dia.finde .num { background: #f4f2f3; }
.dia.festivo .num { color: var(--rojo); font-weight: 700; }   /* festivos de Puerto del Rosario */
.dia.fuera .num { color: #d9cdd0; }          /* días de los meses vecinos, apagados */
.dia.fuera.festivo .num { color: #eab4b5; }
.dia.fuera .punto { opacity: .4; }
.dia:hover .num { background: var(--crema); }
.dia.sel .num { box-shadow: inset 0 0 0 1.5px var(--magenta); font-weight: 700; color: var(--texto); }
.dia.sel.festivo .num { color: var(--rojo); }   /* elegido, sigue en rojo */
.dia.hoy .num { background: var(--degradado); color: #fff; font-weight: 700; box-shadow: none; }
.dia .punto {
  position: absolute; bottom: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--magenta);
}
.dia .punto.imp { background: var(--rojo); }

/* ---------- lista del día ---------- */
.separador { height: 1px; background: var(--linea); margin: 12px 0 10px; }
.titulo-dia { font-weight: 700; color: var(--texto); font-size: 14px; margin-bottom: 4px; }
.festivo-dia { color: var(--rojo); font-weight: 600; font-size: 13px; margin: -2px 0 4px; }
.vacio { color: var(--tenue); padding: 4px 0; }
.lista { max-height: var(--alto-lista, none); overflow-y: auto; margin: 0 -6px; }
.fila {
  display: flex; align-items: flex-start; gap: 8px; padding: 7px 6px; border-radius: 10px; cursor: pointer;
}
.fila:hover { background: var(--crema); }
.fila .hora { width: 44px; flex: none; color: var(--texto-rosa); font-weight: 700; padding-top: 1px; }
.fila .caja {
  width: 18px; height: 18px; flex: none; margin-top: 2px; border-radius: 5px;
  border: 1.5px solid var(--tenue); background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.fila .caja:hover { border-color: var(--magenta); }
.fila .caja.marcada { background: var(--degradado); border: 0; }
.fila .caja svg { width: 12px; height: 12px; }
.fila .txt { flex: 1; min-width: 0; }
.fila .tit { color: var(--texto); line-height: 1.35; overflow-wrap: anywhere; }
.fila .tit.tachado { text-decoration: line-through; color: var(--suave); }
.fila .sub { font-size: 12.5px; color: var(--suave); margin-top: 1px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.fila .sub.rojo { color: var(--rojo); font-weight: 600; }
.bandera { color: var(--rojo); display: inline-flex; vertical-align: -2px; margin-right: 4px; }
.bandera svg { width: 13px; height: 13px; }

/* ---------- botones ---------- */
.pie { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.pie .espacio { flex: 1; }
.btn {
  border: 0; cursor: pointer; border-radius: 12px; font-weight: 600; font-size: 13.5px;
  padding: 8px 16px; line-height: 1.2; transition: background .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn--primario { background: var(--degradado); color: #fff; box-shadow: 0 2px 8px rgba(182,1,124,.22); }
.btn--primario:hover { background: var(--degradado-hover); }
.btn--claro { background: var(--rosa-claro); color: var(--texto-rosa); }
.btn--claro:hover { background: var(--rosa-hover); }
.btn--peligro { background: none; color: var(--rojo); padding-left: 4px; padding-right: 4px; }
.btn--peligro:hover { text-decoration: underline; }
.btn--peligro-lleno { background: #fbe5e5; color: var(--rojo); }
.btn--peligro-lleno:hover { background: #f7d4d4; }
.enlace { background: none; border: 0; color: var(--suave); cursor: pointer; font-size: 13px; padding: 0; }
.enlace:hover { color: var(--texto-rosa); text-decoration: underline; }

/* ---------- formulario ---------- */
.fila-campos { display: flex; gap: 12px; }
.fila-campos > .campo:first-child { flex: 1; }
.campo { margin-top: 10px; }
.campo label { display: block; font-size: 12px; font-weight: 600; color: var(--suave); margin: 0 0 4px 2px; }
.entrada, textarea.entrada, .desplegable {
  width: 100%; background: var(--crema); border: 1px solid var(--campo-borde); border-radius: 10px;
  padding: 8px 11px; color: var(--texto); outline: 0; transition: border-color .15s, box-shadow .15s;
}
textarea.entrada { resize: none; height: 56px; line-height: 1.35; }
.entrada:focus, .desplegable:focus { border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(182,1,124,.12); }
.entrada.corta { width: 86px; text-align: center; }
.entrada.mini { width: 52px; text-align: center; padding: 8px 4px; }
.desplegable {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%2376656d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; padding-right: 30px;
}
/* campo con icono dentro (Fecha) */
.con-icono { position: relative; }
.con-icono .entrada { padding-right: 40px; }
.icono-campo {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; cursor: pointer;
  color: var(--suave); display: flex; align-items: center; justify-content: center;
}
.icono-campo:hover, .icono-campo.activo { background: var(--rosa-claro); color: var(--texto-rosa); }
.icono-campo svg { width: 18px; height: 18px; }

/* calendario pequeño para elegir la fecha */
.menu.picker { width: 252px; padding: 10px; }
.picker-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.picker-cab span { font-weight: 700; color: var(--texto); font-size: 13.5px; }
.menu .picker-flecha {
  width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: var(--rosa-claro);
  color: var(--texto-rosa); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.menu .picker-flecha:hover { background: var(--rosa-hover); }
.menu .picker-flecha svg { width: 15px; height: 15px; }
.picker-semana, .picker-dias { display: grid; grid-template-columns: repeat(7, 1fr); }
.picker-semana span { text-align: center; font-size: 11px; font-weight: 700; color: var(--tenue); padding: 2px 0; }
.picker-dias { grid-auto-rows: 32px; }
.menu .picker-dias button {
  width: 30px; height: 30px; margin: 1px auto; padding: 0; border-radius: 50%; text-align: center;
  font-size: 13px; color: var(--cuerpo); display: block;
}
.menu .picker-dias button.finde { background: #f4f2f3; }   /* como el calendario grande */
.menu .picker-dias button.festivo { color: var(--rojo); font-weight: 700; }
.menu .picker-dias button:hover { background: var(--crema); color: var(--texto); }
.menu .picker-dias button.hoy { box-shadow: inset 0 0 0 1.5px var(--magenta); font-weight: 700; }
.menu .picker-dias button.sel { background: var(--degradado); color: #fff; font-weight: 700; box-shadow: none; }

.repetir { display: flex; align-items: center; gap: 8px; }
.repetir .desplegable { flex: 1; }
.repetir .cada { font-size: 12.5px; color: var(--suave); }
.cabecera-form { display: flex; align-items: center; justify-content: space-between; }
.conmutador { display: inline-flex; background: var(--rosa-claro); border-radius: 10px; padding: 3px; }
.conmutador button {
  border: 0; background: none; cursor: pointer; padding: 5px 14px; border-radius: 8px;
  font-weight: 600; font-size: 13px; color: var(--texto-rosa);
}
.conmutador button.activo { background: var(--degradado); color: #fff; }
.importante {
  border: 1px solid var(--campo-borde); background: #fff; cursor: pointer; border-radius: 999px;
  padding: 4px 12px; font-weight: 600; font-size: 13px; color: var(--tenue);
  display: inline-flex; align-items: center; gap: 5px; margin-left: auto;
}
.importante svg { width: 13px; height: 13px; }
.importante.activo { color: var(--rojo); border-color: #efb9b9; background: #fdf0f0; }
.error { color: var(--rojo); font-weight: 600; font-size: 12.5px; margin-top: 10px; }
.aviso-borrar { color: var(--suave); font-size: 12.5px; margin-top: 10px; }

/* ---------- ventanita de aviso ---------- */
/* importante: borde rojo alrededor y la marca «⚑ Importante» en la banda */
body.ventanita.importante-v { box-shadow: inset 0 0 0 2px var(--rojo); }
.banda .marca-imp {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700;
  background: #fff; color: var(--rojo); padding: 3px 9px; border-radius: 999px; margin-right: 4px;
}
.banda .marca-imp svg { width: 12px; height: 12px; }
.vent { padding: 12px 16px 14px; }
.vent h2 { font-size: 17px; color: var(--texto); margin: 2px 0 0; line-height: 1.3; overflow-wrap: anywhere; }
.vent .nota { margin-top: 4px; color: var(--cuerpo); line-height: 1.4; white-space: pre-wrap; }
.vent .cuando { margin-top: 6px; color: var(--suave); }
.vent .pend { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; color: var(--texto); }
.vent .pend .venc { color: var(--rojo); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.menu {
  position: absolute; background: #fff; border: 1px solid var(--linea); border-radius: 12px;
  box-shadow: 0 8px 24px rgba(42,20,32,.16); padding: 4px; z-index: 10; min-width: 170px;
}
.menu button {
  display: block; width: 100%; text-align: left; border: 0; background: none; cursor: pointer;
  padding: 7px 12px; border-radius: 8px; color: var(--texto);
}
.menu button:hover { background: var(--rosa-claro); color: var(--texto-rosa); }

.lista::-webkit-scrollbar { width: 6px; }
.lista::-webkit-scrollbar-thumb { background: var(--campo-borde); border-radius: 3px; }

/* =====================================================================================
   Mis avisos sincronizado (28/11/2026): navegador, móvil, menú ☰, cuenta y administración.
   Maquetas aprobadas en _maqueta/sync/pantallas.html (revisadas por Marta).
   ===================================================================================== */

/* En el navegador y el móvil la página ocupa el ancho (hasta 480 px) y se puede desplazar */
body.web { overflow: auto; background: #f6f1f2; }
body.web #app, body.web #pagina { max-width: 480px; margin: 0 auto; background: #fff; min-height: 100vh;
  position: relative; }
body.web { user-select: text; }

/* Sin conexión (PC): franja fina bajo la banda */
.franja-red { background: #fbe5e5; color: var(--rojo); font-weight: 600; font-size: 12.5px; text-align: center; padding: 5px 8px; }

/* Menú ☰ */
.velo { position: absolute; inset: 46px 0 0 0; background: rgba(42,20,32,.25); z-index: 20; }
.menu-lateral { position: absolute; top: 46px; left: 0; width: 230px; bottom: 0; background: #fff; z-index: 21;
  box-shadow: 6px 0 24px rgba(42,20,32,.16); padding: 8px; }
.menu-lateral button { display: block; width: 100%; text-align: left; border: 0; background: none;
  padding: 11px 12px; border-radius: 10px; color: var(--texto); font-size: 14.5px; cursor: pointer; }
.menu-lateral button:hover { background: var(--rosa-claro); color: var(--texto-rosa); }

/* Páginas de cuenta (entrar, crear cuenta, cuenta, administración, aviso) */
.acceso { padding: 10px 16px 16px; }
.acceso h2 { font-size: 16px; color: var(--texto); margin: 4px 0 2px; }
.acceso .quien { color: var(--suave); margin-bottom: 4px; }
.acceso .pie { margin-top: 18px; }
.btn.ancho { width: 100%; padding: 10px 16px; }
.debajo { text-align: center; margin-top: 12px; }
.nota-campo { font-size: 12px; color: var(--suave); margin: 4px 0 0 2px; }
.nota-campo.rojo { color: var(--rojo); font-weight: 600; }
.grande-centro { text-align: center; padding: 28px 22px 24px; }
.grande-centro .simbolo { width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center; background: var(--rosa-claro); color: var(--texto-rosa); }
.grande-centro .simbolo svg { width: 26px; height: 26px; }
.grande-centro h2 { font-size: 16px; color: var(--texto); margin: 0 0 6px; }
.grande-centro p { margin: 0 0 4px; color: var(--cuerpo); }
.botones-col { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.seccion { margin-top: 14px; }
.seccion:first-child { margin-top: 2px; }
.seccion h3 { font-size: 14px; font-weight: 700; color: var(--texto); margin: 0 0 2px 2px; }
.linea { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--linea); }
.linea:last-child { border-bottom: 0; }
.linea .txt { flex: 1; min-width: 0; }
.linea .tit { color: var(--texto); overflow-wrap: anywhere; }
.linea .sub { font-size: 12.5px; color: var(--suave); }
.linea .este { font-size: 11.5px; font-weight: 700; color: var(--texto-rosa); background: var(--rosa-claro);
  padding: 1px 8px; border-radius: 999px; margin-left: 6px; }
.linea .acciones { display: flex; gap: 6px; flex: none; align-items: center; }
.linea.inactivo .tit { color: var(--suave); }
.adm .linea { flex-wrap: wrap; row-gap: 4px; }
.adm .linea .txt { flex-basis: 100%; }
.adm .linea .acciones { margin-left: auto; }
.estado { display: flex; align-items: center; gap: 8px; color: var(--texto); }
.estado .luz { width: 10px; height: 10px; border-radius: 50%; background: #2e9d5b; }
.estado .luz.no { background: var(--tenue); }
.btn--small { padding: 5px 12px; font-size: 12.5px; border-radius: 10px; }
.chip { white-space: nowrap; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.chip.si { background: #e3f4ea; color: #1f7a45; }
.chip.no { background: #f1ecee; color: var(--suave); }
.chip.pend { background: var(--rosa-claro); color: var(--texto-rosa); }
.barra-invitar { display: flex; gap: 8px; margin-bottom: 12px; }
.barra-invitar .entrada { flex: 1; }
.pasos { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: p; }
.pasos li { counter-increment: p; display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; color: var(--texto); }
.pasos li::before { content: counter(p); width: 22px; height: 22px; flex: none; border-radius: 50%;
  background: var(--degradado); color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; }
.compartir { display: inline-flex; vertical-align: -3px; color: #0a7aff; }
.compartir svg { width: 16px; height: 16px; }
.ok-txt { color: #1f7a45; font-weight: 600; font-size: 12.5px; margin-top: 10px; }

/* Móvil: todo lo que se toca, al menos 44 px (Marta) */
@media (pointer: coarse) {
  .btn { padding: 12px 18px; font-size: 14.5px; }
  .btn--small { padding: 10px 14px; font-size: 13.5px; }
  .btn--peligro { padding: 12px 12px; }
  .banda { height: 54px; }
  .banda .icono { width: 44px; height: 44px; }
  .banda .icono svg { width: 22px; height: 22px; }
  .icono-blanco { width: 32px; height: 32px; }
  .fila-sem, .dia { height: 44px; }
  .dia .num { width: 36px; height: 36px; font-size: 14.5px; }
  .tira-cal { height: calc(44px * 6); }
  .circulo-claro { width: 44px; height: 44px; }
  .fila { padding: 10px 6px; }
  .fila .caja { width: 22px; height: 22px; }
  .menu-lateral { top: 54px; }
  .velo { inset: 54px 0 0 0; }
  .entrada, .desplegable { padding: 11px 12px; font-size: 16px; }   /* 16 px: iPhone no hace zoom al escribir */
}
