/* Componentes base del design system. Los colores, radios y tamaños vienen de tokens.css (generado). */

.cnsf-boton {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 15px;
  height: var(--input-height);
  border-radius: var(--input-radius);
  border: none;
  padding: 0 20px;
  cursor: pointer;
}
.cnsf-boton--primario {
  background: var(--cnsf-green);
  color: var(--surface);
}
.cnsf-boton--primario:disabled {
  background: var(--disabled);
  cursor: not-allowed;
}
.cnsf-boton--contorno {
  background: transparent;
  color: var(--cnsf-red);
  border: var(--input-border-width) solid var(--cnsf-red);
}

.cnsf-campo__etiqueta {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.cnsf-input {
  width: 100%;
  height: var(--input-height);
  border-radius: var(--input-radius);
  border: var(--input-border-width) solid var(--border);
  font-size: var(--input-font-size);
  font-family: var(--font-family);
  color: var(--text);
  padding: 0 14px;
  box-sizing: border-box;
}
.cnsf-input:focus {
  outline: none;
  border-color: var(--cnsf-green);
}

.cnsf-chip {
  display: inline-block;
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.cnsf-tarjeta {
  background: var(--surface);
  border: 1px solid var(--surface-soft-alt);
  border-radius: 16px;
  padding: 16px;
}

.cnsf-barra-progreso {
  background: var(--surface-alt);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}
.cnsf-barra-progreso__relleno {
  background: var(--cnsf-green);
  height: 100%;
  transition: width 0.3s ease;
}

.cnsf-hoja-fondo {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 40;
}
.cnsf-hoja {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 41;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  padding: 20px;
  max-width: 560px;
  margin: 0 auto;
}
.cnsf-hoja__encabezado {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.cnsf-hoja__titulo {
  font-family: var(--font-family);
  font-weight: 800;
  font-size: 17px;
  color: var(--text);
}
.cnsf-hoja__cerrar {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
}

.cnsf-aviso {
  font-family: var(--font-family);
  border-radius: var(--input-radius);
  padding: 12px 14px;
  font-size: 14px;
}
.cnsf-aviso--ok {
  background: var(--ok-bg);
  color: var(--cnsf-green);
}
.cnsf-aviso--warn {
  background: var(--warn-bg);
  color: var(--cnsf-amber-text);
}
.cnsf-aviso--err {
  background: var(--err-bg);
  color: var(--cnsf-red-dark);
}

.cnsf-indicador-carga {
  width: 28px;
  height: 28px;
  border: 3px solid var(--surface-alt);
  border-top-color: var(--cnsf-green);
  border-radius: 50%;
}

.cnsf-logo-circulo__anillo {
  width: calc(var(--logo-circle-diameter) + var(--logo-outline-width) * 2);
  height: calc(var(--logo-circle-diameter) + var(--logo-outline-width) * 2);
  border-radius: 50%;
  background: var(--cnsf-green);
  box-shadow: var(--logo-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--logo-margin-bottom);
}
.cnsf-logo-circulo__interior {
  width: var(--logo-circle-diameter);
  height: var(--logo-circle-diameter);
  border-radius: 50%;
  background: var(--surface);
  border: var(--logo-inner-border-width) solid var(--surface);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cnsf-logo-circulo__interior img {
  width: var(--logo-image-size);
  height: var(--logo-image-size);
  object-fit: contain;
}
