:root {
  --ink: #0a0a0a;
  --ink-soft: #595959;
  --paper: #ffffff;
  --surface: #ffffff;
  --accent: #000000;
  --accent-ink: #1a1a1a;
  --accent-soft: #f0f0f0;
  --panel-bg: #f5f5f5;
  --marigold: #000000;
  --line: #e0e0e0;

  --font-display: "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

html {
  font-size: 15px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 17px;
  }
}

body {
  margin-bottom: 60px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
}

h1, h2, h3, .navbar-brand {
  font-family: var(--font-display);
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--ink);
}

/* Focus */
:focus-visible,
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  outline: none;
  box-shadow: 0 0 0 0.15rem var(--paper), 0 0 0 0.3rem var(--accent);
}

/* Header */
.site-header .navbar {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand-mark {
  width: 0.9rem;
  height: 0.9rem;
  background: var(--marigold);
  border-radius: 50% 50% 50% 0;
}

.navbar .nav-link {
  color: var(--ink-soft);
  font-weight: 600;
}

.navbar .nav-link:hover {
  color: var(--accent);
}

/* Hero */
.hero {
  display: grid;
  gap: 3rem;
  align-items: center;
  padding: 3.5rem 0 2rem;
}

@media (min-width: 992px) {
  .hero {
    grid-template-columns: 1.1fr 1fr;
    gap: 5rem;
    padding-top: 5rem;
  }
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 14ch;
  margin-bottom: 1.25rem;
}

.hero .lead {
  max-width: 44ch;
  color: var(--ink-soft);
  font-size: 1.15rem;
}

/* Run sheet: the memorable element */
.runsheet {
  list-style: none;
  margin: 0;
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.runsheet li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  align-items: baseline;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  animation: runsheet-in 0.5s ease-out backwards;
}

.runsheet li:first-child {
  border-top: 0;
}

.runsheet li:nth-child(2) { animation-delay: 0.08s; }
.runsheet li:nth-child(3) { animation-delay: 0.16s; }
.runsheet li:nth-child(4) { animation-delay: 0.24s; }
.runsheet li:nth-child(5) { animation-delay: 0.32s; }
.runsheet li:nth-child(6) { animation-delay: 0.4s; }

.runsheet time {
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.runsheet li.runsheet-key {
  margin: 0 -0.75rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 0.3rem;
  border-top-color: transparent;
  font-weight: 600;
}

.runsheet li.runsheet-key + li {
  border-top-color: transparent;
}

@keyframes runsheet-in {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .runsheet li {
    animation: none;
  }
}

/* Forms */
.btn-primary {
  color: #fff;
  background-color: var(--accent);
  border-color: var(--accent);
}

.btn-primary:hover {
  background-color: var(--ink);
  border-color: var(--ink);
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: var(--accent);
  border-color: var(--accent);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Footer */
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* ---- Formularios, avisos, tablas, calendario, portal ---- */
.formulario { display: grid; gap: .35rem; max-width: 34rem; }
.formulario label { font-weight: 600; margin-top: .6rem; }
.formulario input, .formulario select, .formulario textarea {
  width: 100%; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: .4rem; background: var(--surface); font: inherit; min-height: 2.75rem;
}
.formulario .check { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; }
.formulario .check input { width: auto; min-height: 0; margin-top: .35rem; }
.trampa { position: absolute; left: -9999px; }
.error, .formulario .error { color: #a12626; font-size: .9rem; }
.nota { color: var(--ink-soft); font-size: .9rem; }
.btn-primario { background: var(--accent); color: #fff; border: 0; padding: .65rem 1.2rem; border-radius: .4rem; min-height: 2.75rem; }
.btn-primario:hover { background: var(--ink); color: #fff; }
.btn-secundario { background: transparent; color: var(--accent); border: 1px solid var(--accent); padding: .35rem .8rem; border-radius: .4rem; min-height: 2.75rem; }
.aviso { padding: .8rem 1rem; border-radius: .4rem; margin: 1rem 0; border: 1px solid var(--line); background: var(--surface); }
.aviso-ok { border-color: #333333; }
.aviso-error { border-color: #a12626; }
.dos-columnas { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .dos-columnas { grid-template-columns: 1fr 1fr; } }

.card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.salon-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: .5rem; padding: 1rem 1.2rem; text-decoration: none; color: var(--ink); }
.salon-card:hover { border-color: var(--accent); }
.galeria { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); margin: 1rem 0; }
.galeria img { width: 100%; height: auto; border-radius: .4rem; object-fit: cover; }
.reel { width: 100%; max-width: 28rem; aspect-ratio: 9 / 16; border: 0; border-radius: .4rem; margin: 1rem 0; }
.texto-libre { white-space: pre-line; }

#calendario { max-width: 26rem; }
.cal-barra { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; text-transform: capitalize; }
.cal-nav { border: 1px solid var(--line); background: var(--surface); border-radius: .4rem; width: 2.75rem; height: 2.75rem; font-size: 1.2rem; }
.cal-rejilla { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.cal-dia-nombre { font-size: .8rem; color: var(--ink-soft); }
.cal-dia { padding: .6rem 0; border-radius: .3rem; text-decoration: none; }
.cal-dia.libre { background: #ececec; color: var(--ink); }
.cal-dia.libre:hover { background: var(--accent); color: #fff; }
.cal-dia.ocupado { background: #ecebe7; color: #8a8a8a; text-decoration: line-through; }

/* ---- Acceso ---- */
.login { max-width: 56rem; margin: 1.5rem auto; }
.login h1 { font-size: 2rem; margin-bottom: .2rem; }
.login-sub { color: var(--ink-soft); margin-bottom: 1rem; }
.login-tarjetas { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.25rem; align-items: start; }
.login-tarjeta { background: var(--surface); border: 1px solid var(--line); border-radius: .6rem; padding: 1.4rem; box-shadow: 0 2px 10px rgb(29 43 51 / .07); }
.login-equipo { border-top: 5px solid var(--accent); }
.login-tarjeta h2 { font-size: 1.3rem; margin-top: 0; }
.login-tarjeta .formulario { max-width: none; }
.login-tarjeta .formulario input, .login-tarjeta .formulario select { font-size: 1.05rem; min-height: 3rem; }
.login-boton { width: 100%; margin-top: 1rem; font-size: 1.05rem; min-height: 3rem; }

/* ---- Cotizador y calendario de seguimiento ---- */
.formulario-ancho { max-width: 52rem; }
.formulario fieldset { border: 1px solid var(--line); border-radius: .4rem; padding: .6rem .8rem; margin-top: .8rem; }
.formulario legend { font-weight: 600; padding: 0 .3rem; }
.extra-fila { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .3rem 0; border-bottom: 1px solid var(--line); }
.extra-fila .check { flex: 1 1 16rem; }
.extra-fila input[type=number], .extra-fila input[type=text], .extra-fila select { width: auto; max-width: 9rem; }
.acciones { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.tarjetas { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .8rem; }
.tarjeta-salon { display: grid; gap: .25rem; border: 1px solid var(--line); border-radius: .5rem; padding: .6rem; background: var(--surface); font-weight: 400; cursor: pointer; }
.tarjeta-salon:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.tarjeta-salon img { width: 100%; height: auto; border-radius: .3rem; object-fit: cover; aspect-ratio: 8 / 5; }
.etiqueta { display: inline-block; background: #fff1cf; border: 1px solid #b7791f; border-radius: 1rem; padding: 0 .5rem; font-size: .8rem; }
.filtros { display: flex; flex-wrap: wrap; gap: .8rem; align-items: end; margin: .8rem 0; }
.cal-mes { display: grid; grid-template-columns: repeat(7, minmax(6.5rem, 1fr)); gap: 3px; min-width: 46rem; }
.cal-mes-cab { font-weight: 600; text-align: center; padding: .3rem 0; background: var(--surface); }
.cal-celda { min-height: 6rem; border: 1px solid var(--line); border-radius: .3rem; padding: .25rem; background: #fff; display: grid; align-content: start; gap: 3px; }
.cal-celda.fuera { background: var(--surface); opacity: .55; }
.cal-celda.hoy { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.cal-num { font-size: .8rem; color: var(--ink-soft); }
.chip { font-size: .75rem; line-height: 1.25; border-radius: .3rem; padding: .2rem .3rem; border: 1px solid var(--line); overflow-wrap: anywhere; }
.chip small { color: var(--ink-soft); }
.chip-confirmado { background: #dcdcdc; border-color: #333333; }
.chip-apartado { background: #fff1cf; border-color: #b7791f; }
.chip-pendiente { background: #e5ecf6; border: 1px dashed #3b5f8f; }
.chip-bloqueado { background: #ecebe7; border-color: #8a8a8a; }
.chip-urgente { border-color: #a12626; box-shadow: 0 0 0 1px #a12626; }

.tarjeta-evento { background: var(--surface); border: 1px solid var(--line); border-radius: .5rem; padding: 1rem 1.2rem; margin-bottom: 1.2rem; }
.resumen { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 1rem 0; }
.resumen dt { font-size: .85rem; color: var(--ink-soft); font-weight: 400; }
.resumen dd { font-size: 1.3rem; font-weight: 600; margin: 0; }
.estado { display: inline-block; padding: .1rem .6rem; border-radius: 1rem; background: #ececec; font-size: .85rem; }
.lista-pagos { list-style: none; padding: 0; }
.lista-pagos li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.contrato-texto { white-space: pre-wrap; font-family: var(--font-body); background: var(--surface); border: 1px solid var(--line); border-radius: .4rem; padding: 1rem; }
.lienzo { width: 100%; max-width: 600px; height: auto; aspect-ratio: 3 / 1; background: #fff; border: 1px dashed var(--ink-soft); border-radius: .4rem; }
#mensaje.ok { color: #333333; } #mensaje.error { color: #a12626; }

.tabla-scroll { overflow-x: auto; }
.tabla { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tabla th, .tabla td { border-bottom: 1px solid var(--line); padding: .5rem .6rem; text-align: left; vertical-align: top; }
.pago-rapido { display: flex; flex-wrap: wrap; gap: .3rem; }
.pago-rapido input, .pago-rapido select { max-width: 8rem; min-height: 2.5rem; }
.cambios { font-size: .75rem; word-break: break-all; }
.site-header form { margin: 0; }

/* =====================================================================
   Marca: blanco, magenta y DM Sans; botones en píldora; panel con menú lateral.
   Va al final para ganarle a las reglas anteriores sin subir especificidad.
   ===================================================================== */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-variant-numeric: normal; }
h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
p, li, .nota { text-wrap: pretty; }
.tabla td, .tabla th, .resumen dd, .cal-num, .chip { font-variant-numeric: tabular-nums; }

/* Encabezado del sitio */
.site-header { background: #fff; position: sticky; top: 0; z-index: 20; }
.site-header .navbar { border-bottom: 1px solid var(--line); }
.brand-mark { background: var(--accent); width: 1rem; height: 1rem; }
.navbar .nav-link { color: var(--ink); font-weight: 500; }
.navbar .nav-link:hover, .navbar .nav-link:focus-visible { color: var(--accent); }
.btn-acceso {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .5rem 1.3rem;
  background: var(--accent); color: #fff; border: 0; border-radius: 999px; font-weight: 600; text-decoration: none;
  box-shadow: 0 4px 14px rgb(0 0 0 / .2);
  transition-property: background-color, box-shadow, transform; transition-duration: 150ms; transition-timing-function: ease-out;
}
.btn-acceso:hover { background: var(--accent-ink); color: #fff; }
.btn-acceso:active { transform: scale(.97); }

/* Botones */
.btn-primario, .btn-secundario {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 2.75rem;
  border-radius: 999px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition-property: background-color, color, border-color, box-shadow, transform; transition-duration: 150ms; transition-timing-function: ease-out;
}
.btn-primario { background: var(--accent); color: #fff; border: 1px solid var(--accent); padding: .6rem 1.4rem; box-shadow: 0 4px 14px rgb(0 0 0 / .2); }
.btn-primario:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn-secundario { background: #fff; color: var(--accent-ink); border: 1px solid var(--accent); padding: .45rem 1.1rem; }
.btn-secundario:hover { background: var(--accent-soft); color: var(--accent-ink); }
.btn-primario:active, .btn-secundario:active { transform: scale(.97); }
:focus-visible { outline: none; box-shadow: 0 0 0 .15rem #fff, 0 0 0 .3rem var(--accent); }

/* Campos */
.formulario input, .formulario select, .formulario textarea {
  border-radius: .65rem; border-color: #cccccc;
  transition-property: border-color, box-shadow; transition-duration: 150ms; transition-timing-function: ease-out;
}
.formulario input:focus, .formulario select:focus, .formulario textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
.formulario input[type=checkbox] { accent-color: var(--accent); }
.formulario label { color: var(--ink); }
.formulario legend { color: var(--ink); }

/* Tarjetas, avisos y tablas */
.login-tarjeta, .tarjeta-evento, .tarjeta-salon, .runsheet {
  border-radius: 1rem; border-color: var(--line);
  box-shadow: 0 1px 2px rgb(20 24 31 / .05), 0 6px 20px rgb(20 24 31 / .06);
}
.tarjeta-salon { border-radius: 1rem; }
.tarjeta-salon img { border-radius: .6rem; outline: 1px solid rgb(0 0 0 / .08); outline-offset: -1px; }
.aviso { border-radius: .8rem; border-left-width: 4px; }
.aviso-ok { border-left-color: #222222; background: #f5f5f5; }
.aviso-error { border-left-color: #c0262d; background: #fdf3f3; }
.etiqueta { background: #fef3c7; border-color: #d97706; color: #6b3d00; }
.tabla-scroll { background: #fff; border: 1px solid var(--line); border-radius: 1rem; }
.tabla th { background: var(--panel-bg); color: var(--ink-soft); font-weight: 600; font-size: .82rem; white-space: nowrap; }
.tabla tbody tr:hover { background: #fafafa; }
.tabla tfoot th, .tabla tfoot td { border-top: 2px solid var(--line); }
.resumen > div { background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: .8rem 1.2rem; min-width: 10rem; box-shadow: 0 1px 2px rgb(20 24 31 / .05); }
.resumen dd { font-size: 1.6rem; font-weight: 700; color: var(--ink); }
.estado { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }

/* Calendario de seguimiento: rosa confirmado, ámbar apartado, violeta pendiente */
.cal-mes-cab { color: var(--ink-soft); font-size: .85rem; background: transparent; }
.cal-celda { border-radius: .7rem; }
.cal-celda.hoy { box-shadow: inset 0 0 0 2px var(--accent); }
.cal-celda.hoy .cal-num { color: var(--accent-ink); font-weight: 700; }
.chip { border-radius: .5rem; border-width: 1px; border-left-width: 4px; }
.chip-confirmado { background: var(--accent-soft); border-color: #c4c4c4; border-left-color: var(--accent); }
.chip-apartado { background: #fef3c7; border-color: #f4d58a; border-left-color: #d97706; }
.chip-pendiente { background: #f1ecff; border: 1px dashed #b9a6f0; border-left: 4px solid #6d3fd8; }
.chip-bloqueado { background: #eeeeee; border-color: #d0d0d0; border-left-color: #8a8a8a; }
.chip-urgente { border-color: #c0262d; box-shadow: 0 0 0 1px #c0262d; }
.cal-barra strong { font-size: 1.2rem; }

/* Acceso */
.login-equipo { border-top-color: var(--accent); }
.login h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }

/* Panel: menú lateral + contenido */
body:has(.panel-app) { background: var(--panel-bg); }
.panel-app { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 1.75rem; align-items: start; padding-top: 1.25rem; }
.panel-nav { position: sticky; top: 5.2rem; display: grid; gap: .1rem; background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: .85rem; box-shadow: 0 1px 2px rgb(20 24 31 / .05); }
.panel-nav h2 { font-size: .8rem; font-weight: 600; letter-spacing: 0; color: var(--ink-soft); margin: .9rem .6rem .3rem; }
.panel-nav h2:first-child { margin-top: .2rem; }
.panel-nav a {
  display: flex; align-items: center; gap: .65rem; min-height: 2.75rem; padding: .5rem .75rem; border-radius: .75rem;
  color: var(--ink); text-decoration: none; font-weight: 500;
  transition-property: background-color, color; transition-duration: 150ms; transition-timing-function: ease-out;
}
.panel-nav a:hover { background: var(--panel-bg); }
.panel-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.panel-nav svg { width: 1.15rem; height: 1.15rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.panel-main { min-width: 0; }
.panel-main > h1:first-child { margin-top: 0; }
@media (max-width: 991px) {
  .panel-app { grid-template-columns: 1fr; gap: 1rem; }
  .panel-nav { position: static; display: flex; flex-wrap: wrap; gap: .3rem; }
  .panel-nav h2 { width: 100%; margin: .5rem .4rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Ajustes tras revisar en pantalla */
.filtros label { display: grid; gap: .25rem; font-weight: 600; }
.filtros select { min-height: 2.75rem; padding: .5rem .75rem; border: 1px solid #cccccc; border-radius: .65rem; background: #fff; font: inherit; }
.filtros .check { display: flex; align-items: center; gap: .5rem; font-weight: 400; min-height: 2.75rem; }
.filtros input[type=checkbox] { accent-color: var(--accent); width: 1.1rem; height: 1.1rem; }
td.pago-rapido { min-width: 17rem; }
.pago-rapido { align-items: center; }
.pago-rapido .btn-secundario { min-height: 2.4rem; padding: .25rem .85rem; font-size: .85rem; }
.pago-rapido form { margin: 0; }
.tabla td { vertical-align: middle; }
.panel-main > p:first-of-type a { font-size: .9rem; }

/* Bitácora de auditoría */
.filtro-pildoras { display: flex; flex-wrap: wrap; gap: .4rem; margin: .8rem 0 1.2rem; }
.filtro-pildoras a {
  display: inline-flex; align-items: center; min-height: 2.5rem; padding: .3rem .95rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .9rem;
  transition-property: background-color, border-color, color; transition-duration: 150ms; transition-timing-function: ease-out;
}
.filtro-pildoras a:hover { border-color: var(--accent); color: var(--accent-ink); }
.filtro-pildoras a[aria-current] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.tabla-auditoria td { vertical-align: top; }
.tabla-auditoria small { color: var(--ink-soft); }
.nowrap { white-space: nowrap; }
.insignia { display: inline-block; padding: .1rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 700; border: 1px solid transparent; }
.insignia-alta { background: #f0f0f0; color: #1a1a1a; border-color: #c4c4c4; }
.insignia-cambio { background: #fef3c7; color: #6b3d00; border-color: #f4d58a; }
.insignia-baja { background: #fdecec; color: #8f1d22; border-color: #f2b8bb; }
.insignia-otra { background: #f1ecff; color: #4b2aa6; border-color: #cdbff5; }
.cambios-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; font-size: .85rem; }
.cambios-lista .campo { display: inline-block; min-width: 7rem; font-weight: 600; color: var(--ink-soft); }
.cambios-lista del { color: #8f1d22; text-decoration-thickness: 1px; }
.cambios-lista ins { color: #1a1a1a; text-decoration: none; font-weight: 600; }
.tabla-auditoria details summary { cursor: pointer; color: var(--accent-ink); font-weight: 600; min-height: 1.5rem; }
.tabla-auditoria details[open] summary { margin-bottom: .3rem; }

/* Prospectos y datos del cliente en el cotizador */
.mensaje-cliente { max-width: 26rem; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9rem; }
.boton-chico { min-height: 2.4rem; padding: .25rem 1rem; font-size: .9rem; }
.tarjeta-prospecto { background: #fff; border: 1px solid var(--line); border-left: 5px solid #1d6fb8; border-radius: 1rem; padding: 1rem 1.3rem; margin: 1rem 0 1.5rem; box-shadow: 0 1px 2px rgb(20 24 31 / .05); }
.tarjeta-prospecto h2 { margin: 0 0 .6rem; font-size: 1.15rem; }
.datos-prospecto { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .6rem 1.4rem; margin: 0; }
.datos-prospecto dt { font-size: .8rem; font-weight: 400; color: var(--ink-soft); }
.datos-prospecto dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
a.chip { display: block; color: var(--ink); text-decoration: none; }
a.chip:hover { filter: brightness(.97); text-decoration: underline; }
.chip-prospecto { background: #e6f2fb; border-color: #b6d6ee; border-left: 4px solid #1d6fb8; }

/* Extras del cotizador: tarjetas agrupadas por tipo de cobro */
.extras { margin-top: 1.2rem; }
.extras-cab h3 { margin: 0 0 .2rem; font-size: 1.2rem; }
.extras-grupo { margin: 1.1rem 0 .5rem; font-size: .95rem; font-weight: 700; color: var(--ink-soft); letter-spacing: 0; }
.extras-rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); gap: .75rem; }
.extra-card {
  display: grid; gap: .35rem; align-content: start; padding: .8rem .9rem; background: #fff; border: 1px solid var(--line); border-radius: 1rem;
  box-shadow: 0 1px 2px rgb(20 24 31 / .05);
  transition-property: border-color, background-color, box-shadow; transition-duration: 150ms; transition-timing-function: ease-out;
}
.extra-card:hover { border-color: #cccccc; }
.extra-card:has(.extra-check:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.extra-card:has(.extra-check:focus-visible) { box-shadow: 0 0 0 .15rem #fff, 0 0 0 .3rem var(--accent); }
.formulario .extra-elegir { display: grid; grid-template-columns: auto 1fr; gap: .15rem .65rem; align-items: start; margin: 0; font-weight: 400; cursor: pointer; min-height: 2.75rem; }
.formulario .extra-elegir input { width: 1.25rem; height: 1.25rem; min-height: 0; margin: .2rem 0 0; accent-color: var(--accent); grid-row: 1 / span 2; }
.extra-nombre { font-weight: 700; line-height: 1.25; }
.extra-precio { grid-column: 2; color: var(--accent-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.extra-precio small { font-weight: 400; color: var(--ink-soft); font-size: .8rem; }
.extra-pista { margin: 0; padding-left: 1.9rem; color: var(--ink-soft); font-size: .82rem; font-variant-numeric: tabular-nums; }
.extra-controles { display: none; flex-wrap: wrap; gap: .5rem .9rem; align-items: end; padding: .6rem 0 0 1.9rem; border-top: 1px dashed #c4c4c4; margin-top: .3rem; }
.extra-card:has(.extra-check:checked) .extra-controles { display: flex; }
.formulario .extra-cantidad { display: grid; gap: .2rem; margin: 0; font-size: .82rem; font-weight: 600; }
.formulario .extra-cantidad input { width: 5.5rem; min-height: 2.5rem; padding: .3rem .6rem; }
.formulario .extra-cortesia { display: flex; align-items: center; gap: .45rem; margin: 0; font-size: .88rem; font-weight: 500; min-height: 2.5rem; }
.formulario .extra-cortesia input { width: 1.1rem; height: 1.1rem; min-height: 0; margin: 0; accent-color: var(--accent); }

/* Menú lateral plegable: se reduce a una barra de iconos con una curva suave. El estado vive en html.menu-colapsado. */
:root { --curva-menu: cubic-bezier(.22, .8, .24, 1); --tiempo-menu: 340ms; }
.panel-app { transition: grid-template-columns var(--tiempo-menu) var(--curva-menu); }
html.menu-colapsado .panel-app { grid-template-columns: 4.6rem minmax(0, 1fr); }
.panel-nav { display: block; overflow: hidden; }
.panel-cab { display: flex; justify-content: flex-end; padding-bottom: .35rem; }
.panel-toggle {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: .8rem; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); cursor: pointer;
  transition-property: background-color, color, border-color, transform; transition-duration: 150ms; transition-timing-function: ease-out;
}
.panel-toggle:hover { background: var(--accent-soft); color: var(--accent-ink); border-color: #c4c4c4; }
.panel-toggle:active { transform: scale(.94); }
.panel-toggle svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--tiempo-menu) var(--curva-menu); }
html.menu-colapsado .panel-toggle svg { transform: rotate(180deg); }
html.menu-colapsado .panel-cab { justify-content: center; }
.panel-envoltura { display: grid; grid-template-rows: 1fr; }
.panel-links { display: grid; gap: .1rem; min-height: 0; overflow: hidden; }
.panel-nav a span {
  display: inline-block; max-width: 15rem; white-space: normal; line-height: 1.2; overflow: hidden; opacity: 1;
  transition: max-width var(--tiempo-menu) var(--curva-menu), opacity 200ms ease-out .05s;
}
html.menu-colapsado .panel-nav a span { max-width: 0; opacity: 0; white-space: nowrap; transition-delay: 0s; }
html.menu-colapsado .panel-nav a { justify-content: center; gap: 0; padding-inline: .5rem; }
.panel-nav a { transition-property: background-color, color, gap, padding; transition-duration: 150ms, 150ms, var(--tiempo-menu), var(--tiempo-menu); transition-timing-function: ease-out, ease-out, var(--curva-menu), var(--curva-menu); }
.panel-nav h2 { max-height: 3rem; overflow: hidden; white-space: nowrap; opacity: 1; transition: opacity 200ms ease-out, max-height var(--tiempo-menu) var(--curva-menu), margin var(--tiempo-menu) var(--curva-menu); }
html.menu-colapsado .panel-nav h2 { max-height: 0; opacity: 0; margin-block: 0; }
html.menu-colapsado .panel-nav { padding-inline: .55rem; }
.panel-nav { transition: padding var(--tiempo-menu) var(--curva-menu); }

@media (max-width: 991px) {
  html.menu-colapsado .panel-app, .panel-app { grid-template-columns: 1fr; }
  .panel-nav { display: block; position: static; }
  .panel-cab { justify-content: flex-start; }
  .panel-links { display: flex; flex-wrap: wrap; gap: .3rem; }
  .panel-links h2 { width: 100%; }
  /* En pantallas angostas "ocultar" pliega la lista hacia arriba. */
  .panel-envoltura { transition: grid-template-rows var(--tiempo-menu) var(--curva-menu); }
  html.menu-colapsado .panel-envoltura { grid-template-rows: 0fr; }
  html.menu-colapsado .panel-toggle svg { transform: rotate(-90deg); }
  .panel-toggle svg { transform: rotate(90deg); }
  html.menu-colapsado .panel-nav a span { max-width: 15rem; opacity: 1; }
  html.menu-colapsado .panel-nav a { justify-content: flex-start; gap: .65rem; padding-inline: .75rem; }
  html.menu-colapsado .panel-nav h2 { max-height: 3rem; opacity: 1; margin-block: .5rem 0; }
}

/* Usuarios y Mi cuenta */
.restablecer summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 2.4rem; padding: .25rem .85rem; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent-ink); font-weight: 600; font-size: .85rem; list-style: none; background: #fff; }
.restablecer summary::-webkit-details-marker { display: none; }
.restablecer summary:hover { background: var(--accent-soft); }
.restablecer[open] summary { background: var(--accent-soft); }
.restablecer-form { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .4rem; }
.restablecer-form input { min-height: 2.4rem; padding: .3rem .7rem; border: 1px solid #cccccc; border-radius: .65rem; width: 12rem; font: inherit; }
.sugerencia { background: var(--panel-bg); border: 1px solid var(--line); border-radius: .4rem; padding: .1rem .45rem; font-size: .95rem; user-select: all; }
.cuenta-datos { margin: 1rem 0 1.5rem; }
.cuenta-datos > div { background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: .7rem 1rem; }

.tabla-scroll + h2, .tabla-scroll + h3 { margin-top: 2rem; }
.acciones-fila { min-width: 0; max-width: 26rem; }

.resumen small { display: block; color: var(--ink-soft); font-size: .8rem; text-transform: capitalize; }

/* Menú lateral ajustado a la pantalla: nunca más alto que la ventana; se compacta según el alto y, si no cabe, hace scroll interno. */
@media (min-width: 992px) {
  .panel-nav {
    top: 5rem;
    max-height: calc(100vh - 6.25rem);
    max-height: calc(100dvh - 6.25rem);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #cccccc transparent;
  }
  .panel-nav::-webkit-scrollbar { width: 6px; }
  .panel-nav::-webkit-scrollbar-thumb { background: #cccccc; border-radius: 3px; }
  .panel-cab { position: sticky; top: 0; background: #fff; z-index: 1; padding-bottom: .25rem; }
}
@media (min-width: 992px) and (max-height: 860px) {
  .panel-nav { padding-block: .6rem; }
  .panel-nav a { min-height: 2.45rem; padding-block: .3rem; font-size: .95rem; }
  .panel-toggle { width: 2.45rem; height: 2.45rem; }
  .panel-nav h2 { margin-top: .55rem; margin-bottom: .15rem; font-size: .75rem; }
}
@media (min-width: 992px) and (max-height: 700px) {
  .panel-nav a { min-height: 2.2rem; padding-block: .2rem; font-size: .9rem; gap: .5rem; }
  .panel-nav svg { width: 1.05rem; height: 1.05rem; }
  .panel-nav h2 { margin-top: .4rem; }
  .panel-toggle { width: 2.2rem; height: 2.2rem; }
}

/* Pantallas muy bajas: los títulos de grupo se vuelven divisores (siguen leyéndose con lector de pantalla) y los enlaces se afinan para que todo quepa sin scroll. */
@media (min-width: 992px) and (max-height: 700px) {
  .panel-nav { padding-block: .45rem; }
  .panel-nav a { min-height: 2.05rem; padding-block: .15rem; font-size: .88rem; }
  .panel-nav h2 { font-size: 0; line-height: 0; height: 1px; margin: .3rem .5rem; padding: 0; background: var(--line); }
  .panel-cab { padding-bottom: .1rem; }
  .panel-toggle { width: 2.05rem; height: 2.05rem; border-radius: .6rem; }
}

/* Portátiles con ventana muy baja (alrededor de 640 px o menos): todo el menú cabe sin scroll. */
@media (min-width: 992px) and (max-height: 640px) {
  .panel-nav { padding-block: .3rem; }
  .panel-nav a { min-height: 1.75rem; padding-block: .1rem; font-size: .85rem; }
  .panel-nav a span { line-height: 1.1; }
  .panel-nav svg { width: 1rem; height: 1rem; }
  .panel-nav h2 { margin: .2rem .5rem; }
  .panel-toggle { width: 1.8rem; height: 1.8rem; border-radius: .5rem; }
  .panel-toggle svg { width: 1rem; height: 1rem; }
  .panel-cab { padding-bottom: 0; }
}
@media (min-width: 992px) and (max-height: 640px) {
  .panel-nav { padding-block: .15rem; }
  .panel-nav h2 { margin: .15rem .5rem; }
}

/* Fotos de salones: tarjetas públicas y carga desde el panel */
.salon-card { overflow: hidden; border-radius: 1rem; box-shadow: 0 1px 2px rgb(20 24 31 / .05), 0 6px 20px rgb(20 24 31 / .06); transition: transform 150ms ease-out, border-color 150ms ease-out; }
.salon-card:hover { transform: translateY(-2px); }
.salon-portada { display: block; width: calc(100% + 2.4rem); height: auto; max-width: none; margin: -1rem -1.2rem .8rem; aspect-ratio: 3 / 2; object-fit: cover; outline: 1px solid rgb(0 0 0 / .06); outline-offset: -1px; }
.galeria img { border-radius: .8rem; aspect-ratio: 3 / 2; outline: 1px solid rgb(0 0 0 / .06); outline-offset: -1px; }

.fotos-salon { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.zona-fotos {
  position: relative; display: grid; place-items: center; gap: .2rem; text-align: center; padding: 2rem 1rem; margin-top: .4rem;
  border: 2px dashed #c4c4c4; border-radius: 1rem; background: #fafafa; color: var(--ink); cursor: pointer; font-weight: 400;
  transition-property: background-color, border-color; transition-duration: 150ms; transition-timing-function: ease-out;
}
.zona-fotos:hover, .zona-fotos.arrastrando { background: var(--accent-soft); border-color: var(--accent); }
.zona-fotos.con-archivos { border-style: solid; }
.formulario .zona-fotos input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; opacity: 0; cursor: pointer; padding: 0; border: 0; }
.zona-fotos:focus-within { box-shadow: 0 0 0 .15rem #fff, 0 0 0 .3rem var(--accent); }
.zona-titulo { font-weight: 700; color: var(--accent-ink); }
.zona-sub { font-size: .85rem; color: var(--ink-soft); }
.vista-previa { display: flex; flex-wrap: wrap; gap: .6rem; }
.vista-previa figure { margin: 0; width: 10rem; }
.vista-previa img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: .6rem; background: var(--panel-bg); }
.vista-previa figcaption { font-size: .75rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.fotos-rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.foto-item { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; box-shadow: 0 1px 2px rgb(20 24 31 / .05); }
.foto-item img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.foto-item figcaption { display: grid; gap: .4rem; padding: .6rem .8rem .8rem; }
.foto-titulo { font-size: .85rem; color: var(--ink-soft); }
.foto-acciones { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.boton-peligro { border-color: #c0262d; color: #8f1d22; }
.boton-peligro:hover { background: #fdecec; color: #8f1d22; }

/* Galería de un salón y visor de fotos en grande */
.galeria-item { display: block; overflow: hidden; border-radius: .8rem; cursor: zoom-in; position: relative; line-height: 0; box-shadow: 0 1px 2px rgb(20 24 31 / .06); }
.galeria-item img { transition: transform 420ms cubic-bezier(.22, .8, .24, 1), filter 200ms ease-out; }
.galeria-item:hover img, .galeria-item:focus-visible img { transform: scale(1.045); filter: brightness(.94); }
.galeria-item::after {
  content: ""; position: absolute; right: .6rem; bottom: .6rem; width: 2rem; height: 2rem; border-radius: 50%;
  background: rgb(20 24 31 / .62) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 1.1rem no-repeat;
  opacity: 0; transform: scale(.85); transition: opacity 200ms ease-out, transform 200ms ease-out;
}
.galeria-item:hover::after, .galeria-item:focus-visible::after { opacity: 1; transform: scale(1); }
@media (hover: none) { .galeria-item::after { opacity: .9; transform: none; } }

html.visor-abierto { overflow: hidden; }
.visor { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; overflow: hidden; }
.visor::backdrop { background: rgb(9 13 17 / .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.visor[open], .visor[open]::backdrop { animation: visor-fondo 280ms ease-out; }
.visor.saliendo, .visor.saliendo::backdrop { animation: visor-sale 220ms ease-in forwards; }
@keyframes visor-fondo { from { opacity: 0; } }
@keyframes visor-sale { to { opacity: 0; } }
.visor-escena { position: absolute; inset: 4rem 5rem 4.2rem; margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto auto; gap: .6rem; }
.visor-lienzo { position: relative; min-height: 0; }
.visor-foto { position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: .7rem; box-shadow: 0 20px 60px rgb(0 0 0 / .45); user-select: none; -webkit-user-drag: none; will-change: transform, opacity; }
.visor-pie { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: .95rem; color: rgb(255 255 255 / .85); min-height: 1.4rem; }
.visor-cuenta { font-variant-numeric: tabular-nums; white-space: nowrap; color: #fff; font-weight: 600; }
.visor-boton {
  position: absolute; display: grid; place-items: center; width: 3rem; height: 3rem; padding: 0; border: 1px solid rgb(255 255 255 / .22); border-radius: 50%;
  background: rgb(255 255 255 / .12); color: #fff; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition-property: background-color, transform, border-color; transition-duration: 160ms; transition-timing-function: ease-out;
}
.visor-boton:hover { background: rgb(255 255 255 / .24); }
.visor-boton:active { transform: scale(.92); }
.visor-boton:focus-visible { outline: 2px solid #fff; outline-offset: 3px; box-shadow: none; }
.visor-boton svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.visor-cerrar { top: 1rem; right: 1rem; }
.visor-nav { top: 50%; margin-top: -1.5rem; }
.visor-nav:active { transform: scale(.92); }
.visor-ant { left: 1rem; }
.visor-sig { right: 1rem; }
@media (max-width: 640px) {
  .visor-escena { inset: 3.6rem .6rem 3.4rem; }
  .visor-nav { top: auto; bottom: .7rem; margin-top: 0; }
  .visor-ant { left: calc(50% - 3.6rem); }
  .visor-sig { right: calc(50% - 3.6rem); }
  .visor-pie { padding-inline: .2rem; }
}
.visor-aviso { margin: 0; justify-self: center; max-width: 100%; padding: .4rem 1rem; border-radius: 999px; background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .2); font-size: .9rem; text-align: center; }
.visor-foto.rota { visibility: hidden; }

/* =====================================================================
   Menú lateral pegado al borde izquierdo (abierto y plegado) y de mayor tamaño.
   El contenido lleva su propio margen; el menú ya no lo hereda del contenedor.
   ===================================================================== */
@media (min-width: 992px) {
  .panel-app { grid-template-columns: 18.5rem minmax(0, 1fr); gap: 0; padding-top: 1rem; }
  html.menu-colapsado .panel-app { grid-template-columns: 5.4rem minmax(0, 1fr); }
  .panel-nav { border-left: 0; border-radius: 0 1.2rem 1.2rem 0; padding-inline: .85rem 1rem; }
  html.menu-colapsado .panel-nav { padding-inline: .6rem .8rem; }
  .panel-main { padding: .5rem 2.25rem 2.5rem 2.25rem; }
  .panel-nav a { font-size: 1.08rem; min-height: 3rem; padding-inline: .9rem; gap: .8rem; border-radius: .85rem; }
  .panel-nav svg { width: 1.4rem; height: 1.4rem; }
  .panel-nav h2 { font-size: .86rem; margin: 1.1rem .9rem .35rem; }
  .panel-toggle { width: 3rem; height: 3rem; }
  .panel-toggle svg { width: 1.4rem; height: 1.4rem; }
  html.menu-colapsado .panel-nav a { padding-inline: .5rem; }
}
/* Alturas medianas: un poco más grande que antes, sin perder el ajuste a la pantalla. */
@media (min-width: 992px) and (max-height: 860px) {
  .panel-nav a { font-size: 1rem; min-height: 2.6rem; padding-block: .3rem; }
  .panel-nav svg { width: 1.25rem; height: 1.25rem; }
  .panel-nav h2 { font-size: .78rem; margin: .6rem .9rem .2rem; }
  .panel-toggle { width: 2.6rem; height: 2.6rem; }
}
/* Los tramos de pantalla muy baja (700 y 640 px) conservan sus medidas compactas. */
@media (min-width: 992px) and (max-height: 700px) {
  .panel-nav a { font-size: .9rem; min-height: 2.2rem; padding-block: .2rem; padding-inline: .8rem; gap: .6rem; }
  .panel-nav svg { width: 1.05rem; height: 1.05rem; }
  .panel-nav h2 { font-size: 0; height: 1px; margin: .35rem .8rem; }
  .panel-toggle { width: 2.2rem; height: 2.2rem; }
}
@media (min-width: 992px) and (max-height: 640px) {
  .panel-nav a { font-size: .85rem; min-height: 1.75rem; padding-block: .1rem; }
  .panel-nav svg { width: 1rem; height: 1rem; }
  .panel-nav h2 { margin: .2rem .8rem; }
  .panel-toggle { width: 1.8rem; height: 1.8rem; }
}
@media (max-width: 991px) {
  .panel-main { padding: .75rem 1rem 2rem; }
  .panel-nav { border-radius: 0 0 1rem 1rem; border-left: 0; border-right: 0; }
}

/* Con «Mi cuenta» en la barra superior caben 12 enlaces: se puede usar un tamaño más cómodo en laptops de poca altura. */
@media (min-width: 992px) and (max-height: 860px) {
  .panel-nav a { font-size: 1.02rem; min-height: 2.7rem; }
  .panel-nav svg { width: 1.3rem; height: 1.3rem; }
  .panel-nav h2 { font-size: .8rem; margin: .7rem .9rem .2rem; }
  .panel-toggle { width: 2.7rem; height: 2.7rem; }
}
@media (min-width: 992px) and (max-height: 700px) {
  .panel-nav { padding-block: .4rem; max-height: calc(100vh - 5.8rem); max-height: calc(100dvh - 5.8rem); }
  .panel-nav a { font-size: .98rem; min-height: 2.18rem; padding-block: .1rem; padding-inline: .85rem; gap: .7rem; }
  .panel-nav svg { width: 1.2rem; height: 1.2rem; }
  .panel-nav h2 { font-size: 0; height: 1px; margin: .18rem .85rem; }
  .panel-toggle { width: 2.2rem; height: 2.2rem; }
  .panel-cab { padding-bottom: .1rem; }
}
@media (min-width: 992px) and (max-height: 600px) {
  .panel-nav a { font-size: .9rem; min-height: 1.95rem; }
  .panel-nav svg { width: 1.05rem; height: 1.05rem; }
  .panel-toggle { width: 1.95rem; height: 1.95rem; }
}

/* Botones de una cotización en su secuencia: el paso actual resalta, los hechos se marcan y los que faltan quedan apagados. */
.acciones-cot { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; min-width: 17rem; }
.acciones-cot form { margin: 0; }
.acciones-cot .btn { min-height: 2.4rem; padding: .25rem .9rem; font-size: .85rem; }
.acciones-cot .btn-primario { box-shadow: 0 2px 8px rgb(0 0 0 / .25); }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
.btn:disabled:hover { background: #fff; color: var(--accent-ink); }
.paso-hecho:disabled { opacity: 1; background: var(--accent-soft); border-color: #c4c4c4; color: var(--accent-ink); font-weight: 700; cursor: default; }

/* Logo del negocio */
.site-header .navbar { padding: .35rem 0; }
.navbar-brand { padding: 0; margin-right: 1.5rem; }
.brand-logo { height: 4rem; width: auto; max-width: 62vw; object-fit: contain; display: block; mix-blend-mode: multiply; }
@media (max-width: 575.98px) { .brand-logo { height: 3.1rem; } }
.footer-logo { height: 2.4rem; width: auto; display: block; margin-bottom: .5rem; mix-blend-mode: multiply; }

/* =====================================================================
   Ajuste de botones y campos al diseño blanco y negro.
   ===================================================================== */

/* Botones dentro de .formulario (rejilla): ya no se estiran a todo el ancho; los del acceso sí. */
.formulario > .btn, .formulario > button { justify-self: start; margin-top: .6rem; }
.formulario > .login-boton { justify-self: stretch; }
.hero-copy .btn { margin: .25rem .6rem .25rem 0; }
.btn-primario, .btn-secundario { line-height: 1.2; font-size: 1rem; }
.btn-secundario:disabled:hover, .btn-primario:disabled:hover { background: #fff; color: var(--accent-ink); }
.btn-primario:disabled:hover { background: var(--accent); color: #fff; }

/* "Salir" en la barra superior: texto como los demás enlaces, sin el azul ni el relleno de Bootstrap. */
.navbar .btn-salir { display: block; padding: var(--bs-nav-link-padding-y, .5rem) var(--bs-nav-link-padding-x, .5rem); border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; }
.navbar .btn-salir:hover, .navbar .btn-salir:focus-visible { color: var(--accent); text-decoration: underline; }
.navbar-toggler { border-color: var(--line); }
.navbar-toggler:focus { box-shadow: 0 0 0 .15rem #fff, 0 0 0 .3rem var(--accent); }

/* Campos fuera de .formulario (pago rápido, filtros, ajustes del paquete): mismo aspecto que el resto. */
.pago-rapido input, .pago-rapido select,
.filtros input:not([type=checkbox]), .filtros select,
.extra-fila input[type=number], .extra-fila input[type=text], .extra-fila select {
  min-height: 2.5rem; padding: .35rem .7rem; border: 1px solid #cccccc; border-radius: .65rem; background-color: #fff; color: var(--ink); font: inherit; font-size: .95rem;
  transition-property: border-color, box-shadow; transition-duration: 150ms; transition-timing-function: ease-out;
}
.pago-rapido input:focus, .pago-rapido select:focus, .filtros input:focus, .filtros select:focus, .extra-fila input:focus, .extra-fila select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none;
}
.extra-fila input[type=text] { max-width: 14rem; }
.extra-fila input[type=number] { max-width: 8rem; }

/* Listas desplegables con flecha propia (en negro) para que se vean iguales en todos los navegadores. */
.formulario select, .filtros select, .pago-rapido select, .extra-fila select, .restablecer-form select {
  appearance: none; -webkit-appearance: none; padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; background-size: 1rem;
}
.formulario textarea { resize: vertical; line-height: 1.5; }
.formulario input::placeholder, .formulario textarea::placeholder, .pago-rapido input::placeholder { color: #8a8a8a; }
.formulario input[type=file] { padding: .5rem; }
.formulario input:disabled, .formulario select:disabled, .formulario textarea:disabled { background: var(--panel-bg); color: var(--ink-soft); }
.formulario input[aria-invalid=true], .formulario input.input-validation-error, .formulario select.input-validation-error, .formulario textarea.input-validation-error { border-color: #c0262d; }

/* Casillas y radios en negro */
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }

/* Pie de página: en el flujo normal (antes iba pegado abajo con altura fija y el logo se salía). */
body { margin-bottom: 0; }
.footer { position: static; width: auto; white-space: normal; line-height: 1.5; padding: 1.5rem 0; margin-top: 2.5rem; }
.footer a { color: var(--ink-soft); }
.footer a:hover { color: var(--ink); }
body:has(.panel-app) .footer { margin-top: 1rem; }
html { min-height: 0; }
body { min-height: 100vh; display: flex; flex-direction: column; }
body > .container, body > .container-fluid { flex: 1 0 auto; }

/* Casilla con enlace dentro del texto: en bloque para que no se separe el enlace del texto. */
.formulario .check { display: block; }
.formulario .check input { display: inline-block; width: 1.1rem; height: 1.1rem; margin: 0 .5rem 0 0; vertical-align: -.2rem; }

/* Acceso: las dos tarjetas con el mismo borde (la de equipo resaltada en negro) para que alineen. */
.login-tarjeta { border-width: 2px; }
.login-equipo, .login-equipo { border-top-width: 2px; border-color: var(--accent); }

/* Prospectos: botones de acción del mismo tamaño, en columna, sin estirarse de más. */
.tabla-prospectos td.pago-rapido { display: grid; gap: .4rem; min-width: 11rem; max-width: 13rem; align-content: start; }
.tabla-prospectos .pago-rapido form { display: grid; }
.tabla-prospectos .pago-rapido .btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 2.4rem; padding: .25rem .85rem; font-size: .85rem; text-align: center; text-decoration: none; white-space: nowrap; box-shadow: none; }
