:root {
  --bg: #f6f3ee;
  --surface: #ffffff;
  --surface-2: #efebe4;
  --line: #e2dcd2;
  --text: #1b1d22;
  --muted: #6b6760;
  --accent: #283752;
  --accent-ink: #ffffff;
  --error: #b42318;
  --ok: #1e7a46;
  --radius: 14px;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --script: "Great Vibes", "Brush Script MT", cursive;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0 0 .4em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.4rem; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: var(--accent); margin: 0 0 .6em; font-weight: 600; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
  padding: .8em 1.3em; border-radius: 999px; font: 600 .95rem var(--sans);
  text-decoration: none; cursor: pointer; transition: filter .15s, background .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: .5em 1em; font-size: .85rem; }
.btn-full { width: 100%; }
.link { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Barra superior */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(246, 243, 238, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; font-family: var(--serif); font-size: 1.3rem; color: var(--text); text-decoration: none; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: .92rem; }
.nav a:not(.btn):hover { color: var(--text); }
@media (max-width: 640px) { .nav a:not(.btn) { display: none; } }

/* Portada */
.hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1000px 420px at 85% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    repeating-linear-gradient(135deg, rgba(0,0,0,.025) 0 2px, transparent 2px 22px),
    var(--bg);
}
.hero-in { padding: clamp(56px, 10vw, 120px) 16px clamp(48px, 8vw, 96px); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); max-width: 18ch; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); max-width: 46ch; margin: 0 0 1.6em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-cta:empty { display: none; }
.hero-meta { color: var(--muted); font-size: .88rem; margin: 1.6em 0 0; }

.marcas { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.marcas:empty { display: none; }
.marca {
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: var(--radius); padding: 24px;
}
.marca h2 { font-size: clamp(1.8rem, 4vw, 2.3rem); }
.marca .eyebrow { color: var(--accent); }
.marca .btn:not(.btn-ghost) { background: var(--accent); border-color: var(--accent); }
.marca-cta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }

/* Secciones */
.section { padding: clamp(56px, 8vw, 88px) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }

/* Servicios */
.servicios { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; margin-top: 28px; }
.cat h3 { border-bottom: 1px solid var(--line); padding-bottom: .4em; color: var(--accent); }
.cat h3 small { font: 500 .8rem var(--sans); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-left: .4em; }
.cat ul { list-style: none; margin: 0; padding: 0; }
.serv { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.serv > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.serv .muted { font-size: .88rem; }
.serv .dur { font-size: .78rem; color: var(--muted); }
.serv-der { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.precio { font-weight: 700; font-variant-numeric: tabular-nums; }
.precio small { font-weight: 400; color: var(--muted); }

/* Reserva */
.booking { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.paso { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.paso.abierto { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.paso-tit { display: flex; align-items: center; gap: 12px; padding: 14px 16px; font-weight: 600; flex-wrap: wrap; }
.paso:not(.abierto):not(.hecho) .paso-tit { color: var(--muted); }
.num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; border: 1px solid var(--line); flex-shrink: 0; }
.paso.abierto .num, .paso.hecho .num { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.valor { color: var(--muted); font-weight: 400; margin-left: auto; text-align: right; }
.paso-tit .link { font-size: .85rem; }
.paso-cuerpo { padding: 0 16px 18px; }
.grupo { margin: 10px 0 8px; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

.opciones { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.opcion {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font: inherit; cursor: pointer;
}
.opcion span { color: var(--muted); font-size: .85rem; }
.opcion:hover { border-color: var(--accent); }
.opcion.sel { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }

.dias { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.dia {
  flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; gap: 0;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 4px; font: inherit; cursor: pointer; scroll-snap-align: start;
}
.dia small { font-size: .72rem; color: var(--muted); text-transform: capitalize; }
.dia strong { font-size: 1.25rem; }
.dia:hover:not(:disabled) { border-color: var(--accent); }
.dia.sel { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.dia.sel small { color: var(--accent-ink); }
.dia:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

.horas { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.hora {
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 0; font: 600 .95rem var(--sans); cursor: pointer; font-variant-numeric: tabular-nums;
}
.hora:hover { border-color: var(--accent); }
.hora.sel { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cargando::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: giro .8s linear infinite; vertical-align: -1px; }
@keyframes giro { to { transform: rotate(360deg); } }

.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: .92rem; }
.form label .muted { font-weight: 400; }
.form input, .form textarea {
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font: 16px var(--sans); width: 100%;
}
.form input:focus, .form textarea:focus { border-color: var(--accent); outline: none; }
.resumen { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.resumen div { display: flex; flex-direction: column; min-width: 0; }
.resumen span { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.resumen strong { font-weight: 600; overflow-wrap: anywhere; }
.error { color: var(--error); margin: 0 0 10px; }

.ok { background: var(--surface); border: 1px solid var(--accent); border-radius: var(--radius); padding: 28px 20px; text-align: center; }
.ok-icono { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 1.6rem; font-weight: 700; }
.ok .resumen { text-align: left; margin: 18px 0; }
.ok-acciones { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Equipo */
.equipo { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; margin-top: 24px; }
.pro { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.pro img, .avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; }
.avatar { display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); font: 1.6rem var(--serif); color: var(--accent); }
.pro .muted { font-size: .85rem; }

/* Ubicación */
.ubicacion { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: start; }
@media (max-width: 760px) { .ubicacion { grid-template-columns: 1fr; } }
.horario { list-style: none; padding: 0; margin: 16px 0; max-width: 380px; }
.horario li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.horario li.hoy { color: var(--accent); font-weight: 600; }
.direccion { font-weight: 600; margin: 0 0 4px; }
.contacto a { text-decoration: none; }
.mapa iframe { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: var(--radius); }

/* Pie */
.footer { padding: 28px 0 90px; color: var(--muted); font-size: .85rem; }
.footer-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.footer p { margin: 0; }
.footer a { color: var(--muted); }

.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 30; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

/* ---------- Panel del equipo (admin.html) ---------- */
.admin-main { padding-top: 28px; padding-bottom: 60px; }
.admin-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0 20px; }
.admin-bar input[type="date"] { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: 15px var(--sans); }
.admin-bar select { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: 15px var(--sans); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 20px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.kpi span { display: block; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.kpi strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.citas { display: flex; flex-direction: column; gap: 8px; }
.cita { display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 12px 14px; }
.cita.cancelada { opacity: .5; border-left-color: var(--line); }
.cita.cancelada .cita-hora { text-decoration: line-through; }
.cita-hora { font-weight: 700; font-variant-numeric: tabular-nums; }
.cita-hora small { display: block; font-weight: 400; color: var(--muted); }
.cita-info { min-width: 0; }
.cita-info strong { display: block; }
.cita-info span { color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.cita-acc { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.etiqueta { display: inline-block; font-size: .72rem; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); margin-left: 6px; vertical-align: 1px; }
@media (max-width: 560px) {
  .cita { grid-template-columns: 1fr; gap: 6px; }
  .cita-acc { justify-content: flex-start; }
}
.login { max-width: 380px; margin: 40px auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.vacio { color: var(--muted); padding: 24px; text-align: center; border: 1px dashed var(--line); border-radius: 12px; }

/* ---------- Logos y redes ---------- */
.logo { display: block; border-radius: 50%; object-fit: contain; background: #fff; flex-shrink: 0; }
.logo-txt {
  overflow: hidden; padding: 0 6%;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--logo-bg, #111); color: #fff; line-height: 1; text-align: center;
}
.logo-txt b { font: 400 1em var(--script); }
.logo-txt small { font: 500 .22em var(--sans); letter-spacing: .5em; text-transform: uppercase; margin: .35em 0 0 .5em; }
.logo-mini { width: 36px; height: 36px; font-size: 7.5px; border: 1px solid var(--line); }
.logo-card { width: 84px; height: 84px; font-size: 17px; border: 1px solid var(--line); }
.logo-hero { width: clamp(120px, 22vw, 170px); height: clamp(120px, 22vw, 170px); font-size: clamp(25px, 4.4vw, 35px); margin-bottom: 22px; box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.brand .logo-mini + .logo-mini { margin-left: -16px; }
.marca-top { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.marca-top h2 { margin: 0; }
.marca-top .eyebrow { margin-bottom: .3em; }
.redes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.redes:empty { display: none; }
.red {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font-size: .88rem; font-weight: 500;
}
.red:hover { border-color: var(--accent); color: var(--accent); }
.sub-h { font-size: 1.2rem; margin: 26px 0 10px; }
.encuentra { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 12px; padding: 12px 0; border-top: 1px dashed var(--line); }
.encuentra .redes { grid-column: 2; margin-top: 4px; }
.pro-marcas { font-size: .75rem; color: var(--accent); }

/* Horario con varias marcas: una columna por marca */
.horario-varias { max-width: 520px; }
.horario-varias li { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 12px; }
.horario-varias li span + span { text-align: right; }
.horario-tit span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Módulo Agenda ---------- */
.wrap-ancho { max-width: 1400px; }
.agenda-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.agenda-cab h2 { margin: 0; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.seg button { border: 0; background: transparent; padding: 6px 16px; border-radius: 999px; font: 600 .88rem var(--sans); color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.ayuda { font-size: .85rem; margin: 0 0 12px; }
.cargando-mini { font-size: .85rem; margin: 0 0 8px; }
.admin-bar input[type="month"] { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: 15px var(--sans); }

.grilla { display: flex; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); max-height: 75vh; overflow-y: auto; }
.g-col, .g-tiempos { flex: 1 0 150px; border-left: 1px solid var(--line); position: relative; }
.g-tiempos { flex: 0 0 56px; border-left: 0; position: sticky; left: 0; z-index: 3; background: var(--surface); }
.g-cab { position: sticky; top: 0; z-index: 2; height: 52px; padding: 8px 10px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.g-cab strong { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-cab small { color: var(--muted); font-size: .72rem; }
.g-cuerpo { position: relative; cursor: pointer;
  background:
    repeating-linear-gradient(to bottom, transparent 0 calc(45px - 1px), var(--line) calc(45px - 1px) 45px),
    repeating-linear-gradient(135deg, var(--surface-2) 0 6px, transparent 6px 12px);
}
.g-tiempos .g-cuerpo { cursor: default; background: none; }
.g-hora { position: absolute; left: 0; right: 6px; transform: translateY(-7px); text-align: right; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.g-turno { position: absolute; left: 0; right: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--line);
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(45px - 1px), var(--line) calc(45px - 1px) 45px); }
.g-res, .g-bloq { position: absolute; left: 4px; right: 4px; border-radius: 8px; padding: 4px 8px; text-align: left; overflow: hidden; cursor: pointer; font: inherit; display: flex; flex-direction: column; gap: 1px; z-index: 1; }
.g-res { background: color-mix(in srgb, var(--c) 14%, #fff); border: 1px solid color-mix(in srgb, var(--c) 45%, #fff); border-left: 4px solid var(--c); color: var(--text); }
.g-res b { font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-res small, .g-bloq small { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-bloq { background: repeating-linear-gradient(135deg, #e7e2da 0 6px, #f1ede6 6px 12px); border: 1px dashed #b9b1a4; color: #5b554c; font-size: .78rem; }

.mes-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.mes { border-collapse: collapse; font-size: .78rem; min-width: 100%; }
.mes th, .mes td { border: 1px solid var(--line); text-align: center; padding: 0; }
.mes thead th { padding: 6px 4px; font-weight: 600; min-width: 46px; }
.mes thead th small { display: block; color: var(--muted); font-weight: 400; text-transform: capitalize; }
.mes tbody th { position: sticky; left: 0; background: var(--surface); text-align: left; padding: 6px 10px; white-space: nowrap; z-index: 1; font-weight: 600; }
.mes td { height: 48px; cursor: pointer; position: relative; font-variant-numeric: tabular-nums; }
.mes td span { display: block; font-size: .68rem; color: var(--muted); }
.mes td b { display: inline-block; min-width: 20px; padding: 1px 6px; margin-top: 2px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .72rem; }
.mes td i { display: block; font-style: normal; font-size: .62rem; color: #8a5a00; }
.mes td:hover { outline: 2px solid var(--accent); outline-offset: -2px; }
.m-libre { background: var(--surface-2); color: #b5ada0; }
.m-bajo { background: #e6f4ea; } .m-medio { background: #fff4d6; } .m-alto { background: #fde2dd; }
.m-hoy { box-shadow: inset 0 0 0 2px var(--accent); }
.leyenda { display: flex; gap: 8px; margin-top: 10px; font-size: .78rem; flex-wrap: wrap; }
.leyenda span { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); }

dialog#modal { border: 0; border-radius: 16px; padding: 0; width: min(520px, calc(100vw - 32px)); background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog#modal::backdrop { background: rgba(20, 18, 15, .45); }
.dlg { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.dlg h3 { margin: 0; }
.dlg select { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font: 15px var(--sans); width: 100%; }
.dlg .dos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dlg .check { flex-direction: row; align-items: center; gap: 8px; }
.dlg .check input { width: auto; }
.dlg-acc { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.g-tiempos .g-hora:first-child { transform: none; }

/* ---------- Ingreso con Google ---------- */
.g-boton { display: flex; justify-content: center; min-height: 44px; }
.separador { text-align: center; font-size: .82rem; margin: 0; }

/* ---------- Mi agenda (profesional) ---------- */
.semana { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.dia-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.dia-card.hoy { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.dia-card.libre { background: var(--surface-2); }
.dia-card header { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.dia-card header span { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.dia-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dia-card li { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; padding: 6px 8px; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 8%, #fff); border-radius: 6px; }
.dia-card li b { font-variant-numeric: tabular-nums; font-size: .85rem; }
.dia-card li small { grid-column: 2; color: var(--muted); font-size: .78rem; }
.dia-card .muted { font-size: .85rem; margin: 0; }
.bloq-linea { margin: 8px 0 0; font-size: .8rem; color: #6b5d45; background: #f1ede6; border: 1px dashed #c9bfae; border-radius: 6px; padding: 4px 8px; }

/* ---------- Mi pago ---------- */
.kpi-grande strong { font-size: 2rem; color: var(--accent); }
.pago-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 860px) { .pago-grid { grid-template-columns: 1fr; } }
.caja-blanca { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.caja-blanca h3 { font-size: 1.15rem; margin-bottom: 10px; }
.tabla-pago { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tabla-pago td { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.tabla-pago td:last-child { text-align: right; white-space: nowrap; }
.tabla-pago tr.suma td:first-child::before { content: "+ "; color: var(--ok); }
.tabla-pago tr.resta td:first-child::before { content: "− "; color: var(--error); }
.tabla-pago tr.total td { border-bottom: 0; border-top: 2px solid var(--text); font-size: 1.1rem; padding-top: 10px; }
.nota { font-size: .8rem; margin: 10px 0 0; }
.tabla-scroll { max-height: 460px; overflow: auto; }
.tabla-detalle { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
.tabla-detalle th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); }
.tabla-detalle td { padding: 7px 8px; border-bottom: 1px dashed var(--line); vertical-align: top; }
.tabla-detalle td small { display: block; color: var(--muted); font-size: .75rem; }
.tabla-detalle td:nth-last-child(-n+2), .tabla-detalle th:nth-last-child(-n+2) { text-align: right; white-space: nowrap; }
