/* =========================================================
   ===============      ESTILOS GENERALES      ==============
   ========================================================= */

.animar,
.animar-lateral {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animar {
    transform: translateY(50px);
}

.animar.visible {
    opacity: 1;
    transform: translateY(0);
}

.animar-lateral {
    transform: translateX(-100px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animar-lateral.derecha {
    transform: translateX(100px);
}

.animar-lateral.visible {
    opacity: 1;
    transform: translateX(0);
}

.trabajo, .ubicacion, .horario-container{
    text-transform: none;

}
/* =========================================================
   ===============           TRABAJOS         ===============
   ========================================================= */

.trabajo {
    padding: 0px 50px;
    color: #346231;
}

.trabajo h2 {
    padding: 50px 0px 50px 0px;
    margin: 0;
}

.contenedor-trabajo {
    max-width: 1000px;
    margin: auto;
    display: grid;
    align-items: center;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.paso-contenido {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    font-size: 16px;
}

.paso p {
    font-size: 16px;
}


/* --- Imágenes --- */

.imagenes-trabajo,
.imagenes-trabajo2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.imagenes-trabajo {
    grid-template-rows: 270px;
    grid-template-areas: "img1 img2";
}

.imagenes-trabajo2 {
    grid-template-rows: 270px;
    grid-template-areas: "img4 img5";
}

.img1 {
    grid-area: img1;
}

.img2 {
    grid-area: img2;
}

.img4 {
    grid-area: img4;
}

.img5 {
    grid-area: img5;
}

.imagenes-trabajo img,
.imagenes-trabajo2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: center;

}

.margTrABAJO{
    margin-top: 20px;
}

/* --- Alternancia de orden entre secciones --- */

.trabajo:nth-of-type(odd) .contenedor-trabajo {
    direction: ltr;
}

.trabajo:nth-of-type(even) .contenedor-trabajo {
    direction: rtl;
}

.trabajo:nth-of-type(even) .paso,
.trabajo:nth-of-type(even) .imagenes-trabajo,
.trabajo:nth-of-type(even) .imagenes-trabajo2 {
    direction: ltr;
}


/* =========================================================
   ===============          UBICACIÓN         ===============
   ========================================================= */

.ubicacion {
    text-align: center;
    padding: 50px 0 0;
}

.mapa {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 30px;
}

.header-mapa {
    margin: 0px 0px 50px 0px;
}

.mapa img,
.mapa iframe {
    max-width: 100%;
    width: 500px;
    height: 400px;
}

.ubicacion p {
    font-size: 16px;
    line-height: 1.6;
    margin-top: 20px;
}


/* =========================================================
   ===============          HORARIO           ===============
   ========================================================= */

.horario-container {
    width: 100%;
    padding: 50px 30px;
    background-color: #fff;
    color: #346231;
}

.horario-header {
    text-align: center;
    font-size: 2em;
    margin-bottom: 40px;
}

.horario-grid {
    display: grid;
    width: 80%;
    margin: auto;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
    text-align: center;
}

.dia {
    background-color: rgba(52, 98, 49, 0.05);
    border: 1px solid rgb(52, 98, 49);
    border-radius: 12px;
    padding: 15px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.dia h3 {
    font-size: 1.5em;
}

.hora {
    font-size: 1em;
}

.cerrado {
    color: #789b78;
    font-style: italic;
}


/* =========================================================
   ===============         FORMULARIO         ===============
   ========================================================= */

.toast {
    color: #000;
    opacity: 0;
    border: none;
    margin: auto;
    text-align: center;
    width: 40%;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.formulario {
    width: 100%;
    height: 75vh;
}

.presupuesto_header {
    margin-bottom: 70px;
}

form.form-grid {
    width: 100%;
    max-width: 35%;
    margin: auto;
    padding: 4% 0;
    text-align: center;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.grid-container input,
.grid-container textarea {
    width: 100%;
    padding: 10px;
    background: #ddd;
    border: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.grid-container input:focus,
.grid-container textarea:focus {
    outline: none;
    border: 2px solid #346231;
    background: #fff;
}

.grid-full {
    grid-column: 1 / -1;
}

textarea {
    height: 120px;
    resize: none;
}


/* --- Checkboxes --- */

.checkboxes {
    display: grid;
    gap: 15px;
    margin: 45px 0;
    text-align: left;
    font-size: 14px;
}

.checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkboxes input[type="checkbox"] {
    margin: 0;
    transform: scale(1.2);
}

.checkboxes a {
    color: #357edd;
    text-decoration: none;
}


/* --- Botón --- */

.enviar {
    padding: 10px 25px;
    background-color: #444;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.enviar:hover {
    background-color: #346231;
    transform: scale(1.05);
}


/* =========================================================
   ===============          RESPONSIVE        ===============
   ========================================================= */


/* --- Desktop medio --- */

@media (max-width: 1024px) {
    .contenedor-trabajo {
        gap: 20px;
    }
    .imagenes-trabajo {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "img1 img2";
    }
    .imagenes-trabajo,
    .imagenes-trabajo2 {
        grid-template-rows: 230px;
    }
    .horario-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    form.form-grid {
        max-width: 70%;
        padding: 5% 0;
    }
    .grid-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .enviar {
        width: 100%;
        padding: 12px 0;
    }
    .trabajo h2 {
        padding: 40px;
    }
    .header-mapa {
        margin: 0px 0px 40px 0px;
    }
}


/* --- Tablets --- */

@media (max-width: 768px) {
    .horario-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .horario-header {
        font-size: 1.5em;
    }
    form.form-grid {
        max-width: 90%;
        padding: 5% 0;
    }
    .grid-container {
        gap: 12px;
    }
    .contenedor-trabajo {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .imagenes-trabajo,
    .imagenes-trabajo2 {
        grid-template-rows: 300px;
    }
    .trabajo {
        padding: 0px 20px;
    }
    .mapa img {
        display: none;
    }
    .trabajo h2 {
        padding: 30px;
    }
    .header-mapa {
        margin: 0px 0px 30px 0px;
    }
}


/* --- Móviles --- */

@media (max-width: 480px) {
    form.form-grid {
        padding: 7% 5%;
    }
    .grid-container input,
    .grid-container textarea {
        padding: 8px;
        font-size: 14px;
    }
    .enviar {
        font-size: 14px;
        padding: 10px 0;
    }
    .horario-grid {
        grid-template-columns: 1fr;
        width: 90%;
        gap: 10px;
    }
    .dia {
        display: flex;
        align-items: center;
        padding: 10px;
    }
    .cerrado,
    .hora {
        margin: auto;
    }
    .dia h3 {
        width: 90px;
        font-size: 1em;
        margin: 0;
    }
    .paso-contenido {
        gap: 15px;
    }
    .trabajo {
        padding: 0px 15px;
    }
    .header-mapa {
        font-size: 20px;
    }
    .ubicacion {
        padding: 30px 10px;
    }
    .trabajo h2,
    .horario-header {
        font-size: 22px;
    }
    .horario-container {
        padding: 0px 0px 30px 0px;
    }
    .paso p {
        font-size: 12px;
        margin: 5px;
    }
    .imagenes-trabajo,
    .imagenes-trabajo2 {
        grid-template-rows: 200px;
    }
}