/*============================================================================================*/
/* VARIABLES / BASE */
/*============================================================================================*/

:root {
    --color-primary: #242495;
    --color-primary-dark: #000057;
}

body {
    overflow-x: hidden;
}

.justify {
    text-align: justify;
}

/*============================================================================================*/
/* HEADER + NAVBAR */
/*============================================================================================*/

/* Barra superior (contact info) */
.top-bar {
    background-color: #000057;
    width: 100%;
    padding: 8px 0;
}

.top-bar .container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.top-bar .contact-info {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    padding: 0;
    width: auto;
    margin-left: auto;
    margin-right: 50px;
}

.top-bar .contact-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 767px) {
    .top-bar {
        padding: 10px 0;
    }

    .top-bar .container {
        justify-content: center;
        padding: 0 12px;
    }

    .top-bar .contact-info {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        gap: 14px;
        padding: 0;
        width: 100%;
        margin: 0 auto;
        margin-right: 0;
        margin-left: 0;
        text-align: center;
        white-space: nowrap;
    }

    .top-bar .contact-info span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: auto;
        white-space: nowrap;
    }
}

@media (max-width: 991px) {
    .header-spacer {
        height: 150px;
    }
}

/* Header sticky */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 99999;
    background: #fff;
}

.navbar {
    margin-bottom: 0 !important;
    border: none !important;
}

/* Ajustes de header móvil */
@media (max-width: 767px) {
    .navbar .navbar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 15px;
        min-height: 72px;
        border-bottom: 1px solid #eee;
    }

    .navbar .navbar-brand {
        float: none;
        padding: 0;
        flex: 1;
        display: flex;
        align-items: center;
        order: 1;
        margin-right: 15px;
    }

    .navbar .navbar-brand img {
        max-height: 54px;
        width: auto;
    }

    .navbar .navbar-toggle {
        margin-left: auto;
        align-self: center;
        order: 2;
    }
}

/* Flecha en dropdowns del header */
.navbar-nav>li>a .dropdown-arrow {
    margin-left: 6px;
    font-size: 12px;
    vertical-align: middle;
}

/*============================================================================================*/
/* OWL CAROUSEL GENERAL */
/*============================================================================================*/

.owl-theme .owl-nav {
    display: none !important;
}

.owl-theme .owl-nav [class*='owl-'] {
    background: transparent;
    color: #2f2f2f;
    font-size: 20px;
    line-height: 1;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
}

.owl-theme .owl-nav [class*='owl-']:hover {
    background: transparent;
    color: #000;
}

.owl-theme .owl-nav .disabled {
    color: #bbbbbb !important;
    opacity: 1;
}

.owl-theme .owl-dots {
    margin-top: 4px !important;
    text-align: center;
}

/* Nav visible solo para carrusel services2 en mobile/tablet */
.services-carousel2 .owl-nav {
    display: flex !important;
    justify-content: space-between;
    width: 100%;
    position: absolute;
    top: 40%;
    left: 0;
    padding: 0 10px;
}

.services-carousel2 .owl-nav button {
    background: rgba(36, 36, 149, 0.85) !important;
    color: #fff !important;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.services-carousel2 .owl-nav button:hover {
    background: rgba(0, 0, 87, 0.9) !important;
}

@media (min-width: 992px) {
    .services-carousel2 .owl-nav {
        display: none !important;
    }
}

/* Banner principal - asegurar imagen completa en carrusel Owl (si se usa) */
.banner-carousel .owl-slide {
    background: #000057;
    height: 420px !important;
    top: 0;
    max-height: none;
    padding: 0;
    max-width: none !important;
}

@media (max-width: 767px) {
    .banner-carousel .owl-slide {
        height: 340px !important;
        min-height: 340px;
        padding: 0;
    }
}

/*============================================================================================*/
/* PAGINACIÓN BOOTSTRAP */
/*============================================================================================*/

.pagination {
    margin: 20px 0;
    text-align: center;
}

.pagination>li>a,
.pagination>li>span {
    color: #242495;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 6px 12px;
    min-width: 36px;
    display: inline-block;
}

.pagination>li>a:hover,
.pagination>li>span:hover {
    color: #242495;
    text-decoration: none;
    background-color: #dad3d3;
    border-color: #dad3d3;
}

.pagination>li.active>a,
.pagination>li.active>a:focus,
.pagination>li.active>a:hover,
.pagination>li.active>span {
    z-index: 3;
    color: #fff !important;
    background-color: #242495;
    border-color: #242495;
}

.pagination>li.disabled>a,
.pagination>li.disabled>span {
    color: #999;
    background-color: transparent;
    border-color: transparent;
    cursor: default;
}

/*============================================================================================*/
/* BLOG PREVIEW & CARDS */
/*============================================================================================*/

#blog-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

#blog-preview .col-sm-4 {
    display: flex;
}

#blog-preview .card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

@media (max-width: 991px) {
    #blog-preview .col-sm-4 {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 767px) {
    #blog-preview .col-sm-4 {
        flex: 1 1 100%;
    }
}

/* Blog card styling */
.blog-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
    transition: transform 0.3s;
    height: 100%;
    display: flex;
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.blog-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-body h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1c1c1c;
    margin-bottom: 8px;
}

.blog-card-date {
    color: #777;
    font-size: 13px;
    margin-bottom: 12px;
}

.blog-card-summary {
    color: #4b4b4b;
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 15px;
}

.blog-card-read {
    color: #242495;
    font-weight: 600;
    margin-top: auto;
}

/*============================================================================================*/
/* PÁGINAS DE SERVICIOS & PARALLAX */
/*============================================================================================*/

/* Justificar texto en páginas de servicios */
.service-detail p {
    text-align: justify;
}

/* Ajuste slide Limpieza Institucional */
.parallax-mirror img[src*="slide-limpieza-institucional"] {
    width: 100% !important;
    height: 100% !important;
    top: 75px !important;
    left: 0 !important;
    object-fit: contain;
    object-position: center;
    background-color: #0d1c72;
}

.parallax-mirror img[src*="banner-limpieza-en-altura"] {
    width: 100% !important;
    height: 100% !important;
    top: 75px !important;
    left: 0 !important;
    object-fit: contain;
    object-position: center;
    background-color: #0d1c72;
}

@media (max-width: 767px) {
    .parallax-mirror img[src*="banner-limpieza-en-altura"] {
        object-position: top left;
    }
}

.parallax_window_in.short.institutional-hero {
    height: 460px;
}

@media (max-width: 767px) {
    .parallax_window_in.short.institutional-hero {
        padding-top: 120px !important;
        box-sizing: border-box;
        height: 300px !important;
        top: 40px !important;
    }

    .parallax-mirror {
        top: 80px !important;
    }

    section.parallax_window_in.short.institutional-hero {
        background-position: center top !important;
    }
}

/* Parallax: asegurar que las imágenes cubran todo el ancho */
.parallax_window_in,
.parallax_window_in.short {
    width: 100% !important;
}

.parallax-mirror {
    left: 0 !important;
    width: 100% !important;
}

.parallax-mirror img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
}

/* Overrides específicos para banners de servicios */
.parallax-mirror img[src*="slide-limpieza-institucional"],
.parallax-mirror img[src*="banner-limpieza-en-altura"] {
    object-fit: contain !important;
    object-position: center !important;
    background-color: #0d1c72;
}

@media (max-width: 767px) {
    .service-detail .parallax_window_in.short {
        height: auto !important;
        min-height: 380px;
    }

    .service-detail .parallax-mirror {
        height: auto !important;
    }

    .parallax-mirror img[src*="banner-limpieza-en-altura"] {
        object-fit: contain !important;
        object-position: center !important;
        top: 0 !important;
        height: auto !important;
        max-height: none !important;
    }
}

/* Layout genérico para detalle de servicios */
.servicio-box {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

.servicio-container.caja-estilizada {
    width: 100%;
    background: #ffffff;
    border-radius: 0 0 18px 18px;
    padding: 50px 60px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    margin: 0 !important;
    margin-bottom: 100px !important;
}

.servicio-info-top {
    width: 100%;
    margin-bottom: 40px;
}

.servicio-info-bottom {
    display: flex;
    gap: 45px;
    align-items: flex-start;
    width: 100%;
}

.servicio-imagen-col {
    flex: 1 1 50%;
}

.servicio-imagen-col img {
    width: 100%;
    border-radius: 14px;
}

.servicio-list-block {
    flex: 1 1 50%;
}

@media (max-width: 900px) {
    .servicio-info-bottom {
        flex-direction: column;
    }

    .servicio-list-block {
        margin-top: 30px;
    }
}

/* Títulos h3 de servicios en gris oscuro (prioridad alta) */
.servicio-info-top h3,
.servicio-info-bottom h3,
.service-detail h3,
.servicio-box h3,
.main_title_left,
.main_title_left em+h3 {
    color: #3a3a3a !important;
}

/*============================================================================================*/
/* ABOUT PAGE BLOCKS */
/*============================================================================================*/

.section-padding {
    padding: 60px 0;
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.2em;
    font-weight: 700;
    color: #0d1c72;
    margin-bottom: 12px;
}

.commitment-section {
    background: #f2f6ff;
    padding: 60px 0;
}

.commitment-photo {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.commitment-photo img {
    width: 100%;
    display: block;
}

.signature-block {
    margin-top: 24px;
    font-weight: 600;
}

.signature-name {
    font-size: 20px;
    margin-bottom: 4px;
}

.mission-section {
    max-width: 900px;
}

/* About: justificar texto en Quienes Somos y Nuestra mision */
#quienes-somos .lead,
#nuestra-mision .lead {
    text-align: justify;
}


/*============================================================================================*/
/* HERO PRINCIPAL (DESKTOP + MOBILE) — SOLO DOTS CENTRADOS */
/*============================================================================================*/

/* Contenedor general */
.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 40px; /* Separar el hero del header fijo */
}

/* Estructura del carousel */
.hero-carousel .carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item,
.hero-carousel .item {
    width: 100%;
    height: auto;
    position: relative;
}

/* Efecto fade */
.carousel.carousel-fade .carousel-inner .item {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    position: absolute;
    inset: 0;
}

.carousel.carousel-fade .carousel-inner .active {
    opacity: 1;
    position: relative;
}

/* Imagen en DESKTOP: nunca cortar */
.hero-carousel .item img {
    width: 100%;
    height: auto;
    object-fit: contain !important;
    object-position: center !important;
    background-color: #000;
}

/*============================================================================================*/
/* DOTS CENTRADOS (únicos controles visibles) */
/*============================================================================================*/

.carousel-indicators {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex !important;
    gap: 10px;
    margin: 0;
    padding: 0;
    z-index: 1000 !important;
}

.carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.55);
}

.carousel-indicators .active {
    background-color: #ffffff;
}
.carousel-inner>.item {
    z-index: 1;
}

.carousel-indicators {
    z-index: 5 !important;
}

/*============================================================================================*/
/* ELIMINAR FLECHAS POR COMPLETO */
/*============================================================================================*/

.hero-controls,
.hero-controls *,
.carousel-control,
.carousel-control.left,
.carousel-control.right {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/*============================================================================================*/
/* MOBILE — Hero 340px y recorte inteligente a la izquierda */
/*============================================================================================*/

@media (max-width: 767px) {

    .hero-carousel,
    .hero-carousel .carousel,
    .hero-carousel .carousel-inner,
    .hero-carousel .item {
        height: 340px !important;
        min-height: 340px !important;
    }

    .hero-carousel .item img {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
        object-position: left center !important;
    }

    .carousel-indicators {
        bottom: 18px;
        /* Ajustado para no chocar con footer móvil */
    }
}
/*============================================================================================*/
/* FOOTER */
/*============================================================================================*/

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: none;
    color: #fff;
}

/* Espaciado extra entre columnas del footer (desktop) */
.footer-row>[class*="col-"] {
    padding-left: 30px;
    padding-right: 30px;
}

@media (max-width: 991px) {
    .footer-row>[class*="col-"] {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/*============================================================================================*/
/* MODAL DENUNCIA */
/*============================================================================================*/

.denuncia-modal .modal-content {
    border-radius: 18px;
    border: none;
    box-shadow: 0 15px 40px rgba(13, 33, 114, 0.35);
}

.denuncia-modal {
    z-index: 200000 !important;
}

.modal-backdrop {
    z-index: 199900 !important;
}

.denuncia-modal .modal-header {
    background: #0d1c72;
    color: #fff;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

.denuncia-modal .modal-header .close {
    color: #fff;
    opacity: 0.8;
}

.denuncia-modal .modal-title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
}

.denuncia-modal .modal-subtitle {
    margin: 5px 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.denuncia-form label {
    font-weight: 600;
    color: #0d1c72;
}

.denuncia-form .form-control {
    border-radius: 12px;
    border-color: #ced4f1;
    box-shadow: none;
}

.btn-denuncia {
    background: #242495;
    color: #fff;
    border-radius: 25px;
    padding: 10px 28px;
    font-weight: 600;
    border: none;
}

.btn-denuncia:hover {
    background: #0d1c72;
    color: #fff;
}

/*============================================================================================*/
/* BOTONES DE SERVICIO */
/*============================================================================================*/

.btn-servicio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 28px;
    background: #242495;
    color: #fff !important;
    font-weight: 700;
    border: none;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    box-shadow: 0 6px 16px rgba(36, 36, 149, 0.25);
}

.btn-servicio:hover,
.btn-servicio:focus {
    background: #1b1b7a;
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(27, 27, 122, 0.35);
}

.btn-servicio:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(36, 36, 149, 0.2);
}

/*============================================================================================*/
/* CAROUSELES DE SERVICIOS Y MARCAS */
/*============================================================================================*/

/* Carrusel servicios (versión 1) */
.services-carousel .box_service {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #fff;
}

.services-carousel .box_service:link,
.services-carousel .box_service:visited,
.services-carousel .box_service:hover {
    color: #fff;
    text-decoration: none;
}

.services-carousel .box_service h3,
.services-carousel .box_service p {
    color: #fff;
}

/* Mantener iconos visibles sobre fondo claro */
.services-carousel .box_service i {
    color: #242495;
}

/* Carrusel servicios (versión 2) */
.services-carousel2 .mini-nav {
    font-size: 22px;
    line-height: 1;
    color: #fff;
}

.services-carousel2 .owl-stage {
    display: flex;
    align-items: stretch;
    gap: 0 !important;
}

.services-carousel2 .owl-item {
    display: flex;
    height: 100%;
    align-items: stretch;
    padding: 0 !important;
}

.services-carousel2 .item {
    display: flex;
    height: 100%;
    width: 100%;
    margin: 0 !important;
}

.services-carousel2 .box_service2,
.services-carousel2 .box_service2active {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
}

.services-carousel2 {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

@media (max-width: 767px) {
    .services-carousel2 .owl-stage {
        display: flex;
        align-items: stretch;
    }

    .services-carousel2 .owl-stage-outer {
        padding: 0 !important;
    }

    .services-carousel2 .owl-item {
        display: flex;
        height: 100%;
    }

    .services-carousel2 .item {
        width: 100%;
        margin: 0 auto;
        height: 170px;
    }

    .services-carousel2 .box_service2 h3,
    .services-carousel2 .box_service2active h3 {
        padding-left: 1px;
        padding-right: 1px;
    }

    .fullwidth-service {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .servicio-container.caja-estilizada {
        width: 100%;
        background: #ffffff;
        border-radius: 0 0 18px 18px;
        padding: 20px 20px !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
        margin: 0 !important;
        margin-bottom: 100px !important;
    }
}

/* Box servicio 2 (estado normal) */
.box_service2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: #242495;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: auto;
    -webkit-box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.05);
    -moz-box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.05);
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.05);
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

a.box_service2 {
    position: relative;
    display: block;
    overflow: hidden;
    background-color: #e9e8e8;
}

a.box_service2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0);
    transition: background-color 0.3s ease;
    z-index: 1;
}

a.box_service2>* {
    position: relative;
    z-index: 2;
}

.box_service2 h3 {
    font-size: 12px;
    color: #242495;
}

.box_service2 span {
    width: 20px;
    height: 20px;
    display: block;
    top: 15px;
    right: 15px;
    position: absolute;
    line-height: 1;
    font-size: 16px !important;
    color: #ccc;
}

a.box_service2:hover {
    transform: translateY(-10px);
}

a.box_service2:hover::before {
    background-color: rgba(3, 0, 0, 0.2);
}

a.box_service2 i {
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 50px;
    color: #242495;
    background-color: #ffffff;
}

@media (max-width: 767px) {
    a.box_service2 {
        width: 100%;
        padding: 25px 15px 10px 15px;
        margin-bottom: 10px;
    }

    a.box_service2 i {
        width: 80px;
        height: 80px;
        line-height: 80px;
        font-size: 55px;
    }

    a.box_service2 h3 {
        font-size: 14px;
    }
}

/* Box servicio 2 (estado activo) */
.box_service2active {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: #242495;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: auto;
    -webkit-box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.05);
    -moz-box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.05);
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.05);
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

a.box_service2active {
    position: relative;
    display: block;
    overflow: hidden;
    transition: transform 0.3s ease;
}

a.box_service2active>* {
    position: relative;
    z-index: 2;
}

a.box_service2active:hover p {
    color: #ffffff;
}

.box_service2active h3 {
    font-size: 12px;
    color: #ffffff;
}

.box_service2active span {
    width: 20px;
    height: 20px;
    display: block;
    top: 15px;
    right: 15px;
    position: absolute;
    line-height: 1;
    font-size: 16px !important;
    color: #ccc;
}

a.box_service2active i {
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 50px;
    color: #242495;
    background-color: #ffffff;
}

@media (max-width: 767px) {
    a.box_service2active {
        width: 100%;
        padding: 25px 15px 10px 15px;
        margin-bottom: 10px;
    }

    a.box_service2active i {
        width: 80px;
        height: 80px;
        line-height: 80px;
        font-size: 55px;
    }

    a.box_service2active h3 {
        font-size: 14px;
    }
}

/* Carrusel de marcas */
.brands-carousel .item {
    padding: 20px 30px;
}

.brands-carousel .brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #1c1c1c;
}

.brands-carousel .logo-brand {
    max-width: 220px;
    height: auto;
    margin: 0 auto 15px;
}

.brands-carousel .brand-card h4 {
    font-size: 16px;
    font-weight: 500;
}

.brands-carousel .owl-dots {
    margin-top: 15px !important;
    display: block;
}

.brands-carousel .owl-dots .owl-dot span {
    background: #c4cad6 !important;
    width: 10px;
    height: 10px;
}

.brands-carousel .owl-dots .owl-dot.active span {
    background: #697a95 !important;
}

/*============================================================================================*/
/* ANCLAS Y UTILIDADES */
/*============================================================================================*/

/* Compensación de anclajes por header fijo en about.html */
#nuestro-compromiso,
#nuestra-mision,
#nuestros-pilares,
#certificaciones {
    scroll-margin-top: 140px;
}

@media (max-width: 767px) {

    #nuestro-compromiso,
    #nuestra-mision,
    #nuestros-pilares,
    #certificaciones {
        scroll-margin-top: 120px;
    }
}

/*============================================================================================*/
/* PILARES */
/*============================================================================================*/

.pillars-section {
    background: #f2f6ff;
    color: #fff;
    margin-bottom: 0;
    padding-bottom: 60px !important;
}

.pillars-section::after {
    content: "";
    display: block;
    height: 40px;
}

@media (max-width: 767px) {
    .pillars-section::after {
        height: 24px;
    }
}

.pillars-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.pillars-grid>[class*="col-"] {
    float: none;
    width: auto;
    padding-left: 0;
    padding-right: 0;
}

.pillar-col {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    min-height: 480px;
}

.pillar-cell {
    height: 100%;
    display: flex;
    min-height: 240px;
}

.pillar-text {
    background: #242495f8;
    color: #fff;
    padding: 20px 22px;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 10px;
}

.pillar-text h4 {
    margin: 0 0 10px 0;
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.4;
    width: 100%;
}

.pillar-text p {
    margin: 0;
    line-height: 1.5;
    font-size: 13px;
}

.pillar-image {
    overflow: hidden;
}

.pillar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 991px) {
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pillar-col {
        min-height: 480px;
    }
}

@media (max-width: 575px) {
    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .pillar-col {
        min-height: 480px;
    }
}

.pillars-section .main_title {
    color: #2f2f2f;
}

.pillars-section .main_title em {
    background-color: #242495;
}

/* Pilares versión móvil: columna */
@media (max-width: 767px) {
    .pillars-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .pillar-col {
        display: flex;
        flex-direction: column;
        min-height: auto;
        grid-template-rows: none;
    }

    .pillar-cell {
        min-height: auto;
    }

    .pillar-col .pillar-text {
        order: 1;
    }

    .pillar-col .pillar-image {
        order: 2;
    }
}

/* Versión alternativa tipo "templo" */
.pillars-grid-alt {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.pillar-temple {
    background: #242495;
    border-radius: 16px;
    padding: 22px 18px 26px;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.pillar-temple:hover {
    background: #000057;
    transform: translateY(-4px);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
}

.pillar-temple::after {
    content: "";
    display: block;
    width: 70%;
    height: 10px;
    margin-top: auto;
    margin-bottom: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
}

.pillar-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.pillar-number {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.pillar-title {
    font-size: 18px;
    font-weight: 700;
    margin: 4px 0 12px;
    color: #f3f3ff;
}

.pillar-temple p {
    color: #f3f3ff;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.pillar-icon {
    width: 72px;
    height: 72px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/*============================================================================================*/
/* ISO / CERTIFICATIONS */
/*============================================================================================*/

.certifications-section {
    border-top: 1px solid #e6e9f2;
}

.certifications-note {
    max-width: 780px;
    margin: 0 auto 30px auto;
    color: #4a4a4a;
}

.certifications-grid {
    margin-top: 20px;
}

/* Bloque principal ISO */
.iso-certifications {
    background: #ffffff;
    padding: 60px 0 50px;
}

.iso-block {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.iso-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 30px;
    justify-items: center;
    align-items: start;
}

.iso-card {
    text-align: center;
    color: #1b1b1b;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.iso-card h4 {
    margin: 0;
    text-transform: uppercase;
    font-weight: 800;
    color: #2a2e7f;
    font-size: 15px;
}

.iso-card p {
    margin: 0;
    max-width: 280px;
    line-height: 1.5;
    font-size: 14px;
}

.iso-logo-card .iso-logo,
.iso-card-simple .iso-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    display: block;
}

.iso-text-card {
    padding: 10px 0;
    font-family: var(--font-body);
    color: var(--font-body);
}

.iso-span-two {
    grid-column: 2 / span 2;
}

.iso-legal-new {
    margin-top: 35px;
    background: #242495;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 16px 28px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    align-self: center;
    max-width: 400px;
    width: auto;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    font-family: var(--font-body);
}

.iso-legal-new span,
.iso-legal-new small {
    font-weight: 500;
    text-transform: none;
}

.iso-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    align-items: flex-start;
    margin-top: 30px;
}

.iso-card-simple {
    width: 280px;
    text-align: center;
    color: #1b1b1b;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.iso-card-simple h4 {
    margin: 0;
    text-transform: uppercase;
    font-weight: 800;
    color: #2a2e7f;
    font-size: 15px;
}

/* ISO Responsivo */
@media (max-width: 991px) {
    .iso-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .iso-grid {
        display: none;
    }

    .iso-grid-mobile {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
        width: 100%;
    }

    .iso-grid-mobile .iso-card {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .iso-grid-mobile .iso-logo {
        width: 120px;
        height: 120px;
    }

    .iso-grid-mobile .iso-text-card {
        padding: 0 12px;
    }
.hero-carousel .carousel-control-next {
  display: none !important; /* ocultar flechas */
}
  display: flex !important;
  justify-content: center;
  gap: 10px;
  bottom: 16px !important;
}
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.15);
  opacity: 1;
}
  background: #242495;
  border-color: #242495;
}
@media (max-width: 767px) {
  .hero-carousel .carousel-indicators { bottom: 14px !important; }
}
/* Hero carousel: puntos visibles, centrados, sin flechas */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next { display: none !important; }
.hero-carousel .carousel-indicators {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px !important;
  display: flex !important;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.hero-carousel .carousel-indicators li,
.hero-carousel .carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff ;
  border: 1px solid rgba(0, 0, 0, 0.15);
  opacity: 1;
  list-style: none;
}
.hero-carousel .carousel-indicators .active,
.hero-carousel .carousel-indicators li.active,
.hero-carousel .carousel-indicators [data-bs-target].active {
  background: #000057;
  border-color: #000057;
}
@media (max-width: 767px) {
  .hero-carousel .carousel-indicators { bottom: 14px !important; }
}
/* Hero móvil: ajustar foco levemente a la derecha */
@media (max-width: 767px) {
  .hero-carousel .carousel-item img,
  .hero-carousel .carousel-inner .item img {
    object-position: 2% center !important;
  }
}
