/* Componentes de la marca Mesas Listas (CAMBIOS-RONDA-2, 3.4). Se apoyan en las variables --rc-* de
   css/base.css y se ven todos, en todos sus estados, en /estilos.html.
   Los usan la página de venta, el registro, el login, el alta, el panel y el admin, con
   <body class="rc">. Las cartas de los restaurantes no cargan este archivo: tienen su plantilla.

   Índice: 1. Base de página · 2. Tipografía · 3. Botones · 4. Campos · 5. Casillas, opciones e
   interruptor · 6. Tarjetas · 7. Avisos · 8. Toasts · 9. Insignias · 10. Tablas · 11. Pestañas ·
   12. Stepper · 13. Modal · 14. Estado vacío · 15. Íconos */

/* ---------- 1. Base de página ---------- */
body.rc {
  font-family: var(--rc-fuente);
  font-size: var(--rc-t-16);
  line-height: 1.55;
  color: var(--rc-tinta);
  background: var(--rc-fondo);
  -webkit-font-smoothing: antialiased;
}
.rc a { color: var(--rc-verde); text-underline-offset: 3px; }
.rc a:hover { color: var(--rc-verde-hover); }
.rc :focus-visible { outline: 3px solid var(--rc-verde); outline-offset: 2px; }
.rc ::selection { background: #cfe5dc; }

/* ---------- 2. Tipografía (escala 14 / 16 / 18 / 22 / 28 / 40 / 56) ---------- */
.rc h1, .rc h2, .rc h3, .rc h4 { font-family: var(--rc-fuente); font-weight: 700; color: var(--rc-tinta); letter-spacing: -.01em; line-height: 1.2; margin: 0 0 var(--rc-e-12); }
.rc h1 { font-size: var(--rc-t-28); }
.rc h2 { font-size: var(--rc-t-22); }
.rc h3 { font-size: var(--rc-t-18); }
.rc h4 { font-size: var(--rc-t-16); }
.rc p { margin: 0 0 var(--rc-e-12); }
.rc .titular {   /* solo titulares grandes de la página de venta */
  font-family: var(--rc-fuente-titulo); font-weight: 700; letter-spacing: -.025em; line-height: 1.05;
  font-size: clamp(var(--rc-t-40), 6vw, var(--rc-t-56));
}
.rc .titular-medio { font-family: var(--rc-fuente-titulo); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-size: clamp(var(--rc-t-28), 4vw, var(--rc-t-40)); }
.texto-grande { font-size: var(--rc-t-18); }
.texto-chico { font-size: var(--rc-t-14); }
.texto-suave { color: var(--rc-tinta-suave); }
.lectura { max-width: var(--rc-lectura); }
.cifra { font-variant-numeric: tabular-nums; }

/* ---------- 3. Botones: principal, secundario, de texto y peligro (alto mínimo 44 px) ---------- */
.rc .boton {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--rc-e-8);
  min-height: var(--rc-toque); padding: 0 var(--rc-e-16); border: 1px solid transparent; border-radius: var(--rc-radio);
  font: 600 var(--rc-t-16)/1.2 var(--rc-fuente); text-decoration: none; white-space: nowrap; cursor: pointer;
  background: var(--rc-verde); color: #fff;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.rc .boton:hover, .rc .boton[data-estado="hover"] { background: var(--rc-verde-hover); color: #fff; }
.rc .boton:focus-visible, .rc .boton[data-estado="foco"] { outline: 3px solid var(--rc-verde); outline-offset: 2px; }
.rc .boton:disabled, .rc .boton[aria-disabled="true"] { background: #d9dcd6; border-color: #d9dcd6; color: #5b6560; cursor: not-allowed; }

.rc .boton-secundario { background: var(--rc-superficie); color: var(--rc-tinta); border-color: var(--rc-borde-campo); }
.rc .boton-secundario:hover, .rc .boton-secundario[data-estado="hover"] { background: var(--rc-verde-suave); color: var(--rc-tinta); border-color: var(--rc-verde); }
.rc .boton-secundario:disabled, .rc .boton-secundario[aria-disabled="true"] { background: var(--rc-superficie); border-color: #d9dcd6; color: #75736c; }

.rc .boton-texto { background: transparent; color: var(--rc-verde); padding: 0 var(--rc-e-8); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.rc .boton-texto:hover, .rc .boton-texto[data-estado="hover"] { background: var(--rc-verde-suave); color: var(--rc-verde-hover); text-decoration-color: currentColor; }
.rc .boton-texto:disabled, .rc .boton-texto[aria-disabled="true"] { background: transparent; border-color: transparent; color: #75736c; }

.rc .boton-peligro { background: var(--rc-error); color: #fff; }
.rc .boton-peligro:hover, .rc .boton-peligro[data-estado="hover"] { background: #912018; color: #fff; }
.rc .boton-peligro:focus-visible, .rc .boton-peligro[data-estado="foco"] { outline-color: var(--rc-error); }
.rc .boton-peligro:disabled, .rc .boton-peligro[aria-disabled="true"] { background: #d9dcd6; border-color: #d9dcd6; color: #5b6560; }

/* Cargando: spinner en el mismo botón (el texto cambia, por ej. "Guardando…") */
.rc .boton.cargando, .rc .boton[aria-busy="true"] { cursor: progress; pointer-events: none; }
.rc .boton.cargando::before, .rc .boton[aria-busy="true"]::before {
  content: ""; width: 16px; height: 16px; flex: none; border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: rc-girar .7s linear infinite;
}
@keyframes rc-girar { to { transform: rotate(360deg); } }

/* Tamaños (todos con 44 px de alto como mínimo) */
.rc .boton-chico { padding: 0 var(--rc-e-12); font-size: var(--rc-t-14); }
.rc .boton-grande { min-height: 52px; padding: 0 var(--rc-e-24); font-size: var(--rc-t-18); }
.rc .boton-ancho { display: flex; width: 100%; }
.rc .boton-icono { width: var(--rc-toque); padding: 0; }
.fila-botones { display: flex; flex-wrap: wrap; align-items: center; gap: var(--rc-e-8); }

/* ---------- 4. Campos: label arriba, ayuda abajo, error con borde, ícono y mensaje ---------- */
.formulario { max-width: 420px; }   /* los formularios no se estiran a todo el ancho */
.rc .campo { display: grid; gap: var(--rc-e-4); margin: 0 0 var(--rc-e-16); }
.rc .campo > label, .rc .etiqueta { font-weight: 600; font-size: var(--rc-t-14); color: var(--rc-tinta); }
.rc .campo .opcional { font-weight: 400; color: var(--rc-tinta-suave); }
/* :where() deja la base en especificidad baja, así los estados (hover, foco, deshabilitado) siempre le ganan */
.rc .campo :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  width: 100%; min-height: var(--rc-toque); padding: 10px var(--rc-e-12); border: 1px solid var(--rc-borde-campo); border-radius: var(--rc-radio);
  background: var(--rc-superficie); color: var(--rc-tinta); font: 400 var(--rc-t-16)/1.4 var(--rc-fuente);
  transition: border-color .15s, box-shadow .15s;
}
.rc .campo :where(input, textarea)::placeholder { color: #7d7a73; }
.rc .campo :where(input, select, textarea):hover:not(:disabled) { border-color: var(--rc-tinta-suave); }
.rc .campo :where(input, select, textarea):focus-visible:not(:disabled),
.rc .campo [data-estado="foco"]:not(:disabled) { outline: none; border-color: var(--rc-verde); box-shadow: 0 0 0 3px rgba(31, 107, 82, .25); }
.rc .campo :where(input, select, textarea):disabled { background-color: #f1efea; border-color: #c9c5bd; color: #6b6a64; cursor: not-allowed; }
.rc .campo textarea { min-height: 96px; resize: vertical; }
.rc .campo select {
  appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235b6560' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.rc .ayuda { margin: 0; font-size: var(--rc-t-14); color: var(--rc-tinta-suave); }
.rc .campo [aria-invalid="true"] { border-color: var(--rc-error) !important; }
.rc .campo [aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 3px rgba(180, 35, 24, .2); }
.rc .mensaje-error, .rc .error-campo {
  display: flex; align-items: flex-start; gap: 6px; margin: 2px 0 0; font-size: var(--rc-t-14); font-weight: 600; color: var(--rc-error);
}
.rc .mensaje-error svg, .rc .error-campo svg { flex: none; margin-top: 1px; }
.rc .error-campo:empty, .rc .mensaje-error:empty { display: none; }

/* Contraseña con ojo (js/clave.js) y requisitos en vivo */
.rc .campo-clave { position: relative; }
.rc .campo-clave input { padding-right: 52px !important; }
.rc .ojo-clave {
  position: absolute; top: 0; right: 0; display: grid; place-items: center; width: var(--rc-toque); height: 100%; min-height: var(--rc-toque);
  border: 0; border-radius: 0 var(--rc-radio) var(--rc-radio) 0; background: transparent; color: var(--rc-tinta-suave); cursor: pointer;
}
.rc .ojo-clave:hover { color: var(--rc-tinta); }
.rc .ojo-clave:focus-visible { outline: 3px solid var(--rc-verde); outline-offset: -3px; }
.rc .requisitos { list-style: none; margin: var(--rc-e-4) 0 0; padding: 0; display: grid; gap: 2px; font-size: var(--rc-t-14); color: var(--rc-tinta-suave); }
.rc .requisitos li { display: flex; align-items: center; gap: var(--rc-e-8); }
.rc .requisitos li.cumplido { color: var(--rc-exito); font-weight: 600; }

/* ---------- 5. Casillas, opciones (radio) e interruptor ---------- */
.rc .opcion { display: flex; align-items: flex-start; gap: var(--rc-e-12); min-height: var(--rc-toque); padding: 10px 0; cursor: pointer; line-height: 1.4; }
.rc .opcion input[type="checkbox"], .rc .opcion input[type="radio"] {
  appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border: 1px solid var(--rc-borde-campo); background: var(--rc-superficie);
  display: grid; place-items: center; cursor: pointer; transition: background-color .15s, border-color .15s;
}
.rc .opcion input[type="checkbox"] { border-radius: 6px; }
.rc .opcion input[type="radio"] { border-radius: 50%; }
.rc .opcion input:checked { background-color: var(--rc-verde); border-color: var(--rc-verde); }
.rc .opcion input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.rc .opcion input[type="radio"]:checked { box-shadow: inset 0 0 0 4px var(--rc-superficie); }
.rc .opcion input:focus-visible { outline: 3px solid var(--rc-verde); outline-offset: 2px; }
.rc .opcion input:disabled { background-color: #f1efea; border-color: #c9c5bd; cursor: not-allowed; }
.rc .opcion input:disabled + span { color: #75736c; }
.rc .opcion .ayuda { display: block; margin-top: 2px; }
.rc .grupo-opciones { border: 0; margin: 0 0 var(--rc-e-16); padding: 0; }
.rc .grupo-opciones legend { padding: 0; margin-bottom: var(--rc-e-4); font-weight: 600; font-size: var(--rc-t-14); }

.rc .interruptor { display: flex; align-items: center; gap: var(--rc-e-12); min-height: var(--rc-toque); cursor: pointer; }
.rc .interruptor input {
  appearance: none; flex: none; position: relative; width: 44px; height: 26px; margin: 0; border-radius: 999px;
  background: #b9b6ae; cursor: pointer; transition: background-color .15s;
}
.rc .interruptor input::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s;
}
.rc .interruptor input:checked { background: var(--rc-verde); }
.rc .interruptor input:checked::after { transform: translateX(18px); }
.rc .interruptor input:focus-visible { outline: 3px solid var(--rc-verde); outline-offset: 2px; }
.rc .interruptor input:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 6. Tarjetas ---------- */
.rc .tarjeta {
  background: var(--rc-superficie); border: 1px solid var(--rc-borde); border-radius: var(--rc-radio-tarjeta);
  padding: var(--rc-e-24); margin: 0 0 var(--rc-e-16);
}
.rc .tarjeta-flotante { border-color: transparent; box-shadow: var(--rc-sombra); }
.rc .tarjeta-cabeza { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--rc-e-8); margin-bottom: var(--rc-e-16); }
.rc .tarjeta-cabeza h2, .rc .tarjeta-cabeza h3 { margin: 0; }
.rc .tarjeta-pie { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--rc-e-8); margin-top: var(--rc-e-24); padding-top: var(--rc-e-16); border-top: 1px solid var(--rc-borde); }
@media (max-width: 480px) { .rc .tarjeta { padding: var(--rc-e-16); } }

/* ---------- 7. Avisos: info, éxito, aviso y error ---------- */
.rc .alerta {
  display: flex; align-items: flex-start; gap: var(--rc-e-12); padding: var(--rc-e-12) var(--rc-e-16); margin: 0 0 var(--rc-e-16);
  border: 1px solid var(--rc-info-borde); border-radius: var(--rc-radio); background: var(--rc-info-suave); color: var(--rc-tinta);
}
.rc .alerta > svg { flex: none; margin-top: 2px; color: var(--rc-info); }
.rc .alerta-cuerpo { flex: 1; min-width: 0; }
.rc .alerta-cuerpo > :last-child { margin-bottom: 0; }
.rc .alerta-titulo { display: block; font-weight: 700; margin-bottom: 2px; }
.rc .alerta .fila-botones { margin-top: var(--rc-e-8); }
.rc .alerta-exito { background: var(--rc-exito-suave); border-color: var(--rc-exito-borde); }
.rc .alerta-exito > svg { color: var(--rc-exito); }
.rc .alerta-aviso { background: var(--rc-aviso-suave); border-color: var(--rc-aviso-borde); }
.rc .alerta-aviso > svg { color: var(--rc-aviso); }
.rc .alerta-error { background: var(--rc-error-suave); border-color: var(--rc-error-borde); }
.rc .alerta-error > svg { color: var(--rc-error); }

/* ---------- 8. Toasts: confirmación breve de una acción ("Guardado") ---------- */
.rc .toasts { position: fixed; z-index: 100; left: 50%; bottom: var(--rc-e-24); transform: translateX(-50%); display: grid; gap: var(--rc-e-8); width: min(420px, calc(100% - 32px)); }
.rc .toast {
  display: flex; align-items: center; gap: var(--rc-e-12); padding: var(--rc-e-12) var(--rc-e-12) var(--rc-e-12) var(--rc-e-16);
  border-radius: var(--rc-radio); background: var(--rc-tinta); color: #fff; box-shadow: var(--rc-sombra-alta);
  animation: rc-aparecer .2s ease-out;
}
.rc .toast > svg { flex: none; color: #8fd3b2; }
.rc .toast-error > svg { color: #ffb4ab; }
.rc .toast p { flex: 1; margin: 0; font-weight: 500; }
.rc .toast .boton-icono { min-height: 36px; width: 36px; background: transparent; color: #fff; }
.rc .toast .boton-icono:hover { background: rgba(255, 255, 255, .12); }
.rc .toast .boton-icono:focus-visible { outline-color: #fff; }
@keyframes rc-aparecer { from { opacity: 0; transform: translateY(8px); } }

/* ---------- 9. Insignias de estado ---------- */
.rc .insignia {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; border: 1px solid transparent;
  font-size: var(--rc-t-14); font-weight: 600; line-height: 1.5; white-space: nowrap;
  background: #eeece6; color: #3f4743;
}
.rc .insignia::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.rc .insignia-exito { background: var(--rc-exito-suave); color: #17603c; border-color: var(--rc-exito-borde); }
.rc .insignia-aviso { background: var(--rc-aviso-suave); color: #8f3806; border-color: var(--rc-aviso-borde); }
.rc .insignia-error { background: var(--rc-error-suave); color: var(--rc-error); border-color: var(--rc-error-borde); }
.rc .insignia-info { background: var(--rc-info-suave); color: var(--rc-verde); border-color: var(--rc-info-borde); }
.rc .insignia-acento { background: var(--rc-tomate-suave); color: var(--rc-tomate-texto); border-color: #f2c4b8; }
.rc .insignia-acento::before { display: none; }

/* ---------- 10. Tablas ---------- */
.rc .tabla-contenedor { position: relative; width: 100%; overflow-x: auto; border: 1px solid var(--rc-borde); border-radius: var(--rc-radio-tarjeta); background: var(--rc-superficie); }
.rc .tabla { width: 100%; border-collapse: collapse; font-size: var(--rc-t-16); }
.rc .tabla caption { padding: var(--rc-e-16); text-align: left; font-weight: 700; }
.rc .tabla th, .rc .tabla td { padding: var(--rc-e-12) var(--rc-e-16); text-align: left; vertical-align: middle; border-bottom: 1px solid var(--rc-borde); }
.rc .tabla thead th { background: #f6f4ef; font-size: var(--rc-t-14); font-weight: 600; color: var(--rc-tinta-suave); white-space: nowrap; }
.rc .tabla tbody tr:last-child > * { border-bottom: 0; }
.rc .tabla tbody tr:hover { background: #fbfaf7; }
.rc .tabla .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rc .tabla .acciones { text-align: right; white-space: nowrap; }
.rc .tabla .acciones .fila-botones { justify-content: flex-end; flex-wrap: nowrap; }
/* Variante apilada: en el celular cada fila es una tarjeta (la celda th[scope="row"] hace de título y
   cada td muestra su data-etiqueta a la izquierda), así no hay que deslizar la tabla de costado. */
@media (max-width: 600px) {
  .rc .tabla-apilada thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rc .tabla-apilada, .rc .tabla-apilada caption, .rc .tabla-apilada tbody, .rc .tabla-apilada tr { display: block; }
  .rc .tabla-apilada caption { border-bottom: 1px solid var(--rc-borde); }
  .rc .tabla-apilada tbody tr { padding: var(--rc-e-12) var(--rc-e-16); border-bottom: 1px solid var(--rc-borde); }
  .rc .tabla-apilada tbody tr:last-child { border-bottom: 0; }
  .rc .tabla-apilada tbody tr:hover { background: transparent; }
  .rc .tabla-apilada th[scope="row"], .rc .tabla-apilada td {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--rc-e-8) var(--rc-e-12);
    padding: var(--rc-e-4) 0; border: 0; text-align: left;
  }
  .rc .tabla-apilada th[scope="row"] { font-weight: 700; padding-bottom: var(--rc-e-8); }
  .rc .tabla-apilada td[data-etiqueta]::before { content: attr(data-etiqueta); font-size: var(--rc-t-14); font-weight: 600; color: var(--rc-tinta-suave); }
  .rc .tabla-apilada td.acciones { justify-content: flex-start; padding-top: var(--rc-e-8); }
  .rc .tabla-apilada td.acciones .fila-botones { justify-content: flex-start; flex-wrap: wrap; }
}

/* ---------- 11. Pestañas ---------- */
.rc .pestanas-lista { position: relative; display: flex; gap: var(--rc-e-4); margin: 0 0 var(--rc-e-16); padding: 0; border-bottom: 1px solid var(--rc-borde); overflow-x: auto; scrollbar-width: none; }
.rc .pestana {
  min-height: var(--rc-toque); padding: 0 var(--rc-e-16); margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent;
  background: transparent; color: var(--rc-tinta-suave); font: 600 var(--rc-t-16) var(--rc-fuente); white-space: nowrap; cursor: pointer;
}
.rc .pestana:hover { color: var(--rc-tinta); }
.rc .pestana[aria-selected="true"] { color: var(--rc-verde); border-bottom-color: var(--rc-verde); }
.rc .pestana:focus-visible { outline-offset: -3px; }

/* ---------- 12. Stepper de pasos (compacto; los anteriores se pueden tocar para volver) ---------- */
.rc .stepper { position: relative; list-style: none; display: flex; gap: var(--rc-e-8); margin: 0 0 var(--rc-e-24); padding: 0; counter-reset: paso; overflow-x: auto; }
.rc .stepper li { counter-increment: paso; flex: 1 1 0; min-width: 0; }
.rc .stepper li > a, .rc .stepper li > span {
  display: flex; flex-direction: column; gap: var(--rc-e-8); min-height: var(--rc-toque); padding-top: var(--rc-e-8);
  border-top: 3px solid var(--rc-borde); color: var(--rc-tinta-suave); font-size: var(--rc-t-14); font-weight: 600; text-decoration: none;
}
.rc .stepper .paso-num { display: inline-flex; align-items: center; gap: 6px; font-size: var(--rc-t-14); }
.rc .stepper .paso-num::before {
  content: counter(paso); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--rc-borde-campo); font-size: 12px; font-weight: 700; background: var(--rc-superficie);
}
.rc .stepper .hecho > a { border-top-color: var(--rc-verde); color: var(--rc-tinta); }
.rc .stepper .hecho > a:hover { color: var(--rc-verde); }
.rc .stepper .hecho .paso-num::before { content: "✓"; background: var(--rc-verde); border-color: var(--rc-verde); color: #fff; }
.rc .stepper [aria-current="step"] { border-top-color: var(--rc-verde); color: var(--rc-verde); }
.rc .stepper [aria-current="step"] .paso-num::before { background: var(--rc-verde); border-color: var(--rc-verde); color: #fff; }
@media (max-width: 600px) {
  .rc .stepper li.actual { flex: 3 1 auto; }   /* el paso actual se lee entero; los demás quedan como número */
  .rc .stepper .paso-texto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .rc .stepper [aria-current="step"] .paso-texto { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
}

/* ---------- 13. Modal de confirmación ---------- */
.rc dialog.modal {
  width: min(440px, calc(100% - 32px)); padding: 0; border: 0; border-radius: var(--rc-radio-tarjeta);
  background: var(--rc-superficie); color: var(--rc-tinta); box-shadow: var(--rc-sombra-alta);
}
.rc dialog.modal::backdrop { background: rgba(22, 32, 28, .45); }
.rc .modal-cuerpo { padding: var(--rc-e-24); }
.rc .modal-cuerpo h2 { font-size: var(--rc-t-22); }
.rc .modal-cuerpo p { color: var(--rc-tinta-suave); }
.rc .modal-icono { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--rc-e-16); border-radius: 50%; background: var(--rc-error-suave); color: var(--rc-error); }
.rc .modal-acciones { display: flex; flex-wrap: wrap-reverse; justify-content: flex-end; gap: var(--rc-e-8); padding: var(--rc-e-16) var(--rc-e-24); background: #f6f4ef; border-top: 1px solid var(--rc-borde); }
@media (max-width: 480px) { .rc .modal-acciones .boton { flex: 1 1 100%; } }

/* ---------- 14. Estado vacío: ícono, texto y una acción ---------- */
.rc .vacio { display: grid; justify-items: center; gap: var(--rc-e-8); padding: var(--rc-e-48) var(--rc-e-24); text-align: center; }
.rc .vacio-icono { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: var(--rc-e-8); border-radius: 50%; background: var(--rc-verde-suave); color: var(--rc-verde); }
.rc .vacio h2, .rc .vacio h3 { margin: 0; font-size: var(--rc-t-18); }
.rc .vacio p { max-width: 36ch; margin: 0 0 var(--rc-e-8); color: var(--rc-tinta-suave); }

/* ---------- 15. Íconos (Lucide en línea, js/iconos.js) ---------- */
.rc .icono { flex: none; vertical-align: middle; }
.rc [data-icono] { display: inline-flex; }

/* Botón cargando y deshabilitado a la vez (mientras espera): conserva su color */
.rc .boton.cargando:disabled { background: var(--rc-verde); border-color: transparent; color: #fff; cursor: progress; }
.rc .boton-secundario.cargando:disabled { background: var(--rc-superficie); border-color: var(--rc-borde-campo); color: var(--rc-tinta); }
.rc .boton-texto.cargando:disabled { background: transparent; color: var(--rc-verde); }
.rc .boton-peligro.cargando:disabled { background: var(--rc-error); color: #fff; }

/* Texto que se lee con el lector de pantalla pero no se ve (por ejemplo, "en vez de" antes de un precio tachado). */
.solo-lector {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
