/*==================================================
   Responsive adjustments for decortesia index
==================================================*/

/* Large Desktop Tweaks */
@media (min-width: 1251px) and (max-width: 1459px) {
    .nosotros .col-lg-7 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 1250px) {
    .nosotros.uno {
        background: #fceeed !important;
        height: 600px;
        text-align: center;
    }

    .nosotros .col-lg-7 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Tablet and Smaller (max-width: 991px) */
@media (max-width: 991px) {

    /* Sliders header adjustments */
    .sliders-header {
        background-image: url(../images/fondo2-movil.jpg);
        background-position: bottom center;
        background-size: cover;
        text-align: center;
        align-items: flex-start;
        padding-top: 60px;
        padding-bottom: 60px;
        min-height: 100vh;
    }

    .sliders-header .container h2 {
        font-size: 40px;
        line-height: 45px;
        margin-bottom: 0;
    }

    .sliders-header .container .texto2 {
        font-size: 20px;
        margin-top: 30px;
        text-align: center;
    }

    .sliders-header .botones {
        justify-content: center;
        gap: 20px;
        margin-top: 30px;
    }


    /* Titles global */
    h2,
    .nosotros h2,
    .productos h2,
    .personalizados h2,
    .distribucion h2,
    .clientes h2,
    .contacto .titulo h3 {
        font-size: 48px;
        line-height: 1.1;
    }

    .title-clientes,
    .title-opiniones {
        text-align: center !important;
    }

    .desc-opiniones {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .personalizados {
        padding-top: 0;
        padding-bottom: 0;
    }

    .personalizados .recuadro2 p {
        text-align: center;
    }

    .title-opiniones {
        padding-top: 50px;
    }

    #contacto {
        padding-top: 60px;
    }

    /* Contact form fixing */
    .contacto .col-sm-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }

    .contacto textarea {
        margin: 15px 0px;
    }

    /* Footer Stacking */
    footer .col-sm-3,
    footer .col-sm-7,
    footer .col-sm-2 {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
        margin-bottom: 30px;
    }

    footer .logo-footer {
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }

    footer .col-sm-2 {
        margin-bottom: 0;
    }

    .linea-productos a {
        display: block;
        padding: 8px 0;
    }

    .linea-productos a:not(:last-child) {
        border-right: none !important;
    }

    .personalizados .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }

    .personalizados .row .col-md-6:first-child {
        order: 2;
    }

    .personalizados .row .col-md-6:last-child {
        order: 1;
    }

    .personalizados .recuadro2 {
        flex-direction: column;
    }

    .personalizados .recuadro2>div:first-child,
    .personalizados .recuadro2>div:last-child {
        width: 100% !important;
        text-align: center;
    }

    .personalizados .recuadro2 div h3 {
        margin-bottom: 15px;
    }

    .personalizados .recuadro2 div a {
        width: 216px !important;
        max-width: 100%;
        margin: 0 auto;
    }

    /* Nosotros images grid */
    .imagenes {
        flex-wrap: wrap;
        justify-content: center;
    }

    .imagenes div,
    .imagenes div:first-child {
        width: 45%;
        margin: 10px 2.5%;
    }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {

    /* Sliders Header Buttons Mobile */
    .sliders-header .botones {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 30px;
    }

    .sliders-header .botones a {
        width: 100%;
        text-align: center;
        border-radius: 10px;
    }

    /* Typography Mobile */
    h2,
    .nosotros h2,
    .productos h2,
    .personalizados h2,
    .distribucion h2,
    .clientes h2,
    .contacto .titulo h3 {
        font-size: 36px !important;
        margin-bottom: 60px;
        text-align: center;
    }

    /* Linea Info */
    .linea-info .col-sm-4,
    .linea-info .col-12 {
        margin-bottom: 20px;
    }

    .linea-info h3 {
        text-align: center;
        margin-bottom: 20px;
    }

    .linea-info img {
        max-width: 350px;
        width: 100%;
        display: block;
        margin: 0 auto;
    }

    /* Productos Mobile Stacking */
    .productos .col-md-4 {
        margin-bottom: 30px;
        max-width: 650px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Personalizados */
    .personalizados .recuadro2 {
        flex-direction: column;
    }

    .personalizados .recuadro2>div:first-child,
    .personalizados .recuadro2>div:last-child {
        width: 100% !important;
        text-align: center;
    }

    .personalizados .recuadro2 div h3 {
        margin-bottom: 15px;
    }

    /* Nosotros Uno */
    .nosotros.uno {
        height: auto;
        padding: 60px 0 !important;
        text-align: center;
    }
}

/* Small Mobile Devices (max-width: 575px) */
@media (max-width: 575px) {
    .sliders-header .container h2 {
        font-size: 32px;
        line-height: 38px;
    }

    h2,
    .nosotros h2,
    .productos h2,
    .personalizados h2,
    .distribucion h2,
    .clientes h2,
    .contacto .titulo h3 {
        font-size: 32px !important;
    }

    .imagenes div,
    .imagenes div:first-child {
        width: 100%;
        margin: 15px 0;
    }
}

/* Tablet Layout for Productos (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .productos .col-md-4 {
        flex: 0 0 100%;
        max-width: 760px;
        margin-left: auto;
        margin-right: auto;
        display: flex;
        align-items: stretch;
        margin-bottom: 30px;
    }

    .productos .col-md-4>img {
        width: 45%;
        object-fit: cover;
        border-radius: 20px 0 0 20px;
    }

    .productos .recuadro {
        width: 55%;
        border-radius: 0 20px 20px 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 30px;
    }

    .productos .recuadro h3 {
        margin-bottom: 15px;
    }

    .productos .recuadro p {
        margin-bottom: 25px;
    }
}

/* Medium Devices (min-width: 992px and max-width: 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .personalizados .recuadro2 {
        flex-direction: column;
    }

    .personalizados .recuadro2>div:first-child,
    .personalizados .recuadro2>div:last-child {
        width: 100% !important;
        text-align: center;
    }

    .personalizados .recuadro2 div h3 {
        margin-bottom: 15px;
    }
}