/* ==========================================
   ESTILOS ESPECÍFICOS - CALCULADORA NUTRISS
   ========================================== */

/* Contenedor tipo Tarjeta (Blanco, con sombra sutil) */
.nl-calc-card {
    background-color: var(--nl-neutral-white, #ffffff);
    border-radius: 16px;
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* --- Layout a 2 Columnas (Desktop) --- */
@media (min-width: 992px) {
    .nl-calc-card {
        flex-direction: row;
        align-items: stretch;
    }

    .nl-calc-form-side {
        flex: 0 0 60%;
        /* El formulario toma el 60% del ancho */
        padding: 48px;
    }

    .nl-calc-img-side {
        flex: 0 0 40%;
        /* La imagen toma el 40% del ancho */
        position: relative;
        background-color: var(--nl-cream-100);
        /* Fondo suave en caso de que la imagen no cargue */
    }
}

/* Espaciados en móvil */
@media (max-width: 991px) {
    .nl-calc-form-side {
        padding: 24px;
        order: 2;
        /* En móvil, el formulario baja */
    }

    .nl-calc-img-side {
        order: 1;
        /* En móvil, la imagen sube */
    }
}

/* --- Grilla Interna de Inputs --- */
.nl-calc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px 24px;
    /* Separación vertical y horizontal */
}

@media (min-width: 768px) {
    .nl-calc-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 inputs por fila */
    }

    .nl-calc-grid .nl-full-width {
        grid-column: span 2;
        /* Obliga al campo a ocupar toda la fila */
    }
}

/* --- Reset a las etiquetas nativas Fieldset --- */
.nl-calc-grid fieldset {
    border: none;
    padding: 0;
    margin: 0;
    min-width: 0;
}

/* --- Ajuste de Alertas de Error --- */
.CatForm .msjAlert {
    font-family: var(--font-family-primary);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 4px;
    display: block;
}

/* --- Banner de Imagen Derecho --- */
.nl-calc-banner-bg {
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: flex;
}

.nl-calc-banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Ajustes menores al botón si es necesario */
.nl-calc-grid .nl-btn {
    padding-top: 16px;
    padding-bottom: 16px;
    font-size: 1.1rem;
}