/* Portal de clientes · Atentamente Gaby */
@font-face { font-family: "Anton"; src: url("/fonts/Anton-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/Manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Gochi Hand"; src: url("/fonts/GochiHand-Regular.woff2") format("woff2"); font-display: swap; }

:root {
  --bordo: #4a0505;
  --bordo-2: #6b1414;
  --camel: #a58f78;
  --oliva: #70735b;
  --papel: #fdfbf7;
  --crema: #f8f2e6;
  --tinta: #2a1714;
  --suave: #7a6a5f;
  --linea: rgba(74, 5, 5, 0.12);
  --sombra: 0 1px 2px rgba(74, 5, 5, .06), 0 8px 24px rgba(74, 5, 5, .07);
  --radio: 18px;
  --anton: "Anton", Impact, sans-serif;
  --manrope: "Manrope", system-ui, -apple-system, sans-serif;
  --gochi: "Gochi Hand", cursive;
  --nav-alto: 68px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--papel); color: var(--tinta);
  font-family: var(--manrope); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--bordo); }
.oculto { display: none !important; }
:focus-visible { outline: 2px solid var(--camel); outline-offset: 2px; }

/* ---------- tipografía ---------- */
.titulo { margin: 0; font-family: var(--anton); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: 1; color: var(--bordo); }
.titulo-chico { font-size: 1.6rem; }
.antetitulo { display: block; font-family: var(--gochi); font-size: 1.35rem; color: var(--camel); line-height: 1; margin-bottom: 4px; text-transform: none; }
.encabezado { margin: 4px 0 18px; }
.encabezado p { margin: 8px 0 0; color: var(--suave); font-size: .95rem; }
.firma { font-family: var(--gochi); color: var(--camel); font-size: 1.25rem; text-align: center; padding: 28px 0 8px; }
.texto-suave { color: var(--suave); }
.chico { font-size: .85rem; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--bordo);
  background: var(--bordo); color: var(--papel); font-weight: 700; font-size: .95rem; text-decoration: none;
  transition: transform .12s ease, background .2s ease, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-claro { background: transparent; color: var(--bordo); }
.btn-oliva { background: var(--oliva); border-color: var(--oliva); }
.btn-chico { min-height: 36px; padding: 0 14px; font-size: .85rem; }
.btn-bloque { width: 100%; }
.btn-link { background: none; border: 0; padding: 4px 0; color: var(--suave); text-decoration: underline; text-underline-offset: 3px; font-size: .88rem; }
.btn-peligro { background: transparent; color: #8d1b1b; border-color: rgba(141, 27, 27, .4); }
.icono-btn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--linea); background: #fff; display: inline-grid; place-items: center; color: var(--bordo); }
.icono-btn svg { width: 20px; height: 20px; }

/* ---------- formularios ---------- */
.campo { display: block; margin-bottom: 14px; }
.campo > span { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--oliva); margin-bottom: 6px; }
.campo input, .campo textarea, .campo select {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--linea);
  background: #fff; font-size: 16px; transition: border-color .2s;
}
.campo textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.campo input:focus, .campo textarea:focus, .campo select:focus { outline: none; border-color: var(--camel); }
.campo small { display: block; color: var(--suave); margin-top: 6px; font-size: .8rem; }
.fila { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.opciones { display: flex; flex-wrap: wrap; gap: 8px; }
.opcion { position: relative; }
.opcion input { position: absolute; opacity: 0; pointer-events: none; }
.opcion span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--linea); background: #fff; font-weight: 600; font-size: .9rem; cursor: pointer; }
.opcion input:checked + span { background: var(--bordo); color: var(--papel); border-color: var(--bordo); }
.opcion input:focus-visible + span { outline: 2px solid var(--camel); outline-offset: 2px; }
.check-linea { display: flex; align-items: center; gap: 10px; margin: 4px 0 18px; font-size: .95rem; cursor: pointer; }
.check-linea input { width: 20px; height: 20px; accent-color: var(--bordo); }
.error { background: #fbeaea; color: #8d1b1b; padding: 10px 14px; border-radius: 12px; font-size: .9rem; margin-bottom: 14px; }

/* ---------- login ---------- */
.pantalla-login { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background:
  radial-gradient(circle at 15% 10%, rgba(165, 143, 120, .22), transparent 40%),
  radial-gradient(circle at 90% 90%, rgba(112, 115, 91, .18), transparent 45%), var(--papel); }
.login-caja { width: 100%; max-width: 400px; }
.login-marca { text-align: center; margin-bottom: 26px; }
.login-marca img { width: 86px; height: 86px; object-fit: cover; border-radius: 50%; margin: 0 auto 14px; border: 3px solid #fff; box-shadow: var(--sombra); background: #fff; }
.login-marca .titulo { font-size: 2.6rem; }
.login-marca .antetitulo { font-size: 1.5rem; }
.tarjeta { background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); border: 1px solid var(--linea); padding: 22px; }
.login-pie { text-align: center; margin-top: 18px; color: var(--suave); font-size: .85rem; }

/* ---------- bienvenida ---------- */
.bienvenida { min-height: 100dvh; padding: 32px 22px 40px; max-width: 560px; margin: 0 auto; text-align: center; }
.bienvenida-foto { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin: 6px auto 18px; border: 4px solid #fff; box-shadow: var(--sombra); }
.bienvenida .titulo { font-size: 2.5rem; }
.bienvenida .antetitulo { font-size: 1.7rem; }
.bienvenida-bio { margin: 18px auto 26px; color: var(--tinta); max-width: 440px; }
.pasos { display: grid; gap: 10px; text-align: left; margin: 0 0 28px; padding: 0; list-style: none; }
.pasos li { display: flex; gap: 14px; align-items: flex-start; background: var(--crema); border-radius: 14px; padding: 14px 16px; }
.pasos b { display: block; font-size: .98rem; }
.pasos span { font-size: .88rem; color: var(--suave); }
.paso-num { flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--bordo); color: var(--papel); display: grid; place-items: center; font-family: var(--anton); font-size: 1rem; }

/* ---------- estructura del portal ---------- */
.barra-sup { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: rgba(253, 251, 247, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--linea); }
.barra-sup .marca-mini { display: flex; align-items: center; gap: 8px; font-family: var(--gochi); color: var(--bordo); font-size: 1.2rem; background: none; border: 0; padding: 0; }
.barra-sup .marca-mini img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #fff; border: 1px solid var(--linea); }
.barra-acciones { display: flex; gap: 8px; align-items: center; }

.portada { position: relative; height: 190px; background: linear-gradient(135deg, var(--bordo) 0%, var(--bordo-2) 45%, var(--camel) 100%); overflow: hidden; }
.portada > img { width: 100%; height: 100%; object-fit: cover; }
.portada::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(42, 10, 8, .55) 100%); }
.portada-patron { position: absolute; inset: 0; opacity: .14; background-image: radial-gradient(var(--papel) 1.2px, transparent 1.4px); background-size: 18px 18px; }
.saludo { position: relative; max-width: 1100px; margin: -46px auto 0; padding: 0 18px; display: flex; align-items: flex-end; gap: 14px; z-index: 2; }
.saludo-logo { flex: 0 0 auto; width: 92px; height: 92px; border-radius: 50%; background: #fff; border: 4px solid var(--papel); box-shadow: var(--sombra); overflow: hidden; display: grid; place-items: center; font-family: var(--anton); font-size: 2rem; color: var(--bordo); }
.saludo-logo img { width: 100%; height: 100%; object-fit: cover; }
.saludo-texto { padding-bottom: 4px; min-width: 0; }
.saludo-texto .antetitulo { color: var(--camel); }
.saludo-texto .titulo { font-size: 2rem; overflow-wrap: anywhere; }

.contenedor { max-width: 1100px; margin: 0 auto; padding: 22px 18px calc(var(--nav-alto) + 40px); }

/* navegación: abajo en celular, pestañas en compu */
.nav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(var(--n, 3), 1fr);
  background: #fff; border-top: 1px solid var(--linea); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -6px 20px rgba(74, 5, 5, .06); }
.nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: var(--nav-alto); color: var(--suave); text-decoration: none; font-size: .74rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; position: relative; }
.nav a svg { width: 24px; height: 24px; }
.nav a.activo { color: var(--bordo); }
.nav a.activo::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--bordo); }
.punto { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #c0392b; box-shadow: 0 0 0 2px #fff; }
.nav .punto { position: absolute; top: 12px; right: calc(50% - 20px); }

@media (min-width: 860px) {
  .portada { height: 250px; }
  .saludo { margin-top: -58px; }
  .saludo-logo { width: 116px; height: 116px; }
  .saludo-texto .titulo { font-size: 2.8rem; }
  .nav { position: sticky; top: 61px; bottom: auto; max-width: 1100px; margin: 18px auto 0; display: flex; gap: 6px; padding: 0 18px; background: transparent; border: 0; box-shadow: none; }
  .nav a { flex-direction: row; height: 44px; padding: 0 18px; border-radius: 999px; font-size: .82rem; background: #fff; border: 1.5px solid var(--linea); }
  .nav a svg { width: 18px; height: 18px; }
  .nav a.activo { background: var(--bordo); color: var(--papel); border-color: var(--bordo); }
  .nav a.activo::before { display: none; }
  .nav .punto { top: 6px; right: 8px; }
  .contenedor { padding-bottom: 60px; }
}

/* ---------- cronograma ---------- */
.mes-control { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.mes-control .titulo { font-size: 1.7rem; text-align: center; flex: 1; }
.leyenda { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 16px; padding: 0; list-style: none; font-size: .8rem; color: var(--suave); justify-content: center; }
.leyenda li { display: inline-flex; align-items: center; gap: 6px; }
.bolita { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.e-idea { --c: var(--camel); --t: #fff; }
.e-grabado { --c: var(--oliva); --t: #fff; }
.e-editado { --c: #c98f2e; --t: #fff; }
.e-publicado { --c: var(--bordo); --t: #fff; }
.bolita { background: var(--c); }

.calendario { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); box-shadow: var(--sombra); overflow: hidden; }
.cal-dias, .cal-grilla { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dias div { text-align: center; padding: 10px 0; font-size: .72rem; font-weight: 800; letter-spacing: .06em; color: var(--oliva); text-transform: uppercase; background: var(--crema); }
.cal-celda { min-height: 64px; border-top: 1px solid var(--linea); border-left: 1px solid var(--linea); padding: 6px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; background: #fff; text-align: left; border-right: 0; border-bottom: 0; font-size: inherit; }
.cal-celda:nth-child(7n+1) { border-left: 0; }
.cal-celda.fuera { background: #fcfaf6; }
.cal-celda.fuera .cal-num { opacity: .3; }
.cal-num { font-size: .85rem; font-weight: 700; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.cal-celda.hoy .cal-num { background: var(--bordo); color: var(--papel); }
.cal-celda.con-contenido { cursor: pointer; }
.cal-puntos { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; }
.cal-chips { display: none; }
.cal-celda.seleccionada { background: var(--crema); }

@media (min-width: 860px) {
  .cal-celda { min-height: 118px; align-items: stretch; padding: 8px; }
  .cal-num { align-self: flex-end; }
  .cal-puntos { display: none; }
  .cal-chips { display: flex; flex-direction: column; gap: 4px; }
  .chip { display: flex; align-items: center; gap: 6px; width: 100%; border: 0; border-radius: 8px; padding: 5px 8px; background: var(--c); color: var(--t); font-size: .76rem; font-weight: 700; text-align: left; line-height: 1.25; position: relative; }
  .chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
  .chip .punto { width: 8px; height: 8px; box-shadow: none; background: #fff; }
  .chip .ok { flex: 0 0 auto; width: 14px; height: 14px; }
  .admin .cal-celda:not(.fuera):hover { background: var(--crema); }
  .agenda { display: none; }
  .pendientes { display: grid; grid-template-columns: 220px 1fr; gap: 0 20px; align-items: start; }
  .pendientes > div { grid-column: 2; grid-row: 1 / span 9; }
}

/* agenda (lista del mes) */
.agenda { margin-top: 22px; }
.agenda-dia { margin-bottom: 16px; scroll-margin-top: 80px; }
.agenda-fecha { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; }
.agenda-fecha b { font-family: var(--anton); font-weight: 400; font-size: 1.5rem; color: var(--bordo); line-height: 1; }
.agenda-fecha span { font-family: var(--gochi); color: var(--camel); font-size: 1.15rem; }
.tarjeta-contenido { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px; margin-bottom: 8px; border-radius: 16px; background: #fff; border: 1px solid var(--linea); box-shadow: var(--sombra); border-left: 6px solid var(--c); position: relative; }
.tarjeta-contenido .info { flex: 1; min-width: 0; }
.tarjeta-contenido b { display: block; font-size: 1rem; line-height: 1.3; }
.tarjeta-contenido small { color: var(--suave); font-size: .8rem; }
.tarjeta-contenido .flecha { color: var(--camel); flex: 0 0 auto; }
.tarjeta-contenido > .punto { position: absolute; top: 10px; right: 10px; }
.estado-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--c); color: var(--t); font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--crema); color: var(--tinta); font-size: .78rem; font-weight: 700; }
.pill-ok { background: rgba(112, 115, 91, .15); color: var(--oliva); }
.pill-espera { background: rgba(201, 143, 46, .16); color: #8a5a10; }
.metas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

.pendientes { background: var(--bordo); color: var(--papel); border-radius: var(--radio); padding: 18px; margin-bottom: 18px; box-shadow: var(--sombra); }
.pendientes .antetitulo { color: #e9d7c2; }
.pendientes h3 { margin: 0 0 10px; font-family: var(--anton); font-weight: 400; text-transform: uppercase; font-size: 1.4rem; line-height: 1.05; }
.pendientes button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: var(--papel); border-radius: 12px; padding: 12px 14px; margin-top: 8px; font-weight: 600; }
.pendientes button small { opacity: .75; font-weight: 500; }
.pendientes .mas { background: none; border: 0; justify-content: center; text-decoration: underline; text-underline-offset: 3px; font-size: .88rem; }

.vacio { text-align: center; padding: 30px 16px; color: var(--suave); }
.vacio .antetitulo { font-size: 1.5rem; }

/* ---------- hoja / modal ---------- */
#capa:empty { display: none; }
.fondo-modal { position: fixed; inset: 0; z-index: 50; background: rgba(42, 23, 20, .45); display: flex; align-items: flex-end; justify-content: center; animation: aparecer .2s ease; }
.hoja { width: 100%; max-width: 640px; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; background: var(--papel); border-radius: 24px 24px 0 0; padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); animation: subir .28s cubic-bezier(.2, .8, .2, 1); position: relative; }
.hoja::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--linea); margin: 0 auto 12px; }
.hoja-cerrar { position: sticky; top: 0; float: right; margin: -4px -6px 0 0; z-index: 2; }
.hoja-chica { max-width: 460px; }
@media (min-width: 700px) {
  .fondo-modal { align-items: center; padding: 24px; }
  .hoja { border-radius: 24px; padding: 24px 28px 28px; }
  .hoja::before { display: none; }
}
@keyframes aparecer { from { opacity: 0; } }
@keyframes subir { from { transform: translateY(40px); opacity: 0; } }

.ficha-fecha { font-family: var(--gochi); font-size: 1.3rem; color: var(--camel); }
.ficha-titulo { font-size: 2rem; margin: 2px 0 12px; overflow-wrap: anywhere; }
.bloque { margin-top: 20px; }
.bloque h4 { margin: 0 0 8px; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--oliva); }
.guion { white-space: pre-wrap; overflow-wrap: anywhere; background: #fff; border: 1px solid var(--linea); border-radius: 14px; padding: 14px 16px; font-size: .95rem; }
.link-video { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--crema); text-decoration: none; color: var(--tinta); font-weight: 700; }
.link-video svg { width: 28px; height: 28px; color: var(--bordo); flex: 0 0 auto; }
.link-video small { display: block; font-weight: 500; color: var(--suave); }

/* aprobación: el gran botón */
.aprobar { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; border: 2px dashed var(--camel); background: #fff; text-align: left; transition: transform .12s; }
.aprobar:active { transform: scale(.98); }
.aprobar .circulo { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid var(--oliva); display: grid; place-items: center; color: var(--oliva); }
.aprobar .circulo svg { width: 22px; height: 22px; opacity: .25; }
.aprobar b { display: block; font-size: 1.1rem; color: var(--bordo); }
.aprobar small { color: var(--suave); }
.aprobar.hecho { border-style: solid; border-color: var(--oliva); background: rgba(112, 115, 91, .08); }
.aprobar.hecho .circulo { background: transparent; }
.aprobar.hecho .circulo svg { opacity: 1; }
.aprobar.hecho b { color: var(--oliva); }
.historial { font-size: .82rem; color: var(--suave); margin: 8px 2px 0; }

.comentario { background: #fff; border: 1px solid var(--linea); border-radius: 14px 14px 14px 4px; padding: 12px 14px; margin-bottom: 8px; }
.comentario p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .95rem; }
.comentario small { display: block; color: var(--suave); font-size: .75rem; margin-top: 6px; }
.comentario.desaprobacion { border-color: rgba(201, 143, 46, .5); background: #fffaf0; }
.comentario.desaprobacion .tag { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #8a5a10; display: block; margin-bottom: 4px; }
.nota { display: flex; gap: 8px; align-items: flex-start; font-size: .82rem; color: var(--suave); margin: 8px 0 0; }

.confirmar { text-align: center; padding-top: 6px; }
.confirmar .icono-grande { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; background: rgba(112, 115, 91, .14); color: var(--oliva); }
.confirmar .icono-grande.alerta { background: rgba(201, 143, 46, .16); color: #8a5a10; }
.confirmar .icono-grande svg { width: 32px; height: 32px; }
.confirmar .titulo { font-size: 1.8rem; }
.confirmar p { color: var(--suave); margin: 10px 0 18px; }
.confirmar .botones { display: grid; gap: 8px; }
.confirmar textarea { text-align: left; }

/* ---------- plan ---------- */
.plan { background: #fff; border-radius: var(--radio); border: 1px solid var(--linea); box-shadow: var(--sombra); overflow: hidden; max-width: 640px; }
.plan-cabeza { background: var(--bordo); color: var(--papel); padding: 22px; }
.plan-cabeza .antetitulo { color: #e9d7c2; }
.plan-cabeza .titulo { color: var(--papel); font-size: 2.1rem; }
.plan-lista { list-style: none; margin: 0; padding: 14px 22px 22px; }
.plan-lista li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--linea); }
.plan-lista li:last-child { border-bottom: 0; }
.check { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; border: 1.8px solid var(--oliva); display: grid; place-items: center; color: var(--oliva); margin-top: 1px; }
.check svg { width: 13px; height: 13px; }

/* ---------- facturación ---------- */
.grilla-fact { display: grid; gap: 14px; }
@media (min-width: 860px) { .grilla-fact { grid-template-columns: 1fr 1fr; align-items: start; } }
.proxima { background: var(--oliva); color: #fff; border-radius: var(--radio); padding: 22px; box-shadow: var(--sombra); }
.proxima .antetitulo { color: #e8e6d6; }
.proxima .monto { font-family: var(--anton); font-size: 2.6rem; line-height: 1; }
.proxima p { margin: 6px 0 0; opacity: .9; }
.lista { background: #fff; border-radius: var(--radio); border: 1px solid var(--linea); box-shadow: var(--sombra); overflow: hidden; }
.lista-fila { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--linea); }
.lista-fila:first-child { border-top: 0; }
.lista-fila .info { flex: 1; min-width: 0; }
.lista-fila b { display: block; }
.lista-fila small { color: var(--suave); }
.doc-icono { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; background: var(--crema); color: var(--bordo); display: grid; place-items: center; }
.doc-icono svg { width: 22px; height: 22px; }
.seccion-titulo { font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--oliva); margin: 22px 0 10px; }

/* ---------- admin ---------- */
.admin-cabeza { background: var(--bordo); color: var(--papel); padding: 22px 18px 26px; padding-top: max(22px, env(safe-area-inset-top)); }
.admin-cabeza-in { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.admin-cabeza .antetitulo { color: #e9d7c2; font-size: 1.5rem; }
.admin-cabeza .titulo { color: var(--papel); font-size: 2.4rem; }
.admin-cabeza .btn-claro { color: var(--papel); border-color: rgba(253, 251, 247, .5); }
.admin-cabeza .btn { position: relative; }
.badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #fff; color: var(--bordo); font-size: .75rem; font-weight: 800; display: inline-grid; place-items: center; }
.clientes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.cliente-tarjeta { position: relative; display: block; text-align: left; padding: 0; border: 1px solid var(--linea); border-radius: var(--radio); background: #fff; box-shadow: var(--sombra); overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s; }
.cliente-tarjeta:hover { transform: translateY(-2px); }
.cliente-tarjeta .mini-portada { height: 96px; background: linear-gradient(135deg, var(--bordo), var(--camel)); }
.cliente-tarjeta .mini-portada img { width: 100%; height: 100%; object-fit: cover; }
.cliente-tarjeta .mini-logo { width: 62px; height: 62px; border-radius: 50%; border: 3px solid #fff; background: #fff; margin: -31px 0 0 16px; overflow: hidden; position: relative; display: grid; place-items: center; font-family: var(--anton); color: var(--bordo); font-size: 1.4rem; box-shadow: var(--sombra); }
.cliente-tarjeta .mini-logo img { width: 100%; height: 100%; object-fit: cover; }
.cliente-tarjeta .cuerpo { padding: 8px 16px 16px; }
.cliente-tarjeta .cuerpo b { font-family: var(--anton); font-weight: 400; font-size: 1.35rem; text-transform: uppercase; color: var(--bordo); display: block; line-height: 1.1; }
.cliente-tarjeta .aviso-nov { position: absolute; top: 10px; right: 10px; background: #fff; color: var(--bordo); border-radius: 999px; padding: 4px 10px 4px 8px; font-size: .78rem; font-weight: 800; display: flex; gap: 6px; align-items: center; box-shadow: var(--sombra); }
.cliente-tarjeta.baja { opacity: .55; }
.nuevo-cliente { display: grid; place-items: center; min-height: 190px; border: 2px dashed var(--camel); border-radius: var(--radio); background: transparent; color: var(--bordo); font-weight: 700; gap: 6px; }
.nuevo-cliente span { font-family: var(--anton); font-size: 2.2rem; line-height: 1; }

.novedad { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; padding: 14px 16px; border: 0; border-top: 1px solid var(--linea); background: #fff; }
.novedad:first-child { border-top: 0; }
.novedad.sin-leer { background: #fffaf3; }
.novedad .ic { flex: 0 0 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--crema); color: var(--bordo); }
.novedad .ic svg { width: 18px; height: 18px; }
.novedad .info { flex: 1; }
.novedad b { font-weight: 600; display: block; }
.novedad small { color: var(--suave); }

.barra-admin { position: sticky; top: 0; z-index: 25; background: var(--tinta); color: var(--papel); padding: 8px 14px; padding-top: max(8px, env(safe-area-inset-top)); display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .85rem; }
.barra-admin a, .barra-admin button { color: var(--papel); background: none; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: 6px 12px; text-decoration: none; font-weight: 700; font-size: .8rem; }
.barra-admin .activo { background: var(--papel); color: var(--tinta); }
body:not(.admin) .solo-admin { display: none !important; }
.vista-cliente .solo-admin { display: none !important; }
.herramientas { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.caja-admin { background: var(--crema); border: 1.5px dashed var(--camel); border-radius: var(--radio); padding: 18px; margin-bottom: 18px; }
.caja-admin h3 { margin: 0 0 12px; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--oliva); }
.subir { display: flex; align-items: center; gap: 14px; }
.subir .vista { width: 72px; height: 72px; border-radius: 14px; background: #fff; border: 1px solid var(--linea); overflow: hidden; flex: 0 0 auto; display: grid; place-items: center; color: var(--camel); }
.subir .vista.redonda { border-radius: 50%; }
.subir .vista img { width: 100%; height: 100%; object-fit: cover; }
.subir .vista.ancha { width: 120px; }
.entrada-archivo { position: relative; overflow: hidden; }
.entrada-archivo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cargando { opacity: .6; pointer-events: none; }

/* aviso flotante */
#aviso { position: fixed; z-index: 80; left: 50%; bottom: calc(var(--nav-alto) + 18px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--tinta); color: var(--papel); padding: 12px 18px; border-radius: 14px; font-size: .9rem; font-weight: 600; opacity: 0; pointer-events: none; transition: all .25s ease; max-width: calc(100% - 32px); text-align: center; box-shadow: var(--sombra); }
#aviso.visible { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 860px) { #aviso { bottom: 28px; } }

.girador { width: 34px; height: 34px; border: 3px solid var(--linea); border-top-color: var(--bordo); border-radius: 50%; margin: 60px auto; animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
