/* Contenedor principal */
.container-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    background-color: #f8f8f8;
    font-family: 'Nunito', sans-serif;
    min-height: 700px;
}

/* Sección izquierda (formulario) */
.left-section {
    flex: 1;
    margin-right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Contenedor del formulario ajustado */
.form-container {
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 740px;
    height: 700px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Estilo del título y texto */
.form-container h3 {
    font-size: 1.5em;
    text-align: center;
    margin-bottom: 10px;
}

.form-container p {
    font-size: 1em;
    text-align: center;
    margin-bottom: 20px;
}

/* Campos del formulario */
.input-custom {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border-radius: 4px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
}

/* Botón */
.button-custom {
    width: 100%;
    padding: 10px;
    background-color: #349B7D;
    color: white;
    border: none;
    font-size: 1em;
    border-radius: 4px;
    cursor: pointer;
}

.button-custom:hover {
    background-color: #F8AE00;
}

/* Sección derecha con parrilla 2x2 */
.right-section {
    flex: 1;
    margin-left: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    height: 700px;
}

.grid-item {
    position: relative;
    width: 100%;
    height: 100%;
}

.grid-item-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .container-main {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
    }

    .left-section,
    .right-section {
        margin: 0;
        width: 100%;
    }

    .form-container {
        height: 550px; /* altura fija en móviles */
        max-width: 100%;
    }

    .grid-container {
        height: auto;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
}
