
/* =========================================================
   CONTACTO
   ========================================================= */

.bodycontacto {
    width: 100%;

    min-height: auto;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 40px 20px;

    font-family: Arial, sans-serif;
}


/* =========================================================
   CONTENEDOR
   ========================================================= */

.bodycontacto .container {
    width: min(1200px, 100%);

    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(0, 0.85fr);

    gap: 30px;

    padding: 30px;

    background-color: #d88526;

    border-radius: 15px;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.15);
}


/* =========================================================
   MAPA
   ========================================================= */

#map {
    width: 100%;

    height: 450px;

    min-width: 0;

    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.2);
}


/* =========================================================
   FORMULARIO
   ========================================================= */

.formulario {
    width: 100%;

    min-width: 0;
}

#form-contacto {
    width: 100%;

    display: flex;

    flex-direction: column;

    gap: 8px;
}

.formulario label {
    margin-top: 5px;

    margin-bottom: 2px;

    color: #222;

    font-size: 14px;

    font-weight: bold;
}


/* =========================================================
   INPUTS
   ========================================================= */

.formulario input,
.formulario textarea {
    width: 100%;

    min-width: 0;

    padding: 11px 12px;

    border: 1px solid #ccc;

    border-radius: 6px;

    background-color: white;

    color: #333;

    font-family: Arial, sans-serif;

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.formulario input:focus,
.formulario textarea:focus {
    border-color: #0049a8;

    box-shadow:
        0 0 0 2px rgba(0, 73, 168, 0.15);
}

.formulario textarea {
    min-height: 120px;

    resize: vertical;
}


/* =========================================================
   BOTÓN
   ========================================================= */

.formulario button {
    width: 100%;

    margin-top: 8px;

    padding: 12px;

    border: none;

    border-radius: 6px;

    background-color: #333;

    color: white;

    font-size: 15px;

    font-weight: bold;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.formulario button:hover {
    background-color: #555;

    transform: translateY(-1px);
}

.formulario button:active {
    transform: translateY(0);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .bodycontacto {
        padding: 30px 15px;
    }

    .bodycontacto .container {
        grid-template-columns: 1fr;

        max-width: 700px;

        padding: 25px;

        gap: 25px;
    }

    #map {
        height: 400px;
    }

}


/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width: 600px) {

    .bodycontacto {
        padding: 20px 10px;
    }

    .bodycontacto .container {
        width: 100%;

        padding: 15px;

        gap: 20px;

        border-radius: 10px;
    }

    #map {
        height: 300px;

        border-radius: 8px;
    }

    .formulario input,
    .formulario textarea {
        font-size: 16px;

        padding: 12px;
    }

    .formulario textarea {
        min-height: 130px;
    }

    .formulario button {
        padding: 13px;

        font-size: 16px;
    }

}


/* =========================================================
   CELULARES PEQUEÑOS
   ========================================================= */

@media (max-width: 400px) {

    .bodycontacto {
        padding: 15px 8px;
    }

    .bodycontacto .container {
        padding: 12px;
    }

    #map {
        height: 270px;
    }

}

