/* Metanoia by FunnelArg · estilos. Pensado primero para el celular. Estética minimalista con las tipografías y el azul de funnelarg.com.
   Modo claro, oscuro o automático: data-tema="claro" | "oscuro" en <html>; sin atributo sigue al sistema. */
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fuentes/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fuentes/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fuentes/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600 800; font-display: swap; }
:root {
  --fondo: #ECEEF5; --blanco: #F8F9FC; --suave: #E3E6F0; --tinta: #1C1F2E; --tinta-2: #383C4E; --titulo: #161929;
  --gris: #5F6478; --gris-2: #8A8FA3; --linea: #DBDFEB; --borde-fuerte: #C8CDDC;
  --marca: #3B55F0; --marca-2: #8B5CF6; --marca-texto: #3B55F0; --verde-claro: #E2E6FB; --verde-2: #6680FF;
  --luz: rgba(79, 107, 255, .13); --grad-suave: linear-gradient(150deg, rgba(79, 107, 255, .09), rgba(139, 92, 246, .05));
  --ok: #15803D; --ok-claro: #E7F6EC; --rojo: #DC2626; --rojo-claro: #FDECEC; --amarillo: #B45309; --amarillo-claro: #FEF4E2;
  --menu-fondo: rgba(248, 249, 252, .92); --sombra: 0 1px 2px rgba(30, 35, 70, .05), 0 6px 22px rgba(30, 35, 70, .06);
  --grad: linear-gradient(90deg, #3B55F0, #8B5CF6); color-scheme: light;
  --wa: #25D366; --radio: 14px; --petroleo: var(--titulo);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--tinta); -webkit-text-size-adjust: 100%;
}
@media (prefers-color-scheme: dark) { :root:not([data-tema="claro"]) {
  --fondo: #1A1C26; --blanco: #242733; --suave: #2E3240; --tinta: #E9EBF3; --tinta-2: #C9CCD9; --titulo: #F7F8FC;
  --gris: #A7ACBE; --gris-2: #7F8598; --linea: #333746; --borde-fuerte: #444A5B;
  --luz: rgba(79, 107, 255, .17); --grad-suave: linear-gradient(150deg, rgba(79, 107, 255, .14), rgba(139, 92, 246, .07));
  --marca: #4F6BFF; --marca-2: #8B5CF6; --marca-texto: #7C8CFF; --verde-claro: rgba(79, 107, 255, .18); --verde-2: #6680FF;
  --ok: #4ADE80; --ok-claro: rgba(74, 222, 128, .12); --rojo: #F87171; --rojo-claro: rgba(248, 113, 113, .12); --amarillo: #FBBF24; --amarillo-claro: rgba(251, 191, 36, .12);
  --menu-fondo: rgba(30, 32, 43, .92); --sombra: 0 1px 2px rgba(0, 0, 0, .18), 0 8px 24px rgba(0, 0, 0, .16);
  --grad: linear-gradient(90deg, #4F6BFF, #A78BFA); color-scheme: dark;
} }
:root[data-tema="oscuro"] {
  --fondo: #1A1C26; --blanco: #242733; --suave: #2E3240; --tinta: #E9EBF3; --tinta-2: #C9CCD9; --titulo: #F7F8FC;
  --gris: #A7ACBE; --gris-2: #7F8598; --linea: #333746; --borde-fuerte: #444A5B;
  --luz: rgba(79, 107, 255, .17); --grad-suave: linear-gradient(150deg, rgba(79, 107, 255, .14), rgba(139, 92, 246, .07));
  --marca: #4F6BFF; --marca-2: #8B5CF6; --marca-texto: #7C8CFF; --verde-claro: rgba(79, 107, 255, .18); --verde-2: #6680FF;
  --ok: #4ADE80; --ok-claro: rgba(74, 222, 128, .12); --rojo: #F87171; --rojo-claro: rgba(248, 113, 113, .12); --amarillo: #FBBF24; --amarillo-claro: rgba(251, 191, 36, .12);
  --menu-fondo: rgba(30, 32, 43, .92); --sombra: 0 1px 2px rgba(0, 0, 0, .18), 0 8px 24px rgba(0, 0, 0, .16);
  --grad: linear-gradient(90deg, #4F6BFF, #A78BFA); color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--fondo); }
body { margin: 0; min-height: 100vh; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: 300px; z-index: -1; pointer-events: none; background: radial-gradient(90% 100% at 50% 0, var(--luz), transparent 72%); }
body.sin-scroll { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1 { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 600; font-size: 1.5rem; margin: 0; letter-spacing: -.02em; color: var(--petroleo); }
h2 { font-size: 1.05rem; margin: 1.4rem 0 .6rem; }
h3 { font-size: .95rem; margin: 1.2rem 0 .5rem; }
.tarjeta h2 { margin-top: 0; }
p { line-height: 1.45; }
.sub { color: var(--gris); font-size: .875rem; font-weight: 400; margin: .2rem 0; }
.ayuda { color: var(--gris); font-size: .8rem; margin: .3rem 0; }
.vacio { color: var(--gris); text-align: center; padding: 1.2rem .5rem; margin: 0; }
.centro { text-align: center; display: block; }
.rojo-txt { color: var(--rojo); } .amarillo-txt { color: var(--amarillo); }
.pie { text-align: center; color: var(--gris-2); font-size: .75rem; margin: 2rem 0 1rem; }
.nota { background: var(--amarillo-claro); padding: .5rem .7rem; border-radius: 10px; font-size: .875rem; }
.texto { margin: 0 0 1rem; }
.grande { font-family: "Plus Jakarta Sans", sans-serif; font-size: 2rem; font-weight: 700; margin: 0; color: var(--petroleo); }

/* estructura */
#principal { max-width: 720px; margin: 0 auto; padding: 1rem 1rem calc(136px + env(safe-area-inset-bottom)); }
.cab { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin: .5rem 0 1rem; }
.franja { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem 1rem; background: var(--verde-claro); color: var(--marca); font-size: .875rem; }
.franja.roja { background: var(--rojo-claro); color: var(--rojo); }
.franja[hidden] { display: none; }
#menu { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: flex; justify-content: space-around; background: var(--menu-fondo); backdrop-filter: blur(12px); border-top: 1px solid var(--linea); padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom)); }
#menu button { flex: 1; max-width: 120px; background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .35rem 0; color: var(--gris); font-size: .7rem; border-radius: 10px; }
#menu svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#menu button.activo { color: var(--marca); font-weight: 600; }
@media (min-width: 900px) {
  #menu { top: 0; bottom: 0; right: auto; width: 232px; flex-direction: column; justify-content: flex-start; gap: 2px; padding: 1.2rem .8rem; border-top: 0; border-right: 1px solid var(--linea); background: var(--blanco); backdrop-filter: none; }
  #menu .menu-marca { display: block; padding: .2rem .6rem 1.4rem; }
  #menu button { flex: none; max-width: none; flex-direction: row; gap: .75rem; padding: .6rem .75rem; font-size: .92rem; color: var(--gris); border-radius: 10px; }
  #menu button:hover { background: var(--suave); color: var(--tinta); }
  #menu button.activo { color: var(--tinta); background: var(--suave); }
  #menu svg { width: 20px; height: 20px; }
  #principal { padding-bottom: 2rem; max-width: 980px; margin-left: 232px; padding-left: 2rem; padding-right: 2rem; }
  .franja { margin-left: 232px; }
  .aviso { bottom: 2rem; }
}

/* tarjetas y kpis */
.tarjeta { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); padding: 1rem; box-shadow: var(--sombra); margin-bottom: 1rem; }
.rot { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gris); margin: 0 0 .5rem; font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.kpis small { display: block; color: var(--gris); font-size: .75rem; }
.kpis b { font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
@media (max-width: 360px) { .kpis b { font-size: .95rem; } .kpis small { font-size: .68rem; } .botones-grandes .btn { padding: .7rem .5rem; } }
.barra { height: 8px; background: var(--linea); border-radius: 99px; margin: .9rem 0 .3rem; overflow: hidden; }
.barra span { display: block; height: 100%; background: linear-gradient(90deg, var(--marca), var(--verde-2)); border-radius: 99px; transition: width .4s; }
.pasos ol { margin: 0; padding-left: 1.2rem; line-height: 1.6; }
.pasos li.hecho { color: var(--gris); text-decoration: line-through; }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 0; border-radius: 12px; padding: .75rem 1.1rem; background: var(--marca); color: #fff; font-weight: 600; text-decoration: none; min-height: 44px; transition: transform .08s, opacity .15s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.sec { background: var(--blanco); color: var(--tinta); border: 1px solid var(--linea); }
.btn.wa { background: var(--wa); color: #fff; }
.btn.peligro { background: var(--rojo); color: #fff; }
.btn.texto { background: none; color: var(--marca); padding: .5rem; min-height: 0; }
.btn.texto.peligro { color: var(--rojo); }
.btn.chico { padding: .45rem .8rem; min-height: 36px; font-size: .85rem; border-radius: 10px; }
.botones { display: flex; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.botones.abajo { justify-content: space-between; border-top: 1px solid var(--linea); padding-top: 1rem; margin-top: 1.5rem; }
.botones-grandes { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: 0 0 1rem; }
.botones-grandes .btn:only-child { grid-column: span 2; }
.enlace { background: none; border: 0; padding: 0; color: var(--marca); font-weight: 600; text-decoration: none; }

/* listas */
.lista { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; }
.lista:empty { display: none; }
.item { width: 100%; display: flex; align-items: center; gap: .75rem; padding: .75rem .9rem; background: none; border: 0; border-bottom: 1px solid var(--linea); text-align: left; min-height: 56px; }
.lista > .item:last-child { border-bottom: 0; }
button.item:active, .item button.item-txt:active { background: var(--fondo); }
.item-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; background: none; border: 0; padding: 0; text-align: left; }
.item-txt b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-txt small { color: var(--gris); font-size: .8rem; margin-top: 1px; }
button.item-txt { align-items: flex-start; }
button.item-txt.fila { flex-direction: row; align-items: center; gap: .75rem; }
button.item-txt.fila > span:not(.avatar) { display: flex; flex-direction: column; min-width: 0; }
.item-der { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: .9rem; }
.item.doble { gap: .5rem; }
.item.hecho { opacity: .55; }
.flecha { color: var(--gris-2); font-size: 1.3rem; }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: .85rem; color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--blanco)); }
.estado { font-size: .72rem; font-weight: 600; padding: .15rem .5rem; border-radius: 99px; white-space: nowrap; }
.estado.pagado { background: var(--ok-claro); color: var(--ok); }
.estado.pendiente, .estado.parcial { background: var(--amarillo-claro); color: var(--amarillo); }
.estado.vencido { background: var(--rojo-claro); color: var(--rojo); }
.pildora { display: inline-block; font-size: .75rem; padding: .1rem .55rem; border-radius: 99px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--blanco)); font-weight: 600; }

/* filtros */
.buscador, .selector { width: 100%; padding: .75rem .9rem; border: 1px solid var(--linea); border-radius: 12px; background: var(--blanco); margin-bottom: .6rem; font-size: 1rem; }
.pestanas { display: flex; gap: .35rem; overflow-x: auto; margin-bottom: .6rem; scrollbar-width: none; }
.pestanas button { flex: none; border: 1px solid var(--linea); background: var(--blanco); border-radius: 99px; padding: .45rem .85rem; font-size: .85rem; }
.pestanas button small { color: var(--gris); margin-left: 2px; }
.pestanas button.activa { background: var(--tinta); color: var(--fondo); border-color: var(--tinta); }
.pestanas button.activa small { color: var(--gris-2); }
.mes-nav, .dia-nav { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .8rem; }
.mes-nav b::first-letter, .dia-nav b::first-letter { text-transform: uppercase; }

/* barras del historial */
.barras { display: flex; align-items: flex-end; gap: .5rem; height: 120px; background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); padding: .8rem; }
.barra-mes { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; background: none; border: 0; padding: 0; }
.barra-mes .b { width: 100%; max-width: 40px; min-height: 3px; background: var(--verde-claro); border-radius: 6px 6px 2px 2px; }
.barra-mes.activa .b { background: var(--marca); }
.barra-mes small { font-size: .7rem; color: var(--gris); text-transform: capitalize; }

/* formularios */
.form { display: flex; flex-direction: column; gap: .8rem; }
.form label, .campo { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; font-weight: 600; color: var(--tinta-2); }
.op { color: var(--gris-2); font-weight: 400; }
.campo > .rot { text-transform: none; letter-spacing: 0; font-size: .85rem; color: var(--tinta-2); margin: 0; }
.form input, .form select, .form textarea { width: 100%; padding: .7rem .8rem; border: 1px solid var(--borde-fuerte); border-radius: 10px; background: var(--blanco); font-size: 1rem; font-weight: 400; }
.form input:focus, .form select:focus, .form textarea:focus, .buscador:focus { outline: 2px solid var(--verde-2); outline-offset: 0; border-color: transparent; }
.form textarea { resize: vertical; }
.fila2 { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; align-items: end; }
.form label.check, label.check { flex-direction: row; align-items: center; gap: .5rem; font-weight: 400; }
.check input { width: 20px; height: 20px; accent-color: var(--marca); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .75rem; border: 1px solid var(--borde-fuerte); border-radius: 99px; font-weight: 500; font-size: .85rem; background: var(--blanco); }
.chip span i { width: 10px; height: 10px; border-radius: 50%; }
.chip input:checked + span { background: var(--marca); border-color: var(--marca); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--verde-2); }
.chips.dias .chip span { min-width: 46px; justify-content: center; }
.segmento { display: grid; grid-template-columns: 1fr 1fr; background: var(--suave); border-radius: 12px; padding: 3px; }
.segmento label { cursor: pointer; }
.segmento input { position: absolute; opacity: 0; }
.segmento span { display: block; text-align: center; padding: .55rem; border-radius: 10px; font-weight: 500; }
.segmento input:checked + span { background: var(--blanco); box-shadow: var(--sombra); font-weight: 600; }
.colores { display: flex; gap: .5rem; flex-wrap: wrap; }
.colores input { position: absolute; opacity: 0; }
.colores span { display: block; width: 32px; height: 32px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; }
.colores input:checked + span { border-color: var(--tinta); }
details.mas summary { cursor: pointer; color: var(--marca); font-weight: 600; font-size: .85rem; padding: .2rem 0; }
details.mas[open] { display: flex; flex-direction: column; gap: .8rem; }
.lista-check { display: flex; flex-direction: column; gap: .6rem; max-height: 50vh; overflow: auto; }
.previa { background: var(--fondo); border-radius: 10px; padding: .2rem .8rem; }
.previa:empty { display: none; }
.previa-fila { display: flex; justify-content: space-between; gap: .5rem; padding: .35rem 0; font-size: .9rem; border-bottom: 1px solid var(--linea); }
.previa .rot { margin-top: .6rem; }

/* logo y recibo */
.logo-campo { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.logo-previa { flex: none; width: 84px; height: 84px; border-radius: 18px; border: 1px dashed var(--borde-fuerte); display: grid; place-items: center; overflow: hidden; background: var(--fondo); }
.logo-previa img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-previa span { font-size: .75rem; color: var(--gris); }
.logo-campo label.btn { cursor: pointer; }
.recibo-previa img { display: block; width: 100%; max-width: 420px; margin: 0 auto; border-radius: 12px; border: 1px solid var(--linea); box-shadow: var(--sombra); }

/* ficha */
.ficha-cab { margin-bottom: 1rem; }
.estado-grande { font-size: 1.1rem; font-weight: 700; padding: .7rem .9rem; border-radius: 12px; margin-bottom: .6rem; }
.estado-grande.verde { background: var(--ok-claro); color: var(--ok); }
.estado-grande.amarillo { background: var(--amarillo-claro); color: var(--amarillo); }
.estado-grande.rojo { background: var(--rojo-claro); color: var(--rojo); }
.acciones-ficha { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.asis-mini { display: flex; flex-wrap: wrap; gap: .3rem; }
.asis-mini span { font-size: .75rem; padding: .25rem .5rem; border-radius: 8px; }
.asis-mini .si { background: var(--ok-claro); color: var(--ok); }
.asis-mini .no { background: var(--rojo-claro); color: var(--rojo); text-decoration: line-through; }

/* asistencia */
.item.asis .tilde { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--borde-fuerte); display: grid; place-items: center; font-weight: 700; }
.item.asis.presente .tilde { background: var(--marca); border-color: var(--marca); color: #fff; }
.item.asis.ausente .tilde { background: var(--rojo-claro); border-color: var(--rojo); color: var(--rojo); }
.item.asis.ausente b { color: var(--gris); }

/* planes */
.planes { display: flex; flex-direction: column; gap: .6rem; margin: 1rem 0; }
.plan { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-align: left; padding: 1rem; border: 2px solid var(--linea); border-radius: var(--radio); background: var(--blanco); }
.plan span { display: flex; flex-direction: column; }
.plan small { color: var(--gris); font-size: .8rem; }
.plan .precio { font-size: 1.3rem; font-weight: 700; text-align: right; }
.plan:not(:disabled):hover { border-color: var(--marca); }
.plan.actual { border-color: var(--marca); background: var(--verde-claro); }
.plan:disabled:not(.actual) { opacity: .5; }
.plan em { position: absolute; top: -10px; right: 12px; background: var(--tinta); color: var(--fondo); font-style: normal; font-size: .7rem; padding: .15rem .5rem; border-radius: 99px; }

/* ventanas */
.fondo { position: fixed; inset: 0; z-index: 50; background: rgba(15, 23, 42, 0); display: flex; align-items: flex-end; justify-content: center; transition: background .2s; }
.fondo.abierto { background: rgba(0, 0, 0, .55); backdrop-filter: blur(2px); }
.hoja { width: 100%; max-width: 560px; max-height: 92vh; background: var(--blanco); border-radius: 20px 20px 0 0; display: flex; flex-direction: column; transform: translateY(100%); transition: transform .22s ease-out; }
.hoja.ancha { max-width: 640px; }
.fondo.abierto .hoja { transform: translateY(0); }
.tirador { width: 40px; height: 5px; background: var(--borde-fuerte); border-radius: 99px; margin: 8px auto 0; flex: none; }
.hoja-cab { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .4rem 1rem .6rem; border-bottom: 1px solid var(--linea); position: sticky; top: 0; }
.hoja-cab h2 { margin: 0; font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--suave); font-size: 1.4rem; line-height: 1; color: var(--gris); }
.hoja-cuerpo { padding: 1rem 1rem calc(1.2rem + env(safe-area-inset-bottom)); overflow-y: auto; -webkit-overflow-scrolling: touch; }
@media (min-width: 700px) {
  .fondo { align-items: center; }
  .hoja { border-radius: 20px; max-height: 86vh; transform: translateY(24px); opacity: 0; transition: transform .2s, opacity .2s; }
  .fondo.abierto .hoja { opacity: 1; }
  .tirador { display: none; }
  .hoja-cab { padding-top: 1rem; }
}

/* acceso */
.acceso { max-width: 440px; margin: 0 auto; padding: 2rem 1rem; display: flex; flex-direction: column; gap: 1rem; }
.marca { text-align: center; }
.marca h1 { font-size: 1.8rem; margin: .5rem 0 .3rem; }
.marca p { color: var(--gris); margin: 0; }
.logo { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--grad); color: #fff; font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.6rem; font-weight: 700; }
.acceso .pestanas { justify-content: stretch; }
.acceso .pestanas button { flex: 1; }
.cargando { min-height: 80vh; display: grid; place-content: center; justify-items: center; color: var(--gris); }
.cargando .logo { animation: latido 1.2s ease-in-out infinite; }
@keyframes latido { 50% { transform: scale(.92); opacity: .7; } }

/* aviso */
.aviso { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 80; max-width: calc(100% - 2rem); background: var(--tinta); color: #fff; padding: .7rem 1rem; border-radius: 12px; font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.aviso.visible { opacity: 1; transform: translate(-50%, 0); }
.aviso.error { background: var(--rojo); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- FunnelArg Gestión: módulos ---------- */
.verde-txt { color: var(--ok); }
.segmento.tres { grid-template-columns: repeat(3, 1fr); }
.botones-cab { display: flex; gap: .4rem; }
.kpis-auto { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); row-gap: .9rem; }
.kpis small + small, .kpis b + small { display: block; }
.acciones-inicio { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.grande.chica { font-size: 1.4rem; margin-bottom: .4rem; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.modulos-lista { display: flex; flex-direction: column; gap: .5rem; }
.modulo-sw { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem .9rem; border: 1px solid var(--linea); border-radius: 12px; background: var(--blanco); cursor: pointer; font-weight: 400 !important; }
.modulo-sw span { display: flex; flex-direction: column; }
.modulo-sw small { color: var(--gris); font-size: .8rem; }
.modulo-sw input { appearance: none; -webkit-appearance: none; flex: none; width: 46px; height: 28px; border-radius: 99px; background: var(--borde-fuerte); position: relative; transition: background .2s; cursor: pointer; padding: 0 !important; border: 0 !important; }
.modulo-sw input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.modulo-sw input:checked { background: var(--marca); }
.modulo-sw input:checked::after { transform: translateX(18px); }
.plan.destacado { border-color: var(--marca); }
.total-sub { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: .8rem 0; flex-wrap: wrap; }
.total-linea { display: flex; justify-content: space-between; font-size: 1.1rem; margin: .2rem 0; padding: .6rem .8rem; background: var(--fondo); border-radius: 10px; }
.total-linea b { font-size: 1.3rem; }
.link-caja { background: var(--fondo); border-radius: 10px; padding: .7rem .8rem; overflow-x: auto; margin: .6rem 0; }
.link-caja code { font-size: .8rem; white-space: nowrap; }
.chip-btn { border: 1px dashed var(--gris-2); background: var(--blanco); border-radius: 99px; padding: .4rem .75rem; font-size: .8rem; }
/* variantes de producto */
.var-cab, .var-fila { display: grid; grid-template-columns: 1fr 64px 56px 76px 32px; gap: .35rem; align-items: center; }
.var-cab { font-size: .7rem; color: var(--gris); font-weight: 600; margin-top: .3rem; }
.var-fila { margin-top: .35rem; }
.var-fila input { padding: .55rem .5rem !important; font-size: .95rem !important; }
.var-fila .x, .item-fila .x, .item-venta .x { width: 30px; height: 30px; font-size: 1.1rem; }
.var-stock { text-align: center; font-weight: 700; }
.foto-campo { display: flex; align-items: center; gap: 1rem; }
.foto-previa { width: 84px; height: 84px; border-radius: 14px; background: var(--fondo); border: 1px dashed var(--borde-fuerte); overflow: hidden; display: grid; place-items: center; flex: none; }
.foto-previa img { width: 100%; height: 100%; object-fit: cover; }
.foto-previa span { font-size: .72rem; color: var(--gris); }
.foto-campo label.btn { cursor: pointer; }
.miniatura { flex: none; width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--fondo); }
.vars { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 3px; }
.vars i { font-style: normal; font-size: .7rem; background: var(--suave); border-radius: 6px; padding: 1px 5px; color: var(--tinta-2); }
.vars i.bajo { background: var(--amarillo-claro); color: var(--amarillo); }
.vars i.cero { background: var(--rojo-claro); color: var(--rojo); text-decoration: line-through; }
.item-der small { color: var(--gris); font-size: .75rem; }
.stock-num { min-width: 44px; text-align: center; font-weight: 800; font-size: 1.1rem; padding: .2rem .4rem; border-radius: 8px; background: var(--ok-claro); color: var(--ok); }
.stock-num.bajo { background: var(--amarillo-claro); color: var(--amarillo); }
.stock-num.cero { background: var(--rojo-claro); color: var(--rojo); }
.prod-cab { display: flex; gap: 1rem; align-items: center; margin-bottom: .5rem; }
.prod-foto { width: 110px; height: 110px; object-fit: cover; border-radius: 14px; flex: none; }
.conteo-prod { padding: .7rem 0; border-bottom: 1px solid var(--linea); }
.conteo-vars { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.conteo-vars label { flex-direction: column; gap: .2rem !important; width: 70px; font-weight: 500 !important; font-size: .75rem !important; }
.conteo-vars input { text-align: center; padding: .5rem .3rem !important; }
.conteo-vars input.cambio { border-color: var(--marca) !important; background: var(--verde-claro) !important; font-weight: 700 !important; }
.botones.pegados { position: sticky; bottom: -1.2rem; background: var(--blanco); padding: .8rem 0; justify-content: space-between; align-items: center; border-top: 1px solid var(--linea); }
/* ítems de ventas, compras y presupuestos */
.sugerencias { display: flex; flex-direction: column; gap: 2px; margin: -.3rem 0 .5rem; }
.sugerencias button { display: flex; justify-content: space-between; gap: .5rem; text-align: left; padding: .6rem .8rem; border: 1px solid var(--linea); border-radius: 10px; background: var(--blanco); }
.sugerencias small { color: var(--gris); white-space: nowrap; }
.item-venta { display: grid; grid-template-columns: 1fr auto 86px 30px; gap: .4rem; align-items: center; padding: .55rem .6rem; border-bottom: 1px solid var(--linea); }
.items-venta > .item-venta:last-child { border-bottom: 0; }
.iv-txt { display: flex; flex-direction: column; min-width: 0; }
.iv-txt b { font-size: .9rem; font-weight: 600; }
.iv-txt input, .iv-precio { padding: .45rem .5rem !important; font-size: .9rem !important; }
.iv-cant { display: flex; align-items: center; border: 1px solid var(--borde-fuerte); border-radius: 10px; overflow: hidden; }
.iv-cant button { width: 28px; height: 34px; border: 0; background: var(--suave); font-size: 1rem; }
.iv-cant input { width: 34px; text-align: center; border: 0 !important; padding: .3rem 0 !important; border-radius: 0 !important; }
.item-fila { display: grid; grid-template-columns: 1fr 56px 90px 30px; gap: .35rem; margin-top: .35rem; }
.item-fila input { padding: .55rem .5rem !important; font-size: .95rem !important; }
/* pedidos */
.pasos-pedido { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: .8rem; }
.pasos-pedido span { text-align: center; font-size: .72rem; padding: .4rem .2rem; border-radius: 8px; background: var(--suave); color: var(--gris); font-weight: 600; }
.pasos-pedido span.hecho { background: var(--marca); color: #fff; }
/* finanzas */
.cuentas { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .5rem; margin-bottom: .6rem; }
.cuenta { background: var(--blanco); border: 1px solid var(--linea); border-radius: 12px; padding: .8rem; }
.cuenta small { display: block; color: var(--gris); font-size: .75rem; }
.cuenta b { font-size: 1.15rem; }
.barra-cat { display: grid; grid-template-columns: 120px 1fr auto; gap: .6rem; align-items: center; padding: .3rem 0; font-size: .85rem; }
.barra-cat div { height: 8px; background: var(--suave); border-radius: 99px; overflow: hidden; }
.barra-cat i { display: block; height: 100%; background: var(--verde-2); border-radius: 99px; }
.dos-col { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.dos-col .tarjeta { margin: 0; }
.fila-mini { display: flex; justify-content: space-between; gap: .5rem; width: 100%; background: none; border: 0; border-top: 1px solid var(--linea); padding: .45rem 0; font-size: .85rem; text-align: left; }
@media (max-width: 520px) { .dos-col { grid-template-columns: 1fr; } .barra-cat { grid-template-columns: 90px 1fr auto; } }
.hoja, .hoja-cuerpo, .modulo-sw span, .plan span { min-width: 0; }
.plan .precio { flex: none; }
.fila2 > *, .form label, .form input, .form select { min-width: 0; }
.segmento input, .chip input, .colores input { width: 1px !important; height: 1px !important; padding: 0 !important; margin: 0; }
.segmento label, .chip, .colores label { position: relative; }

/* ---------- Metanoia ---------- */
.wordmark { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 600; font-size: 1.6rem; letter-spacing: -.03em; color: var(--petroleo); line-height: 1; }
.wordmark i { font-style: normal; color: var(--marca-2); }
.by { display: flex; align-items: center; gap: .4rem; margin-top: .35rem; font-size: .7rem; color: var(--gris); }
.by img { height: 14px; width: auto; display: block; }
.marca .wordmark { font-size: 2.4rem; }
.marca .by { justify-content: center; }
#menu .menu-marca { display: none; }
#menu .menu-marca .wordmark { font-size: 1.45rem; }
#menu .menu-marca .by img { height: 12px; }
h2 { color: var(--petroleo); }
.btn { background: var(--marca); }
.btn.sec { color: var(--petroleo); }
.estado.neutro { background: var(--suave); color: var(--gris); }
.estado.azul { background: var(--verde-claro); color: var(--marca); }
.etiqueta-estimado { font-size: .68rem; font-weight: 600; color: var(--gris); background: var(--suave); border-radius: 6px; padding: 1px 6px; margin-left: .3rem; vertical-align: middle; }
/* bienvenida por pasos */
.asistente { max-width: 560px; }
.progreso-pasos { display: flex; gap: 6px; margin: 0 0 1.2rem; }
.progreso-pasos span { flex: 1; height: 5px; border-radius: 99px; background: var(--linea); }
.progreso-pasos span.hecho { background: var(--marca-2); }
.opciones { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .5rem; }
.opcion { position: relative; cursor: pointer; }
.opcion input { position: absolute; opacity: 0; width: 1px !important; height: 1px !important; }
.opcion span { display: flex; flex-direction: column; gap: .2rem; height: 100%; padding: .8rem .9rem; border: 1.5px solid var(--linea); border-radius: 12px; background: var(--blanco); font-weight: 600; font-size: .92rem; color: var(--tinta); }
.opcion small { font-weight: 400; color: var(--gris); font-size: .78rem; }
.opcion input:checked + span { border-color: var(--marca); background: var(--verde-claro); }
.opcion input:focus-visible + span { outline: 2px solid var(--marca-2); }
.tarjeta-mp { min-height: 120px; }
.garantias { display: grid; gap: .4rem; margin: .8rem 0; padding: 0; list-style: none; font-size: .88rem; color: var(--gris); }
.garantias li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: .45rem; }
/* filtros de período */
.periodo { display: flex; gap: .3rem; overflow-x: auto; margin-bottom: .8rem; scrollbar-width: none; }
.periodo button { flex: none; border: 1px solid var(--linea); background: var(--blanco); border-radius: 10px; padding: .4rem .75rem; font-size: .82rem; color: var(--gris); }
.periodo button.activa { background: var(--tinta); border-color: var(--tinta); color: var(--fondo); }
/* agenda de turnos */
.agenda { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; }
.agenda-fila { display: grid; grid-template-columns: 54px 1fr; border-bottom: 1px solid var(--linea); min-height: 52px; }
.agenda-fila:last-child { border-bottom: 0; }
.agenda-hora { font-size: .75rem; color: var(--gris); padding: .5rem .4rem; border-right: 1px solid var(--linea); text-align: right; }
.agenda-col { display: flex; flex-direction: column; gap: 4px; padding: 4px; }
.agenda-libre { background: none; border: 1px dashed transparent; border-radius: 8px; min-height: 40px; color: transparent; font-size: .8rem; text-align: left; padding: 0 .5rem; }
.agenda-libre:hover, .agenda-libre:focus-visible { border-color: var(--linea); color: var(--gris); }
.turno { display: flex; justify-content: space-between; gap: .5rem; align-items: center; width: 100%; text-align: left; border: 0; border-left: 4px solid var(--c, var(--marca)); background: color-mix(in srgb, var(--c, var(--marca)) 9%, var(--blanco)); border-radius: 8px; padding: .5rem .6rem; }
.turno b { font-size: .88rem; display: block; }
.turno small { color: var(--gris); font-size: .75rem; }
.turno.cancelado, .turno.ausente { opacity: .5; }
.turno.cancelado b { text-decoration: line-through; }
.recursos-tabs { margin-bottom: .6rem; }
.semana { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.semana-dia { background: var(--blanco); border: 1px solid var(--linea); border-radius: 10px; padding: .4rem; min-height: 90px; display: flex; flex-direction: column; gap: 3px; text-align: left; }
.semana-dia.hoy { border-color: var(--marca); }
.semana-dia > small { font-weight: 600; color: var(--gris); font-size: .7rem; text-transform: capitalize; }
.semana-dia i { font-style: normal; font-size: .68rem; background: color-mix(in srgb, var(--c, var(--marca)) 12%, var(--blanco)); border-left: 3px solid var(--c, var(--marca)); border-radius: 4px; padding: 1px 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (max-width: 600px) { .semana { grid-template-columns: 1fr; } .semana-dia { min-height: 0; } }
/* calendario financiero */
.dia-cab { font-size: .75rem; font-weight: 600; color: var(--gris); text-transform: capitalize; padding: .6rem .9rem .3rem; background: var(--fondo); border-bottom: 1px solid var(--linea); }
.monto-cobrar { color: var(--ok); } .monto-pagar { color: var(--tinta); }
/* gráficos simples */
.graf { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding: .6rem .2rem 0; }
.graf-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.graf-col .b { width: 100%; max-width: 36px; min-height: 2px; border-radius: 6px 6px 2px 2px; background: var(--marca); }
.graf-col .b.b2 { background: var(--marca-2); }
.graf-col small { font-size: .65rem; color: var(--gris); text-transform: capitalize; white-space: nowrap; }
.graf-col em { font-style: normal; font-size: .62rem; color: var(--gris); }
.leyenda { display: flex; gap: 1rem; font-size: .75rem; color: var(--gris); margin-top: .5rem; }
.leyenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.ranking { counter-reset: r; }
.ranking .item::before { counter-increment: r; content: counter(r); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--verde-claro); color: var(--marca); font-size: .75rem; font-weight: 700; display: grid; place-items: center; }
.rent { display: grid; gap: 0; }
.rent div { display: flex; justify-content: space-between; padding: .45rem 0; border-bottom: 1px solid var(--linea); font-size: .92rem; }
.rent div:last-child { border-bottom: 0; }
.rent .total { font-weight: 700; font-size: 1.05rem; padding-top: .7rem; }
.rent .menos { color: var(--gris); }
.pasos-pedido { grid-template-columns: repeat(5, 1fr); }
.pasos-pedido span { font-size: .66rem; }
.guia-instalar ol { padding-left: 1.2rem; line-height: 1.7; margin: .3rem 0 1rem; }
.pagos-sub .item { min-height: 48px; }
@media (min-width: 900px) { #menu .menu-marca { display: block; } }

/* ---------- estética 3.1: minimalista, con detalles en azul y violeta ---------- */
h1, h2, .grande, .wordmark, .kpis b { color: var(--titulo); font-weight: 600; letter-spacing: -.025em; }
.btn { background: var(--grad); }
.btn:hover { filter: brightness(1.08); }
.btn.sec { background: var(--blanco); color: var(--tinta); border: 1px solid var(--borde-fuerte); }
.btn.texto, .enlace, details.mas summary { color: var(--marca-texto); }
.aviso { color: var(--fondo); }
.tarjeta, .lista, .cuenta, .agenda, .semana-dia, .opcion span, .modulo-sw, .pestanas button, .periodo button, .buscador, .selector { border-color: var(--linea); }
.wordmark i { color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.logo-oscuro { display: none !important; }
@media (prefers-color-scheme: dark) { :root:not([data-tema="claro"]) .logo-claro { display: none !important; } :root:not([data-tema="claro"]) .logo-oscuro { display: block !important; } }
:root[data-tema="oscuro"] .logo-claro { display: none !important; }
:root[data-tema="oscuro"] .logo-oscuro { display: block !important; }
.etiqueta-estimado { background: var(--suave); }
.estado.azul { background: var(--verde-claro); color: var(--marca-texto); }
.ranking .item::before { color: var(--marca-texto); }
.form input:focus, .form select:focus, .form textarea:focus, .buscador:focus { outline: 2px solid var(--marca); }
.opcion input:checked + span { border-color: var(--marca); background: var(--verde-claro); }
.progreso-pasos span.hecho { background: var(--grad); }
.graf-col .b { background: var(--marca); } .graf-col .b.b2 { background: var(--marca-2); }
.barra-cat i { background: var(--grad); }
.monto-cobrar, .verde-txt { color: var(--ok); }
.cargando .marca { text-align: center; }
/* aviso para instalar la app y tutorial en pantalla */
.instalar { display: flex; gap: .8rem; align-items: center; border: 1px solid var(--linea); background: var(--blanco); border-radius: var(--radio); padding: .8rem .9rem; margin-bottom: 1rem; }
.instalar .ico-app { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 700; display: grid; place-items: center; }
.instalar div { flex: 1; min-width: 0; font-size: .88rem; }
.instalar b { display: block; }
.tour-velo { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.tour-foco { position: fixed; z-index: 91; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55), 0 0 0 2px var(--marca); transition: all .25s ease; pointer-events: none; }
.tour-globo { position: fixed; z-index: 92; width: min(320px, calc(100vw - 32px)); background: var(--blanco); color: var(--tinta); border: 1px solid var(--borde-fuerte); border-radius: 14px; padding: .9rem 1rem; box-shadow: 0 12px 40px rgba(0, 0, 0, .3); }
.tour-globo .x { position: absolute; top: .4rem; right: .4rem; width: 32px; height: 32px; font-size: 1.25rem; }
.tour-globo small { color: var(--marca-texto); font-weight: 600; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.tour-globo p { margin: .3rem 0 .8rem; font-size: .95rem; }
.tour-globo .botones { margin: 0; justify-content: space-between; align-items: center; }
.franja.demo { background: var(--tinta); color: var(--fondo); }
.franja.demo .btn { background: var(--grad); color: #fff; }
.franja.demo select { background: transparent; color: inherit; border: 1px solid currentColor; border-radius: 8px; padding: .2rem .4rem; font-size: .8rem; opacity: .85; }
.sueldo-calc .rent div { font-size: .9rem; }
input[type=range] { accent-color: var(--marca); width: 100%; }

/* ---------- Mis notas (26/10) ---------- */
.bandera { display: inline-flex; align-items: center; gap: .3rem; flex: none; font-size: .72rem; font-weight: 600; }
.bandera svg { width: 16px; height: 16px; fill: currentColor; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.bandera.p1 { color: var(--rojo); } .bandera.p2 { color: var(--amarillo); } .bandera.p3 { color: var(--gris-2); }
.bandera.p3 svg { fill: none; }
.nota-rapida { position: fixed; right: 16px; bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 29; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--borde-fuerte); background: var(--blanco); color: var(--marca-texto); box-shadow: 0 6px 22px rgba(10, 10, 20, .18); }
.nota-rapida svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nota-rapida span { display: none; }
.nota-rapida[hidden] { display: none; }
.nota-rapida:active { transform: scale(.96); }
@media (min-width: 900px) { .nota-rapida { width: auto; height: 44px; border-radius: 99px; padding: 0 1rem 0 .85rem; bottom: 24px; right: 24px; font-weight: 600; font-size: .9rem; } .nota-rapida span { display: inline; } }
.nota-editor { display: flex; flex-direction: column; gap: .6rem; }
.nota-texto { width: 100%; min-height: 160px; padding: .8rem; border: 1px solid var(--borde-fuerte); border-radius: 12px; background: var(--blanco); font-size: 1rem; line-height: 1.5; resize: vertical; }
.nota-titulo { width: 100%; padding: .6rem .8rem; border: 1px solid var(--linea); border-radius: 10px; background: var(--suave); font-size: .95rem; }
.nota-texto:focus, .nota-titulo:focus { outline: 2px solid var(--marca); outline-offset: 0; border-color: transparent; }
.nota-barra { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.prio-actual, .pin { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--linea); background: var(--blanco); border-radius: 99px; padding: .4rem .75rem; font-size: .85rem; font-weight: 500; min-height: 36px; }
.prio-actual .bandera { font-size: inherit; }
.pin svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pin.activa { border-color: var(--marca); color: var(--marca-texto); background: var(--verde-claro); }
.pin.activa svg { fill: currentColor; }
.nota-estado { margin-left: auto; font-size: .8rem; color: var(--gris); display: inline-flex; gap: .4rem; align-items: center; }
.nota-estado.ok { color: var(--ok); }
.prio-sel { display: grid; gap: .35rem; padding: .4rem; border: 1px solid var(--linea); border-radius: 12px; background: var(--suave); }
.prio-sel[hidden] { display: none; }
.prio-op { display: flex; align-items: flex-start; gap: .6rem; text-align: left; border: 1px solid transparent; background: var(--blanco); border-radius: 10px; padding: .55rem .7rem; }
.prio-op .bandera { margin-top: 2px; }
.prio-op span { display: flex; flex-direction: column; }
.prio-op small { color: var(--gris); font-size: .78rem; }
.prio-op.elegida { border-color: var(--marca); box-shadow: 0 0 0 1px var(--marca) inset; }
.nota-fechas { color: var(--gris-2); font-size: .75rem; margin: 0; }
.nota-acciones { display: flex; justify-content: space-between; align-items: center; }
.nota-acciones [hidden] { visibility: hidden; display: inline-flex; }
.notas-herr { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: .9rem; }
.notas-herr .buscador { flex: 1 1 220px; }
.notas-herr .segmento { flex: 0 0 auto; min-width: 250px; }
.notas-grupo { font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--gris); margin: .4rem 0 .5rem; }
.notas-grilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem; margin-bottom: .9rem; }
.nota-card { position: relative; background: var(--blanco); border: 1px solid var(--linea); border-left: 3px solid var(--linea); border-radius: 12px; box-shadow: var(--sombra); }
.nota-card.p1 { border-left-color: var(--rojo); } .nota-card.p2 { border-left-color: var(--amarillo); }
.nota-abrir { display: flex; flex-direction: column; gap: .3rem; width: 100%; text-align: left; background: none; border: 0; padding: .8rem 2.6rem .75rem .85rem; min-height: 72px; }
.nota-cab { display: flex; flex-direction: column; gap: .2rem; }
.nota-cab b { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.nota-previa { color: var(--gris); font-size: .85rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.nota-meta { color: var(--gris-2); font-size: .74rem; }
.pin-chico { position: absolute; top: .45rem; right: .45rem; width: 34px; height: 34px; border-radius: 50%; border: 0; background: none; color: var(--gris-2); display: grid; place-items: center; }
.pin-chico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pin-chico.activa { color: var(--marca-texto); } .pin-chico.activa svg { fill: currentColor; }
.pin-chico:hover { background: var(--suave); }
.notas-vacio { text-align: center; padding: 2rem 1rem; border: 1px dashed var(--borde-fuerte); border-radius: var(--radio); color: var(--gris); }
.notas-vacio p { margin: 0 0 1rem; font-size: 1rem; }
.nota.recuperar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .9rem; }
.nota-item .bandera { width: 22px; justify-content: center; }
.pin-mini svg { width: 13px; height: 13px; fill: var(--marca-texto); stroke: var(--marca-texto); stroke-width: 1.6; vertical-align: -2px; margin-right: .3rem; }
.notas-inicio-acc { display: flex; gap: .4rem; justify-content: space-between; margin-top: .5rem; }

/* ---------- Inicio personalizable (26/10) ---------- */
.cab .personalizar { flex: none; gap: .4rem; }
.cab .personalizar svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
@media (max-width: 480px) { .cab .personalizar span { display: none; } .cab .personalizar { width: 40px; padding: 0; } }
.tarjetas-inicio { display: flex; flex-direction: column; row-gap: 1.5rem; }
.tarjetas-inicio > .ti > .ti-cuerpo > h2:first-child { margin-top: 0; }
.tarjetas-inicio > .ti > .ti-cuerpo > :last-child { margin-bottom: 0; }
.editando { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; padding: .75rem .9rem; margin-bottom: 1rem; border-radius: var(--radio); background: var(--verde-claro); border: 1px solid var(--marca); }
.editando b { display: block; color: var(--titulo); }
.editando span { color: var(--gris); font-size: .82rem; }
.editando .botones { display: flex; gap: .3rem; flex: none; margin-left: auto; }
.tarjetas-inicio.editando-lista { row-gap: 12px; }
.ti.editable { border: 1px dashed var(--borde-fuerte); border-radius: var(--radio); background: var(--blanco); overflow: hidden; animation: ti-aviso .5s ease-out 1; transition: box-shadow .2s, transform .2s; }
.ti.editable .ti-cuerpo { max-height: 150px; overflow: hidden; padding: 0 .8rem .8rem; opacity: .6; pointer-events: none; -webkit-mask-image: linear-gradient(#000 65%, transparent); mask-image: linear-gradient(#000 65%, transparent); }
.ti.editable .ti-cuerpo h2 { display: none; }
.ti-barra { display: flex; align-items: center; gap: .6rem; padding: .55rem .6rem .55rem .8rem; background: var(--suave); border-bottom: 1px solid var(--linea); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.ti-barra b { flex: 1; min-width: 0; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ti-asa { color: var(--gris-2); letter-spacing: -2px; font-weight: 700; }
.ti-ctl { display: flex; gap: .25rem; flex: none; }
.ti-flecha, .ti-ocultar { min-width: 36px; height: 34px; border-radius: 9px; border: 1px solid var(--linea); background: var(--blanco); font-size: .85rem; padding: 0 .55rem; }
.ti-flecha:disabled { opacity: .35; cursor: default; }
.ti-ocultar { color: var(--gris); }
.ti.arrastrando { position: relative; z-index: 10; cursor: grabbing; box-shadow: 0 18px 40px rgba(10, 10, 20, .25); border-style: solid; border-color: var(--marca); transition: box-shadow .2s; }
.moviendo .ti:not(.arrastrando) { transition: transform .15s; }
.ocultas { margin-top: 1.4rem; }
.listo-flotante { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 29; box-shadow: 0 10px 30px rgba(10, 10, 20, .3); border-radius: 12px; }
.listo-flotante .btn { min-width: 160px; }
@media (min-width: 900px) { .listo-flotante { bottom: 24px; left: calc(50% + 116px); } }
.cab .btn { white-space: nowrap; }
@keyframes ti-aviso { 0% { transform: rotate(0); } 25% { transform: rotate(-.6deg); } 50% { transform: rotate(.6deg); } 75% { transform: rotate(-.3deg); } 100% { transform: rotate(0); } }
@media (prefers-reduced-motion: reduce) { .ti.editable { animation: none; } }

/* ---------- grupos con horarios por día (27/10) ---------- */
.horarios { display: grid; gap: .4rem; margin-bottom: .5rem; }
.horario-fila { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr) 36px; gap: .35rem; align-items: center; }
.horario-fila input[type=time] { padding-left: .4rem; padding-right: .3rem; }
.horario-fila .x { width: 36px; height: 36px; }

/* Reseña del suscriptor */
.resena .estrellas { display: flex; justify-content: center; gap: .35rem; margin: .2rem 0 .6rem; }
.resena .estrella { background: none; border: 0; padding: .1rem; font-size: 2.3rem; line-height: 1; color: var(--gris-2); cursor: pointer; transition: transform .12s ease, color .12s ease; }
.resena .estrella.on { color: #F5B301; }
.resena .estrella:active { transform: scale(.9); }
.resena .firma[hidden] { display: none; }

/* ---------- 3.6: fondos más suaves, degradé en lo activo y aire entre botones ---------- */
.pestanas button.activa, .periodo button.activa { background: var(--grad); color: #fff; border-color: transparent; }
.pestanas button.activa small { color: rgba(255, 255, 255, .8); }
.resumen { background: var(--grad-suave), var(--blanco); }
.form input, .form select, .form textarea { background: var(--fondo); }
.lista + :not(h2):not(h3) { margin-top: .75rem; }
.nota-rapida { transition: transform .2s ease, opacity .2s ease; }
.nota-rapida.escondida { transform: translateY(24px); opacity: 0; pointer-events: none; }
@media (max-width: 899px) {
  .acciones-inicio > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.acciones-inicio .btn { white-space: nowrap; padding-inline: .6rem; }
.tarjeta.pasos { position: relative; }
.tarjeta.pasos > .x { position: absolute; top: .5rem; right: .5rem; width: 32px; height: 32px; font-size: 1.25rem; }
.tarjeta.pasos > h2 { padding-right: 2.2rem; }

.semana-dia + .semana-dia { margin-top: .5rem; }
