/* CSS específico para servicios.html - Sobrescribe todos los media queries */
/* Este archivo se carga después de styles.css para forzar los tamaños correctos */
/* Incluye soporte específico para Microsoft Edge */

@supports (-ms-ime-align: auto) {
    /* Estilos específicos para Microsoft Edge */
    html body .header,
    html body header.header {
        height: 220px !important;
        min-height: 220px !important;
        max-height: 220px !important;
        transform: scale(1) !important;
        -webkit-transform: scale(1) !important;
        -ms-transform: scale(1) !important;
        zoom: 1 !important;
    }
    
    html body .logo,
    html body .header .logo {
        width: 300px !important;
        height: 300px !important;
        min-width: 300px !important;
        min-height: 300px !important;
        transform: scale(1) !important;
        -webkit-transform: scale(1) !important;
        -ms-transform: scale(1) !important;
        zoom: 1 !important;
    }
    
    html body .phone {
        font-size: 18px !important;
    }
    
    html body .phone i {
        width: 32px !important;
        height: 32px !important;
        font-size: 18px !important;
    }
    
    html body .nav-menu a {
        padding: 30px 35px !important;
        font-size: 18px !important;
    }
}

html body .header,
html body header.header {
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
    transform: scale(1) !important;
    -webkit-transform: scale(1) !important;
    -ms-transform: scale(1) !important;
    zoom: 1 !important;
    -ms-zoom: 1 !important;
}

html body .header-container,
html body .header .header-container {
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
    transform: scale(1) !important;
    -webkit-transform: scale(1) !important;
}

html body .logo,
html body .header .logo,
html body .company-info .logo {
    width: 300px !important;
    height: 300px !important;
    min-width: 300px !important;
    min-height: 300px !important;
    max-width: 300px !important;
    max-height: 300px !important;
    transform: scale(1) !important;
    -webkit-transform: scale(1) !important;
    -ms-transform: scale(1) !important;
    zoom: 1 !important;
    -ms-zoom: 1 !important;
}

html body .logo-image,
html body .logo img {
    width: 100% !important;
    height: 100% !important;
    transform: scale(1) !important;
    -webkit-transform: scale(1) !important;
}

html body .phone,
html body .contact-info .phone {
    font-size: 18px !important;
    transform: scale(1) !important;
    -webkit-transform: scale(1) !important;
    -ms-transform: scale(1) !important;
}

html body .phone i,
html body .contact-info .phone i {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    font-size: 18px !important;
    transform: scale(1) !important;
    -webkit-transform: scale(1) !important;
    -ms-transform: scale(1) !important;
}

html body .phone-numbers span {
    font-size: 16px !important;
    transform: scale(1) !important;
    -webkit-transform: scale(1) !important;
}

html body .social-icon,
html body .social-media .social-icon {
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;
    min-height: 45px !important;
    max-width: 45px !important;
    max-height: 45px !important;
    font-size: 22px !important;
    transform: scale(1) !important;
    -webkit-transform: scale(1) !important;
}

html body .navbar,
html body nav.navbar {
    min-height: 85px !important;
    transform: scale(1) !important;
    -webkit-transform: scale(1) !important;
    zoom: 1 !important;
}

html body .nav-container {
    min-height: 85px !important;
    padding: 15px 20px !important;
    transform: scale(1) !important;
    -webkit-transform: scale(1) !important;
}

html body .nav-menu a,
html body .nav-menu li a,
html body .navbar .nav-menu a {
    padding: 30px 35px !important;
    font-size: 18px !important;
    transform: scale(1) !important;
    -webkit-transform: scale(1) !important;
    -ms-transform: scale(1) !important;
    zoom: 1 !important;
    -ms-zoom: 1 !important;
}

/* Sobrescribir TODOS los media queries */
@media (max-width: 2000px) {
    html body .header,
    html body header.header {
        height: 220px !important;
        min-height: 220px !important;
        max-height: 220px !important;
        transform: scale(1) !important;
        -webkit-transform: scale(1) !important;
        -ms-transform: scale(1) !important;
        zoom: 1 !important;
        -ms-zoom: 1 !important;
    }
    html body .header-container,
    html body .header .header-container {
        height: 220px !important;
        min-height: 220px !important;
        max-height: 220px !important;
        transform: scale(1) !important;
        -webkit-transform: scale(1) !important;
    }
    html body .logo,
    html body .header .logo,
    html body .company-info .logo {
        width: 300px !important;
        height: 300px !important;
        min-width: 300px !important;
        min-height: 300px !important;
        max-width: 300px !important;
        max-height: 300px !important;
        transform: scale(1) !important;
        -webkit-transform: scale(1) !important;
        -ms-transform: scale(1) !important;
        zoom: 1 !important;
        -ms-zoom: 1 !important;
    }
    html body .phone,
    html body .contact-info .phone {
        font-size: 18px !important;
        transform: scale(1) !important;
        -webkit-transform: scale(1) !important;
    }
    html body .phone i,
    html body .contact-info .phone i {
        width: 32px !important;
        height: 32px !important;
        font-size: 18px !important;
        transform: scale(1) !important;
        -webkit-transform: scale(1) !important;
    }
    html body .phone-numbers span {
        font-size: 16px !important;
        transform: scale(1) !important;
        -webkit-transform: scale(1) !important;
    }
    html body .social-icon,
    html body .social-media .social-icon {
        width: 45px !important;
        height: 45px !important;
        font-size: 22px !important;
        transform: scale(1) !important;
        -webkit-transform: scale(1) !important;
    }
    html body .navbar,
    html body nav.navbar {
        min-height: 85px !important;
        transform: scale(1) !important;
        -webkit-transform: scale(1) !important;
        zoom: 1 !important;
    }
    html body .nav-container {
        min-height: 85px !important;
        padding: 15px 20px !important;
        transform: scale(1) !important;
        -webkit-transform: scale(1) !important;
    }
    html body .nav-menu a,
    html body .nav-menu li a,
    html body .navbar .nav-menu a {
        padding: 30px 35px !important;
        font-size: 18px !important;
        transform: scale(1) !important;
        -webkit-transform: scale(1) !important;
        -ms-transform: scale(1) !important;
        zoom: 1 !important;
        -ms-zoom: 1 !important;
    }
}

/* Media queries específicos para Edge - Sobrescribir los de styles.css */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    html body .header {
        height: 220px !important;
        min-height: 220px !important;
    }
    html body .logo {
        width: 300px !important;
        height: 300px !important;
        min-width: 300px !important;
        min-height: 300px !important;
    }
    html body .phone {
        font-size: 18px !important;
    }
    html body .phone i {
        width: 32px !important;
        height: 32px !important;
        font-size: 18px !important;
    }
    html body .nav-menu a {
        padding: 30px 35px !important;
        font-size: 18px !important;
    }
}

/* Para Edge Chromium */
@supports (-ms-ime-align: auto) {
    @media (max-width: 2000px) {
        html body .header {
            height: 220px !important;
            min-height: 220px !important;
        }
        html body .logo {
            width: 300px !important;
            height: 300px !important;
            min-width: 300px !important;
            min-height: 300px !important;
        }
        html body .phone {
            font-size: 18px !important;
        }
        html body .phone i {
            width: 32px !important;
            height: 32px !important;
            font-size: 18px !important;
        }
        html body .nav-menu a {
            padding: 30px 35px !important;
            font-size: 18px !important;
        }
    }
}

/* Imagen de Monitoreo de Video: llena todo el recuadro (vertical) */
#monitoreo-video .patrol-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}
#monitoreo-video .patrol-image {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 0;
}
#monitoreo-video .patrol-image .image-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    /* Recuadro fijo vertical: la imagen cubre todo el área */
    aspect-ratio: 3 / 4;
    min-height: 420px;
    max-height: 720px;
}
#monitoreo-video .patrol-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    display: block;
}
#monitoreo-video .patrol-image .image-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
}
@media (max-width: 992px) {
    #monitoreo-video .patrol-content {
        grid-template-columns: 1fr;
    }
    #monitoreo-video .patrol-image .image-container {
        aspect-ratio: 4 / 5;
        max-height: 560px;
        min-height: 360px;
    }
}

/* Rendimiento: renderizar secciones largas solo cuando se acercan al viewport */
.services-section,
.patrol-section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 900px;
}

/* Evita saltos de layout al usar <picture> como contenedor de imágenes */
.image-container picture,
.logo picture {
    display: block;
}
