/**
 * Ajustes responsivos — solo se aplican en tablet y móvil (max-width 991px).
 * No tocan el diseño desktop.
 */

@media (max-width: 991px) {

    /* Navbar ocupa 100% del ancho */
    .menu-block .container,
    header.header-main .top-header .container {
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    .menu-block .navbar.ow-navigation {
        margin: 0;
        border-radius: 0;
    }
    .menu-block .navbar-header,
    .menu-block .navbar-collapse {
        padding-left: 15px;
        padding-right: 15px;
    }
    .header-main .top-header ul {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Botón "Cotizar / Quote" del menú móvil: bloque centrado con aire */
    .menu-block .navbar-collapse > a.btn {
        display: block;
        width: calc(100% - 30px);
        margin: 12px 15px 16px;
        padding: 12px 16px;
        text-align: center;
        float: none;
        border-radius: 4px;
    }

    /* Slider con más altura — la imagen se recorta con object-fit:cover */
    .photo-slider .carousel-inner,
    .photo-slider #main-carousel {
        height: 90vh;
        min-height: 550px;
        max-height: 780px;
    }
    .photo-slider .carousel-inner .item {
        height: 100%;
    }
    .photo-slider .carousel-inner .item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    /* Caption centrada vertical, ligeramente arriba del centro */
    .photo-slider .carousel-caption {
        display: block !important; /* el legacy lo oculta a partir de 480px */
        top: 42%;
        transform: translateY(-50%);
        bottom: auto;
        padding: 0 20px;
        text-align: center;
        z-index: 2;
    }

    /* Capa oscura sutil sobre la imagen para que el texto sea legible */
    .photo-slider .carousel-inner .item::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.55));
        z-index: 1;
    }

    /* Aire entre el slider y la sección siguiente */
    .photo-slider {
        margin-bottom: 30px;
    }

    /* "Solicite una Cotización": el legacy le mete padding: 0 150px,
       lo dejamos con un padding razonable para que el form respire */
    .request-quote {
        padding: 0 20px !important;
        float: none;
        width: 100% !important;
    }
    .features-block {
        float: none;
        width: 100% !important;
    }

    /* Headings de secciones más compactos */
    .section-header h3 {
        font-size: 26px !important;
        line-height: 1.3;
    }
    .section-header p {
        font-size: 14px;
        line-height: 1.55;
    }
    .services-content h3 { font-size: 16px; }
    .offers-content h3   { font-size: 16px; }
    .page-banner .banner-content h3 { font-size: 28px; }
    .page-banner .breadcrumb,
    .page-banner .breadcrumb li,
    .page-banner .breadcrumb li a {
        font-size: 13px;
    }
    .core-values-content h3 { font-size: 18px; }
    .call-out .col-md-6 > h3        { font-size: 12px !important; line-height: 1.5 !important; }
    .call-out .col-md-6 > h3 span   { font-size: 13px !important; }
    .call-out .col-md-6 > h3 b      { font-size: 17px !important; }

    /* Footer más compacto */
    .footer-main .widget-title {
        font-size: 16px;
        margin-bottom: 14px;
    }
    .footer-main .detail-box p,
    .footer-main aside ul li,
    .footer-main aside ul li a {
        font-size: 13px;
        line-height: 1.55;
    }
    .footer-main .widget-contacts ul li {
        font-size: 13px;
        margin-bottom: 8px;
    }
    .footer-main .widget-contacts ul li img {
        width: 14px;
        height: auto;
        margin-right: 6px;
    }
    .footer-main .widget-links,
    .footer-main .widget-services {
        margin-left: 0 !important;
    }
    .footer-main .detail-box ul li a i {
        font-size: 16px;
    }
    .bottom-footer .copyright {
        font-size: 12px;
        line-height: 1.5;
    }
}

/* Móvil chico */
@media (max-width: 575px) {
    .photo-slider .carousel-inner,
    .photo-slider #main-carousel {
        height: 80vh;
        min-height: 500px;
    }

    .photo-slider .carousel-caption h1 {
        font-size: 28px;
        padding-bottom: 18px;
        line-height: 1.2;
        word-break: keep-all;
    }
    .photo-slider .carousel-caption h3 {
        font-size: 20px;
        margin-bottom: 28px;
        line-height: 1.3;
    }
    .photo-slider .carousel-caption .btn-default {
        display: inline-block;
        font-size: 11px;
        padding: 14px 24px;
        margin: 6px 4px;
        min-width: 160px;
    }

    .section-header h3 { font-size: 22px !important; }
    .page-banner .banner-content h3 { font-size: 24px; }
    .services-content h3,
    .offers-content h3 { font-size: 15px; }
}

/* Pantallas muy estrechas — botones del slider apilados */
@media (max-width: 480px) {
    .photo-slider .carousel-caption .btn-default {
        display: block;
        width: 80%;
        max-width: 280px;
        margin: 12px auto 0;
        min-width: 0;
    }
    .photo-slider .carousel-caption .btn-default:first-of-type {
        margin-top: 0;
    }
}
