/* Agenda Nails. Diseño pensado primero para celular. */

:root {
  --negro: #2a1b33;
  --texto: #2b2230;
  --texto-suave: #6e6478;
  --rosa: #8e5ba8;
  --rosa-oscuro: #6f3f8a;
  --rosa-claro: #f1e6f6;
  --dorado: #c9a46a;
  --oscuro2: #4a2d5c;
  --claro2: #e5d3ef;
  --claro3: #cfb0e0;
  --fondo: #faf7fb;
  --tarjeta: #ffffff;
  --borde: #e6dcec;
  --peligro: #c62f3d;
  --radio: 14px;
  --sombra: 0 2px 10px color-mix(in srgb, var(--negro) 8%, transparent);
  --alto-menu: 64px;

  --st-pendiente: #b7791f;
  --st-pendiente-fondo: #fdf3dc;
  --st-confirmada: #1f6fb7;
  --st-confirmada-fondo: #e2eefb;
  --st-atendida: #23824a;
  --st-atendida-fondo: #e1f4e8;
  --st-cancelada: #7d7480;
  --st-cancelada-fondo: #eeeaee;
  --st-no_asistio: #b3343f;
  --st-no_asistio-fondo: #fbe3e5;
}

* { box-sizing: border-box; }

/* Lo oculto siempre queda oculto, aunque su clase le dé otro display. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: var(--texto);
  background: var(--fondo);
  padding-bottom: calc(var(--alto-menu) + env(safe-area-inset-bottom));
}

h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.2; color: var(--negro); }
h1 { font-size: 1.45rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
a { color: var(--rosa-oscuro); }

/* ---------- Barra superior y menú ---------- */

.barra-superior {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .6rem 1rem; padding-top: calc(.6rem + env(safe-area-inset-top));
  background: var(--negro); color: #fff;
}
.marca { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; min-width: 0; }
.marca img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--rosa); object-fit: cover; }
.marca span { display: flex; flex-direction: column; min-width: 0; }
.marca strong { font-size: 1.05rem; letter-spacing: .02em; }
.marca small { color: var(--claro3); font-size: .75rem; }

.menu {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(6, 1fr);
  height: calc(var(--alto-menu) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: #fff; border-top: 1px solid var(--borde);
}
.menu a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: .68rem; color: var(--texto-suave); text-decoration: none;
}
.menu a span { font-size: 1.25rem; line-height: 1; }
.menu a.activo { color: var(--rosa-oscuro); font-weight: 600; }

main { max-width: 1100px; margin: 0 auto; padding: 1rem; outline: none; }

@media (min-width: 900px) {
  body { padding-bottom: 0; padding-left: 210px; }
  .barra-superior { margin-left: -210px; padding-left: 1.25rem; }
  .menu {
    top: 62px; right: auto; width: 210px; height: auto;
    display: flex; flex-direction: column; gap: 2px; padding: 1rem .6rem;
    border-top: 0; border-right: 1px solid var(--borde);
  }
  .menu a { flex-direction: row; justify-content: flex-start; gap: .7rem; font-size: .95rem; padding: .65rem .8rem; border-radius: 10px; }
  .menu a.activo { background: var(--rosa-claro); }
  main { padding: 1.5rem 2rem; }
}

/* ---------- Botones y formularios ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  min-height: 44px; padding: .55rem 1rem;
  font: inherit; font-weight: 600; font-size: .95rem;
  color: var(--texto); background: #fff;
  border: 1px solid var(--borde); border-radius: 999px; cursor: pointer;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--rosa); }
.btn-primario { background: var(--rosa); border-color: var(--rosa); color: #fff; }
.btn-primario:hover { background: var(--rosa-oscuro); }
.btn-peligro { background: var(--peligro); border-color: var(--peligro); color: #fff; }
.btn-chico { min-height: 36px; padding: .35rem .8rem; font-size: .85rem; }
.btn-icono { background: none; border: 0; font-size: 1.2rem; min-width: 44px; min-height: 44px; cursor: pointer; color: inherit; }
.btn-nueva { flex-shrink: 0; }
.barra-acciones { display: flex; align-items: center; gap: .25rem; flex-shrink: 0; }
.btn-ajustes { color: #fff; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.menu .solo-menu-lateral { display: none; }
@media (min-width: 900px) {
  .menu .solo-menu-lateral { display: flex; }
  .btn-ajustes { display: none; }
}
tr.fila-dia td { background: color-mix(in srgb, var(--rosa-claro) 60%, #fff); font-weight: 600; font-size: .85rem; }
tr.clicable { cursor: pointer; }
tr.clicable:hover td { background: var(--rosa-claro); }
tfoot th { background: var(--negro); color: #fff; font-size: .95rem; text-transform: none; letter-spacing: 0; }
tfoot th.num { text-align: right; }
th.num { text-align: right; }

.campo { display: flex; flex-direction: column; gap: .25rem; margin-bottom: .85rem; }
.campo label { font-size: .85rem; font-weight: 600; color: var(--texto-suave); }
.campo .ayuda { font-size: .8rem; color: var(--texto-suave); margin: 0; }
input, select, textarea {
  width: 100%; min-height: 44px; padding: .55rem .7rem;
  font: inherit; font-size: 16px; color: var(--texto);
  background: #fff; border: 1px solid var(--borde); border-radius: 10px;
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--rosa); outline-offset: 0; border-color: var(--rosa); }
[aria-invalid="true"] { border-color: var(--peligro); background: #fff7f7; }
.error-campo { color: var(--peligro); font-size: .82rem; margin: 0; }

.fila { display: grid; gap: 0 .75rem; grid-template-columns: 1fr 1fr; }
.fila-3 { grid-template-columns: 1fr 1fr 1fr; }
.fila > *, .filtros > * { min-width: 0; }
input[type=date], input[type=time] { min-width: 0; }
.acciones { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; margin-top: 1rem; }
.acciones-izq { justify-content: flex-start; }

.alerta { padding: .75rem .9rem; border-radius: 10px; margin-bottom: .85rem; font-size: .92rem; }
.alerta-error { background: #fbe3e5; color: #8e1f2a; }
.alerta-info { background: var(--rosa-claro); color: var(--rosa-oscuro); }

/* ---------- Encabezado de pantalla ---------- */

.encabezado { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 1rem; }
.encabezado h1 { margin: 0; }
.bienvenida {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: center;
  padding: 1.1rem 1.1rem 1.1rem 1rem; margin-bottom: .9rem; border-radius: 22px;
  background: linear-gradient(135deg, var(--rosa-claro) 0%, var(--claro2) 55%, var(--claro3) 100%);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--rosa) 22%, transparent);
}
.bienvenida::after { content: attr(data-pie); position: absolute; right: .9rem; bottom: .35rem; font-size: .75rem; letter-spacing: .1rem; color: color-mix(in srgb, var(--rosa-oscuro) 55%, transparent); }
.sticker-foto { grid-row: 1 / 3; width: 84px; height: 84px; border-radius: 50%; padding: 4px; background: #fff; transform: rotate(-6deg); box-shadow: 0 4px 12px color-mix(in srgb, var(--negro) 22%, transparent); }
.sticker-foto img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.bienvenida h1 { margin: 0 2.8rem 0 0; align-self: end; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 1.45rem; line-height: 1.15; color: var(--negro); }
.bienvenida p { margin: .3rem 0 0; align-self: start; font-size: .95rem; color: var(--rosa-oscuro); font-weight: 600; }
@media (min-width: 900px) { .bienvenida h1 { font-size: 1.9rem; } .sticker-foto { width: 100px; height: 100px; } }
.sticker-foto { border: 2px solid var(--dorado); }
.logo-editar { display: flex; align-items: center; gap: 1rem; margin-bottom: .8rem; }
.logo-editar img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--dorado); }
.logo-editar label.btn { cursor: pointer; }
.subtitulo { color: var(--texto-suave); margin: -.25rem 0 1rem; }

/* ---------- Tarjetas ---------- */

.tarjeta { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio); padding: 1rem; box-shadow: var(--sombra); margin-bottom: 1rem; }
.tarjeta h2 { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.tarjeta h2 a { font-size: .85rem; font-weight: 500; }

.indicadores { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-bottom: 1rem; }
@media (min-width: 700px) { .indicadores { grid-template-columns: repeat(4, 1fr); } }
.indicador { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: .8rem; box-shadow: var(--sombra); }
.indicador b { display: block; font-size: 1.6rem; color: var(--negro); }
.indicador span { font-size: .82rem; color: var(--texto-suave); }
.indicador-destacado { background: var(--negro); border-color: var(--negro); }
.indicador-destacado b { color: #fff; }
.indicador-destacado span { color: var(--claro3); }

.resumen-estados { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ---------- Estados ---------- */

.estado { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.st-pendiente { color: var(--st-pendiente); background: var(--st-pendiente-fondo); }
.st-confirmada { color: var(--st-confirmada); background: var(--st-confirmada-fondo); }
.st-atendida { color: var(--st-atendida); background: var(--st-atendida-fondo); }
.st-cancelada { color: var(--st-cancelada); background: var(--st-cancelada-fondo); }
.st-no_asistio { color: var(--st-no_asistio); background: var(--st-no_asistio-fondo); }

/* ---------- Lista de citas (tarjetas en celular) ---------- */

.lista-citas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.item-cita {
  display: grid; grid-template-columns: 82px 1fr; gap: .2rem .75rem; align-items: center;
  padding: .7rem .8rem; background: #fff; border: 1px solid var(--borde); border-left: 4px solid var(--rosa);
  border-radius: 12px; cursor: pointer; text-align: left; width: 100%; font: inherit; color: inherit;
}
.item-cita:hover { border-color: var(--rosa); }
.item-cita.cancelada { opacity: .6; border-left-color: var(--st-cancelada); }
.item-cita.atendida { border-left-color: var(--st-atendida); }
.item-cita.no_asistio { border-left-color: var(--st-no_asistio); }
.item-cita.confirmada { border-left-color: var(--st-confirmada); }
.item-cita .hora { font-weight: 700; color: var(--negro); line-height: 1.15; font-size: .92rem; white-space: nowrap; }
.item-cita .hora small { display: block; font-weight: 400; color: var(--texto-suave); font-size: .78rem; }
.item-cita .detalle { min-width: 0; }
.item-cita .detalle strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-cita .detalle > span { display: block; font-size: .85rem; color: var(--texto-suave); }
.item-cita .linea-estado { display: flex !important; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .25rem; }
.item-cita .linea-estado b { color: var(--texto); font-weight: 600; }

.grupo-dia { margin: 1rem 0 .4rem; font-size: .9rem; color: var(--texto-suave); font-weight: 600; }

/* ---------- Tabla (computador) ---------- */

.tabla-envoltura { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radio); overflow: hidden; }
th, td { padding: .6rem .7rem; text-align: left; border-bottom: 1px solid var(--borde); font-size: .92rem; vertical-align: middle; }
th { background: var(--rosa-claro); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--rosa-oscuro); }
tr.cancelada td { color: var(--texto-suave); }
td.num { text-align: right; white-space: nowrap; }
.solo-celular { display: block; }
.solo-computador { display: none; }
@media (min-width: 900px) {
  .solo-celular { display: none; }
  .solo-computador { display: block; }
}

/* ---------- Filtros ---------- */

.filtros { display: grid; gap: 0 .6rem; grid-template-columns: 1fr 1fr; }
.filtros .campo-texto { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .filtros { grid-template-columns: 2fr 1fr 1fr 1.2fr 1fr; }
  .filtros .campo-texto { grid-column: auto; }
}
.barra-resultados { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin: .25rem 0 .75rem; }
.barra-resultados p { margin: 0; color: var(--texto-suave); font-size: .9rem; }

/* ---------- Calendario ---------- */

.cal-controles { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .8rem; }
.cal-navegacion { display: flex; align-items: center; gap: .35rem; }
.cal-navegacion h2 { margin: 0 .35rem; font-size: 1.05rem; min-width: 9rem; text-align: center; }
.segmentos { display: inline-flex; background: #fff; border: 1px solid var(--borde); border-radius: 999px; padding: 3px; }
.segmentos button { border: 0; background: none; font: inherit; font-size: .88rem; padding: .4rem .85rem; border-radius: 999px; cursor: pointer; color: var(--texto-suave); min-height: 36px; }
.segmentos button.activo { background: var(--negro); color: #fff; font-weight: 600; }

.mes { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.mes .dia-semana { text-align: center; font-size: .72rem; font-weight: 600; color: var(--texto-suave); padding: .25rem 0; text-transform: uppercase; }
.mes .celda {
  min-height: 58px; padding: .3rem; background: #fff; border: 1px solid var(--borde); border-radius: 8px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; cursor: pointer; font: inherit; text-align: left; color: inherit;
}
.mes .celda.fuera { opacity: .45; }
.mes .celda.hoy { border-color: var(--rosa); box-shadow: inset 0 0 0 1px var(--rosa); }
.mes .celda .numero { font-size: .85rem; font-weight: 600; }
.mes .celda .cuenta { font-size: .7rem; background: var(--rosa); color: #fff; border-radius: 999px; padding: 0 .4rem; }
.mes .celda .mini { display: none; font-size: .72rem; width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (min-width: 900px) {
  .mes .celda { min-height: 96px; }
  .mes .celda .mini { display: block; }
  .mes .celda .cuenta { display: none; }
}

.semana .grupo-dia.hoy { color: var(--rosa-oscuro); }

.dia-linea { position: relative; background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); }
.dia-linea .franja {
  display: flex; align-items: flex-start; border-bottom: 1px dashed var(--borde);
  background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; font: inherit; color: var(--texto-suave);
  cursor: pointer; padding: 0; text-align: left;
}
.dia-linea .franja:hover { background: var(--rosa-claro); }
.dia-linea .franja span { width: 56px; font-size: .75rem; padding: .15rem .5rem; flex-shrink: 0; }
.dia-linea .bloque {
  position: absolute; left: 60px; right: 6px; border-radius: 8px; padding: .25rem .5rem; overflow: hidden;
  background: var(--rosa-claro); border-left: 4px solid var(--rosa); font-size: .82rem; cursor: pointer; text-align: left;
  border-top: 0; border-right: 0; border-bottom: 0; font-family: inherit; color: var(--texto);
}
.dia-linea .bloque strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dia-linea .bloque.confirmada { background: var(--st-confirmada-fondo); border-left-color: var(--st-confirmada); }
.dia-linea .bloque.atendida { background: var(--st-atendida-fondo); border-left-color: var(--st-atendida); }
.dia-linea .bloque.no_asistio { background: var(--st-no_asistio-fondo); border-left-color: var(--st-no_asistio); }

/* ---------- Clientas y servicios ---------- */

.lista-simple { list-style: none; margin: 0; padding: 0; }
.lista-simple li { border-bottom: 1px solid var(--borde); }
.lista-simple li:last-child { border-bottom: 0; }
.lista-simple a, .lista-simple button.item {
  display: flex; justify-content: space-between; align-items: center; gap: .75rem;
  padding: .75rem .25rem; text-decoration: none; color: inherit; width: 100%;
  background: none; border: 0; font: inherit; text-align: left; cursor: pointer;
}
.lista-simple .sec { color: var(--texto-suave); font-size: .85rem; }
.inactivo { opacity: .5; }

.ficha-datos { display: grid; grid-template-columns: auto 1fr; gap: .3rem .9rem; margin: 0; }
.ficha-datos dt { color: var(--texto-suave); font-size: .85rem; }
.ficha-datos dd { margin: 0; }

.vacio { text-align: center; padding: 1.5rem 1rem; color: var(--texto-suave); }
.vacio p { margin: 0 0 .75rem; }

/* ---------- Ventanas ---------- */

.ventana {
  width: min(560px, 100vw); max-height: 100dvh; padding: 0; border: 0; border-radius: var(--radio);
  box-shadow: 0 10px 40px rgba(0,0,0,.25); color: var(--texto);
}
.ventana-ancha { width: min(760px, 100vw); }
.ventana::backdrop { background: color-mix(in srgb, var(--negro) 60%, transparent); }
.ventana-cabecera { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: .6rem .6rem .6rem 1rem; background: #fff; border-bottom: 1px solid var(--borde); z-index: 1; }
.ventana-cabecera h2 { margin: 0; }
.ventana-cuerpo { padding: 1rem; }
@media (max-width: 600px) {
  .ventana { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: var(--radio) var(--radio) 0 0; max-height: 92dvh; }
}
.confirmar-texto { margin: 0 0 .5rem; }

.cliente-nuevo { border: 1px dashed var(--rosa); border-radius: 12px; padding: .75rem .75rem 0; margin-bottom: .85rem; background: color-mix(in srgb, var(--rosa-claro) 35%, #fff); }

/* ---------- Avisos ---------- */

.aviso {
  position: fixed; left: 50%; bottom: calc(var(--alto-menu) + 16px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  background: var(--negro); color: #fff; padding: .7rem 1.1rem; border-radius: 999px; font-size: .92rem;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100; max-width: calc(100vw - 32px); text-align: center;
}
.aviso.visible { opacity: 1; transform: translate(-50%, 0); }
.aviso-error { background: var(--peligro); }
@media (min-width: 900px) { .aviso { bottom: 24px; } }

.cargando { text-align: center; color: var(--texto-suave); padding: 3rem 0; }

@media (max-width: 380px) {
  .btn-nueva { padding: .5rem .75rem; font-size: .85rem; }
  .marca small { display: none; }
}

/* ---------- Versión 1.1 ---------- */

:root { --festivo: var(--claro2); --festivo-borde: var(--claro3); }

.mes .dia-semana.festivo { color: var(--rosa-oscuro); }
.mes .celda.festivo { background: var(--festivo); border-color: var(--festivo-borde); }
.mes .celda .nombre-festivo { display: none; color: var(--rosa-oscuro); font-weight: 600; }
@media (min-width: 900px) { .mes .celda .nombre-festivo { display: block; } }
.grupo-dia.festivo { color: var(--rosa-oscuro); background: var(--festivo); padding: .3rem .6rem; border-radius: 8px; }
.alerta-festivo { background: var(--festivo); color: var(--rosa-oscuro); font-weight: 600; }
.texto-festivo { color: var(--rosa-oscuro); font-weight: 600; }
.dia-especial { color: var(--rosa-oscuro) !important; font-weight: 600; }
.leyenda { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--texto-suave); margin: 0 0 .5rem; }
.muestra-festivo { width: 14px; height: 14px; border-radius: 4px; background: var(--festivo); border: 1px solid var(--festivo-borde); display: inline-block; }

.selector-hora { display: flex; align-items: center; gap: .3rem; }
.selector-hora select { padding-left: .4rem; padding-right: .2rem; }
.selector-hora span { font-weight: 700; }

.servicios-cita { border: 1px solid var(--borde); border-radius: 12px; padding: .75rem .75rem .25rem; margin-bottom: .85rem; background: color-mix(in srgb, var(--rosa-claro) 35%, #fff); }
.fila-servicio { display: grid; grid-template-columns: 1fr 6.2rem 36px; gap: 0 .5rem; align-items: start; }
.fila-servicio > * { min-width: 0; }
.fila-servicio .btn-icono { margin-top: 1.4rem; color: var(--texto-suave); min-width: 36px; }
.selector-hora select { flex: 1; }
.selector-hora select[name=horaP] { flex: 1.3; }
.total-cita { margin: .6rem 0 .5rem; text-align: right; font-size: 1.05rem; }
.total-cita b { color: var(--rosa-oscuro); }

.btn-whatsapp { background: #25d366; border-color: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5b; border-color: #1ebe5b; }
.tarjeta-recordatorios { border-color: #b6ebc9; }
.lista-simple li.recordatorio { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .6rem .25rem; }
.btn-enlace { background: none; border: 0; padding: 0; font: inherit; color: var(--rosa-oscuro); text-decoration: underline; cursor: pointer; }

.tarjeta-estado { background: linear-gradient(135deg, #f1e6f6, #fff); }
.vista-catalogo { width: 100%; max-width: 360px; display: block; margin: 0 auto .75rem; border-radius: 12px; box-shadow: var(--sombra); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Módulo de precios */
.vista-previa { display: flex; justify-content: center; min-height: 120px; }
.vista-previa .vista-catalogo { max-width: 300px; margin-bottom: .5rem; }
.acciones-centro { justify-content: center; }
.subtitulo-lista { margin: 1rem 0 .25rem; font-size: .95rem; color: var(--rosa-oscuro); }
.subtitulo-lista .sec { font-weight: 400; font-size: .8rem; }
.lista-simple li.fila-precio { display: grid; grid-template-columns: 1fr 7.5rem; gap: .5rem; align-items: center; }
.fila-precio .item { flex-direction: column; align-items: flex-start !important; gap: 0 !important; min-width: 0; }
.fila-precio .item strong { overflow-wrap: anywhere; }
.campo-precio { text-align: right; font-weight: 600; }

/* ---------- Colores en Ajustes ---------- */

.temas { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.tema { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .6rem .3rem; border: 2px solid var(--borde); border-radius: 14px; background: var(--tarjeta); font-size: .8rem; color: var(--texto); cursor: pointer; }
.tema .muestras { display: flex; }
.tema .muestras i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; margin-left: -6px; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.tema .muestras i:first-child { margin-left: 0; }
.tema[aria-pressed=true] { border-color: var(--rosa); background: var(--rosa-claro); font-weight: 700; }

/* ---------- Activación ---------- */

body.sin-activar .barra-superior, body.sin-activar .menu, body.sin-activar main { display: none; }
.pantalla-activacion {
  min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 1.5rem 1rem;
  background: linear-gradient(160deg, var(--negro) 0%, var(--oscuro2) 100%);
}
.caja-activacion {
  width: 100%; max-width: 380px; text-align: center; background: var(--tarjeta); border-radius: 26px;
  padding: 2rem 1.4rem 1.5rem; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); border-top: 4px solid var(--dorado);
}
.logo-activacion { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 3px solid var(--dorado); box-shadow: 0 6px 18px color-mix(in srgb, var(--negro) 25%, transparent); }
.caja-activacion h1 { font-family: Georgia, "Times New Roman", serif; font-style: italic; margin: .8rem 0 .3rem; font-size: 1.7rem; }
.caja-activacion p { color: var(--texto-suave); margin: 0 0 1.2rem; }
.caja-activacion input { text-align: center; font-size: 1.25rem; letter-spacing: .12rem; text-transform: uppercase; margin-bottom: .6rem; }
.caja-activacion .btn-primario { width: 100%; margin: .4rem 0 1rem; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Enlace de la agenda y firma discreta de quien vende la app */
.enlace-app { display: flex; gap: .5rem; align-items: center; }
.enlace-app code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: .8rem; background: var(--claro2); padding: .55rem .6rem; border-radius: 10px; }
.firma-vendedora { text-align: center; font-size: .75rem; color: var(--texto-suave); margin: 1.2rem 0 .4rem; opacity: .8; }
.firma-vendedora a { color: var(--rosa-oscuro); }
.logo-vendedora { width: 18px; height: 18px; border-radius: 5px; vertical-align: -4px; margin-right: .35rem; }

/* Stickers del inicio */
.sticker-a { position: absolute; left: 66px; top: 4px; font-size: 2.1rem; transform: rotate(14deg); z-index: 1; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .18)); line-height: 1; }
.sticker-b { position: absolute; right: 12px; top: 10px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, #fff 70%, transparent); font-size: 1.5rem; line-height: 1; }
.sticker-b.sticker-simple { background: none; color: var(--dorado); font-size: 1.3rem; width: auto; height: auto; top: .6rem; right: 1.1rem; }
.muestra-sticker { font-size: 1.35rem; letter-spacing: .1rem; line-height: 1.4; }
@media (min-width: 900px) { .sticker-a { left: 80px; } }

/* Video de cómo se usa */
.btn-guia { display: block; width: 100%; margin: .8rem 0 0; padding: .7rem 1rem; border: 2px dashed color-mix(in srgb, var(--rosa) 55%, transparent); border-radius: 14px; background: var(--rosa-claro); color: var(--rosa-oscuro); font: inherit; font-weight: 700; cursor: pointer; }
.video-guia { display: block; width: 100%; max-height: 70vh; border-radius: 14px; background: #000; }
