/* Sistema de diseno de PaginaLista (la plataforma, no los sitios de los clientes). */
:root {
  --tinta: #12121a;
  --tinta-2: #3d3f4e;
  --tinta-3: #6f7284;
  --papel: #fbfaf7;
  --papel-2: #f3f1ea;
  --blanco: #ffffff;
  --linea: #e6e3da;
  --violeta: #5b4bff;
  --violeta-2: #4335e0;
  --violeta-suave: #ecebff;
  --coral: #ff6b4a;
  --coral-suave: #ffe9e3;
  --menta: #17b890;
  --menta-suave: #dcf7ee;
  --ambar: #f5a524;
  --ambar-suave: #fff3d6;
  --rojo: #e0453b;
  --rojo-suave: #ffe5e2;
  --radio: 14px;
  --radio-l: 22px;
  --sombra: 0 1px 2px rgba(18, 18, 26, 0.04), 0 12px 32px -18px rgba(18, 18, 26, 0.25);
  --sombra-l: 0 30px 70px -30px rgba(18, 18, 26, 0.35);
  --f-titulos: 'Bricolage Grotesque', 'Inter Tight', system-ui, sans-serif;
  --f-texto: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ancho: 1180px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--f-texto);
  color: var(--tinta);
  background: var(--papel);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
}
img,
svg {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
h4 {
  font-family: var(--f-titulos);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
}
h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
}
h3 {
  font-size: 1.3rem;
}
p {
  margin: 0 0 1em;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
.contenedor {
  width: min(var(--ancho), 100% - 2.5rem);
  margin-inline: auto;
}
.contenedor.angosto {
  max-width: 720px;
}
.contenedor.medio {
  max-width: 920px;
}
.centro {
  text-align: center;
}
.suave {
  color: var(--tinta-3);
}
.chica {
  font-size: 0.9rem;
}
.oculto {
  display: none !important;
}
.etiqueta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violeta);
  margin-bottom: 0.9rem;
}
.intro {
  font-size: 1.18rem;
  color: var(--tinta-2);
  max-width: 62ch;
}
.centro .intro {
  margin-inline: auto;
}

/* Botones */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease,
    color 0.16s ease,
    border-color 0.16s;
}
.boton:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}
.boton.primario {
  background: var(--tinta);
  color: #fff;
}
.boton.primario:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -14px rgba(18, 18, 26, 0.6);
}
.boton.acento {
  background: var(--violeta);
  color: #fff;
}
.boton.acento:hover:not(:disabled) {
  background: var(--violeta-2);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -14px var(--violeta);
}
.boton.secundario {
  background: var(--blanco);
  border-color: var(--linea);
  color: var(--tinta);
}
.boton.secundario:hover:not(:disabled) {
  border-color: var(--tinta);
}
.boton.fantasma {
  background: transparent;
  color: var(--tinta-2);
}
.boton.fantasma:hover {
  background: var(--papel-2);
  color: var(--tinta);
}
.boton.peligro {
  background: var(--rojo-suave);
  color: var(--rojo);
}
.boton.grande {
  padding: 1rem 1.8rem;
  font-size: 1.05rem;
}
.boton.chico {
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem;
}
.boton.bloque {
  width: 100%;
}
.boton .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: girar 0.8s linear infinite;
}
@keyframes girar {
  to {
    transform: rotate(360deg);
  }
}

/* Campos */
.campo {
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--tinta-2);
}
.campo > span small {
  font-weight: 400;
  color: var(--tinta-3);
}
.campo input,
.campo select,
.campo textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--linea);
  border-radius: 12px;
  background: var(--blanco);
  font-weight: 400;
  font-size: 1rem;
  color: var(--tinta);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  outline: none;
  border-color: var(--violeta);
  box-shadow: 0 0 0 4px var(--violeta-suave);
}
.campo textarea {
  resize: vertical;
  min-height: 96px;
}
.campo .ayuda {
  font-weight: 400;
  color: var(--tinta-3);
  font-size: 0.85rem;
}
.campo.error input,
.campo.error textarea {
  border-color: var(--rojo);
}
.campo .error-texto {
  color: var(--rojo);
  font-weight: 500;
  font-size: 0.85rem;
}
.fila {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.casilla {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-weight: 500;
  color: var(--tinta-2);
  cursor: pointer;
  font-size: 0.95rem;
}
.casilla input {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  accent-color: var(--violeta);
  flex-shrink: 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  border: 1.5px solid var(--linea);
  background: var(--blanco);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--tinta-2);
  cursor: pointer;
  transition: all 0.15s;
}
.chip:hover {
  border-color: var(--tinta);
  color: var(--tinta);
}
.chip.activo {
  background: var(--tinta);
  color: #fff;
  border-color: var(--tinta);
}
.chip.violeta.activo {
  background: var(--violeta);
  border-color: var(--violeta);
}

/* Tarjetas y superficies */
.tarjeta {
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: var(--radio-l);
  padding: 1.6rem;
  box-shadow: var(--sombra);
}
.tarjeta.plana {
  box-shadow: none;
}
.tarjeta.oscura {
  background: var(--tinta);
  color: #fff;
  border-color: transparent;
}
.tarjeta.violeta {
  background: linear-gradient(135deg, var(--violeta), #8b7bff);
  color: #fff;
  border-color: transparent;
}
.insignia {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--papel-2);
  color: var(--tinta-2);
}
.insignia.menta {
  background: var(--menta-suave);
  color: #0f7a5e;
}
.insignia.violeta {
  background: var(--violeta-suave);
  color: var(--violeta-2);
}
.insignia.coral {
  background: var(--coral-suave);
  color: #c9421f;
}
.insignia.ambar {
  background: var(--ambar-suave);
  color: #9a5f00;
}
.insignia.rojo {
  background: var(--rojo-suave);
  color: var(--rojo);
}
.aviso {
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  background: var(--papel-2);
  border: 1px solid var(--linea);
}
.aviso.ambar {
  background: var(--ambar-suave);
  border-color: #f2d28b;
}
.aviso.rojo {
  background: var(--rojo-suave);
  border-color: #f2b7b2;
}
.aviso.menta {
  background: var(--menta-suave);
  border-color: #a9e8d4;
}
.aviso.violeta {
  background: var(--violeta-suave);
  border-color: #cfcbff;
}

/* Cabecera y pie de la plataforma */
.cabecera-pl {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--papel) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--linea);
}
.cabecera-pl .contenedor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
}
.marca {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--f-titulos);
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.marca .logo-pl {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--tinta);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1rem;
}
.marca em {
  font-style: normal;
  color: var(--violeta);
}
.nav-pl {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-pl a {
  text-decoration: none;
  color: var(--tinta-2);
}
.nav-pl a:hover {
  color: var(--tinta);
}
.nav-pl .boton {
  padding: 0.6rem 1.1rem;
}
.idioma-pl {
  border: 1px solid var(--linea);
  background: var(--blanco);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
@media (max-width: 720px) {
  .nav-pl a:not(.boton):not(.siempre) {
    display: none;
  }
}
.pie-pl {
  border-top: 1px solid var(--linea);
  padding: 3rem 0 2rem;
  margin-top: 5rem;
  color: var(--tinta-3);
  font-size: 0.9rem;
}
.pie-pl .contenedor {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.pie-pl a {
  color: var(--tinta-2);
  text-decoration: none;
  margin-right: 1.2rem;
}
.pie-pl a:hover {
  text-decoration: underline;
}

/* Pasos (barra de progreso del flujo) */
.pasos-pl {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0 2.5rem;
  flex-wrap: wrap;
}
.pasos-pl span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tinta-3);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--papel-2);
}
.pasos-pl span.activo {
  background: var(--tinta);
  color: #fff;
}
.pasos-pl span.hecho {
  background: var(--menta-suave);
  color: #0f7a5e;
}
.pasos-pl i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 0.7rem;
  background: rgba(0, 0, 0, 0.08);
}
.pasos-pl .activo i {
  background: rgba(255, 255, 255, 0.2);
}

/* Toasts, modales, esqueletos */
.toasts {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: grid;
  gap: 0.5rem;
  width: min(420px, calc(100vw - 2rem));
}
.toast {
  background: var(--tinta);
  color: #fff;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  box-shadow: var(--sombra-l);
  font-size: 0.95rem;
  animation: subir 0.25s ease both;
}
.toast.error {
  background: var(--rojo);
}
.toast.exito {
  background: var(--menta);
}
@keyframes subir {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.modal-fondo {
  position: fixed;
  inset: 0;
  background: rgba(18, 18, 26, 0.55);
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
}
.modal {
  background: var(--blanco);
  border-radius: var(--radio-l);
  padding: 1.8rem;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  box-shadow: var(--sombra-l);
  animation: subir 0.2s ease both;
}
.modal.ancho {
  width: min(900px, 100%);
}
.modal h3 {
  margin-top: 0;
}
.modal-acciones {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1.4rem;
  flex-wrap: wrap;
}
.esqueleto {
  background: linear-gradient(90deg, var(--papel-2) 25%, #eceae2 50%, var(--papel-2) 75%);
  background-size: 200% 100%;
  animation: brillo 1.3s infinite;
  border-radius: 10px;
  min-height: 1em;
}
@keyframes brillo {
  to {
    background-position: -200% 0;
  }
}
.progreso {
  height: 8px;
  background: var(--papel-2);
  border-radius: 999px;
  overflow: hidden;
}
.progreso > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--violeta), #8b7bff);
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* Tablas simples */
.tabla {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
.tabla th,
.tabla td {
  text-align: left;
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid var(--linea);
  vertical-align: top;
}
.tabla th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tinta-3);
}
.tabla tr:hover td {
  background: var(--papel-2);
}
.desliza {
  overflow-x: auto;
}

/* Layout de la aplicacion */
.seccion-pl {
  padding-block: clamp(3rem, 7vw, 6rem);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.5rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1.2rem;
}
.pila {
  display: grid;
  gap: 1rem;
}
.entre {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.acciones {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}
hr.linea {
  border: 0;
  border-top: 1px solid var(--linea);
  margin: 1.5rem 0;
}
.lista-limpia {
  list-style: none;
  margin: 0;
  padding: 0;
}
.marco-navegador {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--linea);
  background: #fff;
  box-shadow: var(--sombra-l);
}
.marco-navegador .barra {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  padding: 0.55rem 0.8rem;
  background: var(--papel-2);
  border-bottom: 1px solid var(--linea);
}
.marco-navegador .barra i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d6d3ca;
}
.marco-navegador .barra span {
  flex: 1;
  margin-left: 0.6rem;
  background: #fff;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--tinta-3);
  padding: 0.25rem 0.6rem;
}
.marco-navegador iframe {
  width: 100%;
  border: 0;
  display: block;
}
.dispositivo-movil {
  width: 390px;
  max-width: 100%;
  margin-inline: auto;
  border-radius: 34px;
  border: 8px solid #1a1a22;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--sombra-l);
}
.dispositivo-movil iframe {
  width: 100%;
  height: 720px;
  border: 0;
  display: block;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
