/* Variables */
:root {
    --nsf-color-primario: #4a5f3a;
    --nsf-color-secundario: #3d4f30;
    --nsf-color-texto-btn: #ffffff;
    --nsf-font-family: inherit;
    --nsf-font-weight: 500;
}

/* Botón abrir */
.nsf-btn-abrir {
    background: var(--nsf-color-primario);
    color: var(--nsf-color-texto-btn);
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-family: var(--nsf-font-family);
    font-weight: var(--nsf-font-weight);
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}
.nsf-btn-abrir:hover {
    background: var(--nsf-color-secundario);
}

/* Overlay */
.nsf-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 999999;
    justify-content: center;
    align-items: center;
}
.nsf-overlay.nsf-visible {
    display: flex;
}

/* Modal */
.nsf-modal {
    background: #fff;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 10px;
    position: relative;
    padding: 30px;
    box-sizing: border-box;
    font-family: var(--nsf-font-family);
}

/* Cerrar */
.nsf-cerrar {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}
.nsf-cerrar:hover {
    color: #000;
}

/* Progreso */
.nsf-progreso {
    height: 4px;
    background: #eee;
    border-radius: 2px;
    margin-bottom: 25px;
}
.nsf-progreso-bar {
    height: 100%;
    background: var(--nsf-color-primario);
    border-radius: 2px;
    width: 33%;
    transition: width 0.3s;
}

/* Pasos */
.nsf-paso {
    display: none;
}
.nsf-paso.nsf-paso-activo {
    display: block;
}
.nsf-paso h2 {
    margin: 0 0 5px 0;
    font-size: 22px;
    color: #333;
    font-family: var(--nsf-font-family);
}
.nsf-paso > p {
    margin: 0 0 20px 0;
    color: #666;
}

/* Categorías con checkbox */
.nsf-categorias {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
.nsf-cat {
    display: block;
    cursor: pointer;
}
.nsf-cat input {
    display: none;
}
.nsf-cat > span {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.2s;
    gap: 12px;
}
.nsf-cat:hover > span {
    border-color: var(--nsf-color-primario);
}
.nsf-cat input:checked + span {
    border-color: var(--nsf-color-primario);
    background: rgba(74, 95, 58, 0.08);
}

/* Icono SVG categoría */
.nsf-cat-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--nsf-color-primario);
}
.nsf-cat-icon svg {
    width: 100%;
    height: 100%;
}

/* Nombre categoría */
.nsf-cat-nombre {
    flex: 1;
    font-size: 16px;
    color: #333;
}

/* Check de selección */
.nsf-cat-check {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}
.nsf-cat-check svg {
    width: 14px;
    height: 14px;
    opacity: 0;
    color: #fff;
    transition: opacity 0.2s;
}
.nsf-cat input:checked + span .nsf-cat-check {
    background: var(--nsf-color-primario);
    border-color: var(--nsf-color-primario);
}
.nsf-cat input:checked + span .nsf-cat-check svg {
    opacity: 1;
}

/* Campos */
.nsf-campo {
    margin-bottom: 15px;
}
.nsf-campo label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}
.nsf-campo input,
.nsf-campo select,
.nsf-campo textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    box-sizing: border-box;
    font-family: var(--nsf-font-family);
}
.nsf-campo input:focus,
.nsf-campo select:focus,
.nsf-campo textarea:focus {
    outline: none;
    border-color: var(--nsf-color-primario);
}

.nsf-fila {
    display: flex;
    gap: 15px;
}
.nsf-fila .nsf-campo {
    flex: 1;
}

/* Botones */
.nsf-botones {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}
.nsf-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-family: var(--nsf-font-family);
    font-weight: var(--nsf-font-weight);
    cursor: pointer;
    background: var(--nsf-color-primario);
    color: var(--nsf-color-texto-btn);
    transition: background 0.3s;
}
.nsf-btn:hover {
    background: var(--nsf-color-secundario);
}
.nsf-btn:disabled {
    background: #999 !important;
    cursor: not-allowed;
}
.nsf-btn-secundario {
    background: #eee !important;
    color: #333 !important;
}
.nsf-btn-secundario:hover {
    background: #ddd !important;
}

/* Éxito */
.nsf-exito {
    text-align: center;
    padding: 30px 0;
}
.nsf-check {
    display: inline-flex;
    width: 60px;
    height: 60px;
    background: var(--nsf-color-primario);
    color: var(--nsf-color-texto-btn);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.nsf-check svg {
    width: 30px;
    height: 30px;
}
.nsf-exito h2 {
    color: var(--nsf-color-primario);
}

/* Responsive */
@media (max-width: 500px) {
    .nsf-modal {
        padding: 20px;
        width: 95%;
    }
    .nsf-fila {
        flex-direction: column;
        gap: 0;
    }
}
