/* Loader */
.nisii-loader {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.9);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.nisii-loader .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #ddd;
    border-top: 4px solid #111;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modal */
.nisii-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}
.nisii-modal-box {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    max-width: 420px;
    width: 90%;
}
.nisii-modal-box button {
    margin-top: 15px;
    padding: 10px 20px;
    cursor: pointer;
}

/* Ocultar totales al cliente */
.nisii-totales {
    display: none;
}

/* =============================
   Datos del cliente: una fila por campo
============================= */
.nisii-cliente {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nisii-cliente input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    box-sizing: border-box;
}
/* =============================
   Tablas sin bordes
============================= */
.nisii-tabla {
    width: 100%;
    border-collapse: collapse;
    border: none;
}

.nisii-tabla th,
.nisii-tabla td {
    border: none !important;
}
/* =============================
   Secciones con fondo gris tenue
============================= */
.nisii-tabla {
    background: #f6f6f6;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 30px;
}

.nisii-tabla thead th {
    background: transparent;
    font-weight: 600;
    color: #333;
    padding-bottom: 8px;
}

.nisii-tabla tbody tr {
    background: transparent;
}
/* =============================
   Select modernos
============================= */
.nisii-embalaje {
    width: 100%;
    padding: 8px 36px 8px 12px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    cursor: pointer;
}

.nisii-embalaje:focus {
    outline: none;
    border-color: #111;
}
/* =============================
   Input cantidad
============================= */
.nisii-cantidad {
    width: 70px;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    text-align: center;
}

.nisii-cantidad:focus {
    outline: none;
    border-color: #111;
}
/* =============================
   Encabezados alineados a la izquierda
============================= */
.nisii-tabla th {
    text-align: left !important;
    vertical-align: middle;
}
/* =============================
   Alineación de columnas
============================= */
.nisii-tabla th:nth-child(1),
.nisii-tabla td:nth-child(1) {
    width: 50%;
}

.nisii-tabla th:nth-child(2),
.nisii-tabla td:nth-child(2) {
    width: 120px;
}

.nisii-tabla th:nth-child(3),
.nisii-tabla td:nth-child(3) {
    width: 220px;
}
/* =============================
   Input cantidad centrado
============================= */
.nisii-tabla td:nth-child(2) {
    text-align: left;
}

.nisii-cantidad {
    display: block;
    margin-left: 0;
}
/* =============================
   Espaciado uniforme
============================= */
.nisii-tabla tbody tr {
    height: 48px;
}
/* =============================
   Botón Cotizar – Azul / Verde activo
============================= */
.nisii-btn {
    display: block;
    margin: 30px auto 10px auto;
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    background-color: #1e6cff; /* Azul */
    color: #fff; /* Texto blanco */
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

/* Hover (azul más oscuro) */
.nisii-btn:hover {
    background-color: #1558cc;
    transform: translateY(-1px);
}

/* Al presionar (verde) */
.nisii-btn:active {
    background-color: #2ecc71; /* Verde */
    color: #fff;
    transform: translateY(0);
}

/* Deshabilitado (cuando envía) */
.nisii-btn:disabled {
    background-color: #9bbcff;
    color: #fff;
    cursor: not-allowed;
    transform: none;
}



