:root {
    --color-primario: #1f2937; /* Texto oscuro */
    --color-secundario: #6b7280; /* Gris medio */
    --color-fondo: #ffffff;
    --color-borde: #d1d5db;
    --color-boton: #3b82f6;
    --color-boton-hover: #2563eb;
    --radio: 0.5rem;
    --padding: 1rem;
    --fuente: "Segoe UI", "Helvetica Neue", sans-serif;
}

body,
.ce-wrap {
    font-family: var(--fuente);
    background-color: var(--color-fondo);
    color: var(--color-primario);
    padding: var(--padding);
}

.ce-wrap {
    max-width: 700px;
    margin: auto;
}

h1, h2, h3 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.ce-step {
    border: 1px solid var(--color-borde);
    border-radius: var(--radio);
    padding: 1.5rem;
    background-color: #f9fafb;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ce-costos-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.ce-costos-form input[type="text"],
.ce-costos-form input[type="number"],
input[type="number"] {
    padding: 0.6rem 1rem;
    border: 1px solid var(--color-borde);
    border-radius: var(--radio);
    width: calc(50% - 0.5rem);
    font-size: 1rem;
}

button,
.ce-costos-form button {
    background-color: var(--color-boton);
    color: white;
    border: none;
    border-radius: var(--radio);
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button:hover,
.ce-costos-form button:hover {
    background-color: var(--color-boton-hover);
}

#ce-lista-costos {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

#ce-lista-costos li {
    margin-bottom: 0.5rem;
    background-color: #ffffff;
    border: 1px solid var(--color-borde);
    padding: 0.6rem 1rem;
    border-radius: var(--radio);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ce-del-costo {
    background-color: transparent;
    color: var(--color-secundario);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.ce-del-costo:hover {
    color: red;
}

.ce-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

#ce-error {
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 0.75rem 1rem;
    border-radius: var(--radio);
    margin-bottom: 1rem;
    font-weight: 500;
    border: 1px solid #fecaca;
}

#ce-resultado-final {
    font-size: 1.1rem;
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 1rem;
    border-radius: var(--radio);
    color: #065f46;
    font-weight: 500;
}

/* Barra de progreso */
#ce-progress {
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1rem;
}
#ce-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--color-boton);
  transition: width .3s ease;
}

/* Reemplaza el bloque de la barra o añade después — sólo cambia height y color */
#ce-progress       { height: 6px;  background: #e5e7eb; border-radius: 3px; margin-bottom: 1.25rem; }
#ce-progress span  { background: #3b82f6; height: 100%; display: block; border-radius: 3px; }

/* Extra responsive ≤480 px */
@media (max-width: 480px) {
  .ce-costos-form input[type="text"],
  .ce-costos-form input[type="number"] {
    width: 100%;
  }
  .ce-nav { flex-direction: column; gap: .75rem; }
}

