/* Variables de Color (basadas en la imagen) */
:root {
    --primary-blue: #002366;
    /* Azul oscuro principal (usado en top-bar y links) */
    --secondary-blue: #0056b3;
    /* Azul medio para acentos y hover */
    --green-blue: #334d64;
    /* --accent-blue: #007bff; */
    /* Azul más brillante para elementos destacados */
    --top-bar-light-blue: #007bff;
    /* Azul para la info de contacto en top-bar, ajustar si es diferente */
    --light-blue-bg: #e0f2f7;
    /* Azul claro para fondos de sección (opcional) */
    --text-light: #f8f9fa;
    --text-dark: #343a40;
    --section-padding: 4rem 0;
    /* 64px top/bottom */
}


body {
    font-family: 'Barlow', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Fuentes */

/* Barlow */
.barlow-thin {
    font-family: "Barlow", sans-serif;
    font-weight: 100;
    font-style: normal;
}

.barlow-extralight {
    font-family: "Barlow", sans-serif;
    font-weight: 200;
    font-style: normal;
}

.barlow-light {
    font-family: "Barlow", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.barlow-regular {
    font-family: "Barlow", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.barlow-medium {
    font-family: "Barlow", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.barlow-semibold {
    font-family: "Barlow", sans-serif;
    font-weight: 600;
    font-style: normal;
}

.barlow-bold {
    font-family: "Barlow", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.barlow-extrabold {
    font-family: "Barlow", sans-serif;
    font-weight: 800;
    font-style: normal;
}

.barlow-black {
    font-family: "Barlow", sans-serif;
    font-weight: 900;
    font-style: normal;
}

.barlow-thin-italic {
    font-family: "Barlow", sans-serif;
    font-weight: 100;
    font-style: italic;
}

.barlow-extralight-italic {
    font-family: "Barlow", sans-serif;
    font-weight: 200;
    font-style: italic;
}

.barlow-light-italic {
    font-family: "Barlow", sans-serif;
    font-weight: 300;
    font-style: italic;
}

.barlow-regular-italic {
    font-family: "Barlow", sans-serif;
    font-weight: 400;
    font-style: italic;
}

.barlow-medium-italic {
    font-family: "Barlow", sans-serif;
    font-weight: 500;
    font-style: italic;
}

.barlow-semibold-italic {
    font-family: "Barlow", sans-serif;
    font-weight: 600;
    font-style: italic;
}

.barlow-bold-italic {
    font-family: "Barlow", sans-serif;
    font-weight: 700;
    font-style: italic;
}

.barlow-extrabold-italic {
    font-family: "Barlow", sans-serif;
    font-weight: 800;
    font-style: italic;
}

.barlow-black-italic {
    font-family: "Barlow", sans-serif;
    font-weight: 900;
    font-style: italic;
}


w-50{width: 50% !important;}
w-60{width: 60% !important;}
w-70{width: 70% !important;}
w-80{width: 80% !important;}
w-90{width: 90% !important;}


/* --- Top Bar --- */
.top-bar {
    background-color: var(--top-bar-light-blue);
    /* Color de fondo para la parte de info */
    color: white;
    font-size: 0.85rem;
    padding: 0 0;
}

.top-bar-info {
    /* El fondo ya está en .top-bar, a menos que quieras diferenciarlo */
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-bar-info span i, .top-bar-info span a{
    color: white;
    /* Asegurar que el ícono de email sea blanco */
}



.top-bar-social {
    background-color: var(--primary-blue);
    padding: 0.5rem 1rem;
    height: 100%;
    /* transform: scale3d(1.5, 1.5, 1.5); */
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(6% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.top-bar-social a {
    color: black;
    background-color: #FFF;
    border-radius: 20px;
    width: 20px;
    height: 20px;
    text-align: center;
    align-content: center;
    margin-left: 12px;
    font-size: 12px;
    transition: opacity 0.2s ease-in-out;
}

.top-bar-social a:hover {
    opacity: 0.8;
}

/* En móviles, la top-bar se oculta por defecto con d-none d-md-block.
   Si quieres mostrarla y apilar los elementos:
@media (max-width: 767.98px) {
    .top-bar .row > div {
        text-align: center !important;
        padding-bottom: 0.25rem;
    }
    .top-bar-social {
        justify-content: center;
        padding-top: 0.25rem;
    }
}
*/


/* --- Navbar Principal --- */
.main-navbar {
    /* Usamos una clase específica para no afectar otros navbars si los hubiera */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* Sombra sutil */
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.main-navbar .navbar-brand img {
    /* filter: brightness(0) invert(1); */
    /* Eliminado o ajustado, ya que el fondo es blanco */
    filter: none;
    /* Asegura que no hay filtros previos */
    max-height: 50px;
    /* Ajusta la altura de tu logo */
}

.main-navbar .nav-link {
    color: var(--primary-blue) !important;
    /* Color de los enlaces */
    margin-left: 10px;
    margin-right: 10px;
    font-weight: 500;
    /* Un poco más de peso */
    text-transform: capitalize;
    /* Como en la imagen "Inicio", "Nosotros" */
    font-size: 0.95rem;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--secondary-blue) !important;
    /* Color al pasar el mouse o activo */
}

/* Si quieres que el navbar principal sea fijo, descomenta lo siguiente y ajusta el padding del body */
/*
body { padding-top: 120px; } // Ajustar este valor a la altura combinada del top-bar y main-navbar
.top-bar { position: fixed; top: 0; width: 100%; z-index: 1031;}
.main-navbar { position: fixed; top: 40px; width: 100%; z-index: 1030; } // Ajustar el 'top' a la altura del top-bar
*/


/* --- Slider Principal con Owl Carousel --- */
#hero-owl-slider .item.hero-slide {
    position: relative;
    /* Necesario para posicionar la caption de forma absoluta */
    height: 80vh;
    /* Altura del slider, puedes ajustarla */
    min-height: 400px;
    /* Altura mínima */
    overflow: hidden;
    /* Para asegurar que nada se desborde */
}

#hero-owl-slider .item.hero-slide .hero-slide-image {
    /* Clase corregida para las <img> */
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cubre el área sin deformar, puede recortar */
    /*filter: brightness(0.7);  Oscurecer un poco la imagen */
}

#hero-owl-slider .hero-slide-caption {
    position: absolute;
    bottom: 15%;
    /* Posición vertical de la caption */
    left: 5%;
    /* Posición horizontal de la caption */
    width: auto;
    /* O un ancho específico, ej. 40% */
    max-width: 500px;
    /* Máximo ancho para la caption */
    background-color: rgba(0, 35, 102, 0.65);
    /* Fondo semi-transparente */
    padding: 25px 35px;
    border-radius: 8px;
    color: white;
    z-index: 10;
    /* Para que esté sobre la imagen */
}

#hero-owl-slider .hero-slide-caption h5 {
    font-size: 2.5rem;
    /* Ajustar según tu diseño */
    font-weight: bold;
    text-transform: uppercase;
    color: #FFF;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    margin-bottom: 0.5rem;
}

#hero-owl-slider .hero-slide-caption p {
    font-size: 1.5rem;
    /* Ajustar según tu diseño */
    color: var(--top-bar-light-blue);
    /* Reutilizando una variable de color azul claro */
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 0;
}

/* Estilos para los controles de Owl Carousel (opcional, para mejorar el tema default) */
#hero-owl-slider .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    /* Para posicionar prev/next */
    justify-content: space-between;
    /* Empuja prev a la izq, next a la der */
    pointer-events: none;
    /* Para que no interfieran con clicks en el slide */
    z-index: 15;
    /* Sobre la caption si es necesario */
}

#hero-owl-slider .owl-nav button.owl-prev,
#hero-owl-slider .owl-nav button.owl-next {
    pointer-events: all;
    /* Reactivar eventos para los botones */
    background-color: rgba(255, 255, 255, 0.2) !important;
    /* Fondo semi-transparente blanco */
    color: white !important;
    border-radius: 50% !important;
    width: 50px !important;
    /* Ancho del botón */
    height: 50px !important;
    /* Alto del botón */
    font-size: 22px !important;
    /* Tamaño del ícono */
    line-height: 50px !important;
    /* Centrar ícono verticalmente */
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0 25px;
    /* Espacio desde los bordes del slider */
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

#hero-owl-slider .owl-nav button.owl-prev:hover,
#hero-owl-slider .owl-nav button.owl-next:hover {
    background-color: var(--top-bar-light-blue) !important;
    /* Azul al pasar el mouse */
    color: white !important;
    border-color: var(--top-bar-light-blue) !important;
}

#hero-owl-slider .owl-dots {
    position: absolute;
    bottom: 25px;
    /* Distancia desde abajo */
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
}

#hero-owl-slider .owl-dots .owl-dot span {
    background: rgba(255, 255, 255, 0.5) !important;
    /* Color de los puntos inactivos */
    width: 12px !important;
    height: 12px !important;
    margin: 0 6px !important;
    /* Espacio entre puntos */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#hero-owl-slider .owl-dots .owl-dot.active span,
#hero-owl-slider .owl-dots .owl-dot:hover span {
    background: var(--top-bar-light-blue) !important;
    /* Color del punto activo/hover */
    transform: scale(1.2);
    /* Hacer el punto activo un poco más grande */
}


/* Ajustes responsivos para el caption y controles del Owl Slider */
@media (max-width: 991.98px) {

    /* Tablets y abajo */
    #hero-owl-slider .hero-slide-caption h5 {
        font-size: 2rem;
    }

    #hero-owl-slider .hero-slide-caption p {
        font-size: 1.2rem;
    }

    #hero-owl-slider .hero-slide-caption {
        padding: 20px;
        max-width: 90%;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        /* Centrar texto en tablets */
    }
}

@media (max-width: 767.98px) {

    /* Móviles */
    #hero-owl-slider .item.hero-slide {
        height: 60vh;
        /* Altura ajustada para móviles */
        min-height: 350px;
    }

    #hero-owl-slider .hero-slide-caption {
        bottom: 10%;
        /* Más arriba en móviles */
        padding: 15px;
    }

    #hero-owl-slider .hero-slide-caption h5 {
        font-size: 1.6rem;
    }

    #hero-owl-slider .hero-slide-caption p {
        font-size: 1rem;
    }

    #hero-owl-slider .owl-nav button.owl-prev,
    #hero-owl-slider .owl-nav button.owl-next {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
        line-height: 40px !important;
        margin: 0 10px;
        /* Menos margen en móviles */
    }

    #hero-owl-slider .owl-dots {
        bottom: 15px;
    }

    #hero-owl-slider .owl-dots .owl-dot span {
        width: 10px !important;
        height: 10px !important;
    }
}


/* --- Títulos de Sección--- */
.section-title {
    color: var(--green-blue);
    font-weight: 900;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    font-size: 5rem;
    line-height: 65px;

}

.section-title-related {
    color: var(--green-blue);
    font-weight: 900;
    margin-bottom: 1.5rem;
    position: relative; 
    font-size: 3rem;
    line-height: 50px;
}


@media screen and (max-width:780px) {
    .section-title {
        font-size: 3rem;
        line-height: 50px;

    }
    .section-title-related {
        font-size: 2rem;
        line-height: 40px;
    }
}

.section-dark .section-title {
    color: var(--text-light);
}

.section-dark .section-title::after {
    background-color: var(--text-light);
}


#info-section {
    background: linear-gradient(to right, white 60%, #1882de 40%);
    border-radius: 12px;
    color: #002366;
}

.info-tabs {
    margin-bottom: 2rem;
    gap: 20px;
    flex-wrap: wrap;
    background: linear-gradient(to right, #90e9f5 60%, #00cbe6 40%);
}

.tab-button:nth-child(2) {
    background-color: #5ae3f2;
}

.tab-button:nth-child(3) {
    background-color: #00cbe6;
}

.tab-content-wrapper {
    padding: 3rem .5rem 3.5rem;
}

.tab-button {
    background: transparent;
    border: none;
    color: black;
    font-size: 1.1rem;
    padding: 1.5rem 8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    /* border-radius: 10px; */
    font-weight: bold;
    display: inline-flex;
    align-items: center;
}

.tab-button i {
    font-size: 1.5rem;
    margin-bottom: 5px;
    margin-right: 8px;
}

.tab-button:hover,
.tab-button.active {
    background-color: rgb(255, 255, 255);
}

.tab-pane {
    display: none;
    color: #334d64;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    font-size: 2rem;
    font-weight: normal;
}

.tab-pane h3 strong {
    font-size: 3rem;
    font-weight: bold;
    color: #002366;
}

.tab-pane p {
    font-size: 1rem;
    color: #333;
}

/* Deshabilitar WOW.js completamente para misión y visión */
#tab-mision .wow,
#tab-vision .wow {
    visibility: visible !important;
    opacity: 1 !important;
    animation-name: none !important;
    animation-delay: 0s !important;
    animation-duration: 0s !important;
}

/* Clases personalizadas para animaciones controladas por JavaScript */
#tab-mision .custom-animate,
#tab-vision .custom-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

#tab-mision .custom-animate.show,
#tab-vision .custom-animate.show {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

#tab-mision .custom-animate.fadeInDown.show,
#tab-vision .custom-animate.fadeInDown.show {
    transform: translateY(0);
}

#tab-mision .custom-animate.fadeInLeft.show,
#tab-vision .custom-animate.fadeInLeft.show {
    transform: translateX(0);
}

#tab-mision .custom-animate.fadeInLeft,
#tab-vision .custom-animate.fadeInLeft {
    transform: translateX(-30px);
}

#tab-mision .custom-animate.zoomIn,
#tab-vision .custom-animate.zoomIn {
    transform: scale(0.8);
}

#tab-mision .custom-animate.zoomIn.show,
#tab-vision .custom-animate.zoomIn.show {
    transform: scale(1);
}

@media (max-width: 768px) {
    .tab-pane h3 {
        font-size: 1.5rem;
    }

    .tab-pane h3 strong {
        font-size: 2rem;
    }
}



/* --- Sección Servicios--- */
#servicios {
    padding: var(--section-padding);

    & p {
        padding: 15px 15%;
        color: #adb5bd;
        text-align: center;
    }

}

.section-dark {
    background-color: var(--primary-blue);
    color: var(--text-light);
}

.service-card-link {
    text-decoration: none;
    color: inherit;
}

.service-card {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

.service-card img {
    height: 320px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card .card-body {
    text-align: center;
    background-color: #fff;
}

.service-card .card-title {
    color: var(--primary-blue);
    font-weight: bold;
}

.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 35, 102, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card-overlay .overlay-text {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 5px;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-card:hover img {
    transform: scale(1.05);
}

.service-card:hover .service-card-overlay {
    opacity: 1;
}


/* --- Sección Productos--- */
#productos {
    padding-top: 30px;
    background-color: var(--light-blue-bg);

    & img {
        width: 68%;
    }
}
@media (max-width: 768px) {
    #productos img{
        width: 55%;
    }
}

#productos .section-title::after {
    background-color: var(--primary-blue);
}

.product-card-link {
    text-decoration: none;
}

.product-card {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-card img {
    display: block;
    width: 100% !important;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 35, 102, 0.9) 0%, rgba(0, 35, 102, 0) 100%);
    padding: 20px 10px 10px;
    opacity: 1;
    transform: translateY(30%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    text-align: center;
}

.product-card:hover .product-card-overlay {
    opacity: 1;
    transform: translateY(0);
}

.product-card .card-title {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: bold;
}

.product-card .overlay-icon {
    color: white;
    font-size: 1.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.product-card:hover .overlay-icon {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover img {
    transform: scale(1.1);
}

/* --- Sección Youtube--- */
#youtube-video {
    padding: var(--section-padding);
}

.section-blue-gradient {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
}

#youtube-video h2 {
    color: var(--text-light);
}

#youtube-video p {
    color: #cce5ff;
}

/* --- Sección Clientes--- */
.clientes-container {
    text-align: center;
    padding: 50px 0;
}

.clientes-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1a3e5a;
    /* Azul oscuro */
}

.clientes-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    /* Gris oscuro */
    margin-top: 10px;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 50px;
}

.logo-item:nth-child(-n+4) {
    border-top: none;
}
.logo-item:nth-child(1) {
    border-left: none;
}
.logo-item:nth-child(4) {
    border-right: none;
}

.logo-item:nth-last-child(-n+4) {
    border-bottom: none;
}

.logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #dee2e6;
    /* Borde gris claro */
    height: 120px;
}

.logo-item img {
    max-width: 70%;
    height: auto;
    filter: grayscale(1);
}

#clientes .logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}
@media (max-width: 768px) {
    .logos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .logo-item:nth-child(-n+2) {
        border-top: none;
    }
    
    .logo-item:nth-last-child(-n+2) {
        border-bottom: none;
    }
}

/* --- Sección Contacto--- */
#contacto {
    padding: var(--section-padding);
}

#contacto .form-label {
    color: #adb5bd;
}

#contacto .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

#contacto .form-control::placeholder {
    color: #adb5bd;
}

#contacto .form-control:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--top-bar-light-blue);
    /* Usar un azul consistente */
    color: var(--text-light);
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}
.contacto {
            margin-bottom: 20px;
        }
.contacto h3{
    color: #7fffd4;
}

.btn-primary-custom {
    background-color: var(--top-bar-light-blue);
    /* Usar un azul consistente */
    border-color: var(--top-bar-light-blue);
    /* Usar un azul consistente */
    color: white;
    padding: 10px 25px;
    font-weight: bold;
}

.btn-primary-custom:hover {
    background-color: var(--secondary-blue);
    border-color: var(--secondary-blue);
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info i {
    color: var(--top-bar-light-blue);
    /* Usar un azul consistente */
}

/* --- Footer--- */
footer {
    background-color: var(--primary-blue);
    color: var(--text-light);
}

footer a {
    color: var(--text-light);
}

footer a:hover {
    color: var(--top-bar-light-blue);
    /* Usar un azul consistente */
}

/* --- Estilos para Galerías en Móvil (Carrusel Deslizable)--- */
@media (max-width: 767.98px) {
    #hero-slider .carousel-item {
        height: 50vh;
    }

    #hero-slider .carousel-caption h5 {
        font-size: 1.8rem;
    }

    #hero-slider .carousel-caption p {
        font-size: 1rem;
    }
    #productos-carousel {
        position: absolute;
        margin-top: 50px;
        & h2 {
            color: var(--green-blue);
            background-color: var(--light-blue-bg);
        }
    }

    #servicios-gallery.row,
    #productos-gallery.row {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 1rem;
    }

    #servicios-gallery>[class*="col-"],
    #productos-gallery>[class*="col-"] {
        flex: 0 0 auto;
        width: 70%;
        max-width: 280px;
        margin-right: 15px;
    }

    #servicios-gallery>[class*="col-"]:last-child,
    #productos-gallery>[class*="col-"]:last-child {
        margin-right: 0;
    }

    .service-card img {
        height: 160px;
    }

    .product-card img {
        height: 150px;
    }

    /* Ajustes para el nuevo menú en móvil */
    .main-navbar .navbar-brand img {
        max-height: 40px;
        /* Logo más pequeño en móviles */
    }

    .main-navbar .nav-link {
        margin-left: 0;
        margin-right: 0;
        padding: 0.5rem 0;
        /* Más espacio vertical para los links en el menú desplegable */
    }
}

/* Pequeños ajustes adicionales para tabletas (opcional) */
@media (min-width: 768px) and (max-width: 991.98px) {
    #servicios-gallery>.col-md-6 {
        flex: 0 0 50%;
    }

    #productos-gallery>.col-md-4 {
        flex: 0 0 calc(50% - 0.5rem);
    }

    .main-navbar .navbar-brand img {
        max-height: 45px;
    }
}


.service-carousel {
    max-width: 800px;
    margin: 0 auto;
}
.service-carousel .carousel-item img {
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
    width: 90%;
    justify-self: center;
}
.service-info {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    /*margin-top: 30px;*/
}
.service-title {
    color: #003366;
    font-family: 'Bai Jamjuree', sans-serif;
    font-weight: 600;
}
.carousel-indicators {
    bottom: -50px;
}
.carousel-indicators button {
    background-color: #003366;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    margin: 0 5px;
}
.carousel-control-prev,
.carousel-control-next {
    background: rgba(0, 51, 102, 0.7);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
}
.carousel-control-prev {
    left: 20px;
}
.carousel-control-next {
    right: 20px;
}
.no-images {
    background: #f8f9fa;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 2px dashed #dee2e6;
}
.no-images i {
    font-size: 4rem;
    color: #dee2e6;
}

.product-carousel {
    max-width: 800px;
    margin: 0 auto;
}
.product-carousel .carousel-item img {
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
    width: 100%;
}
.product-info {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    /*margin-top: 30px;*/
}
.product-title {
    color: #003366;
    font-family: 'Bai Jamjuree', sans-serif;
    font-weight: 600;
}
.carousel-indicators {
    bottom: -50px;
}
.carousel-indicators button {
    background-color: #003366;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    margin: 0 5px;
}
.carousel-control-prev,
.carousel-control-next {
    background: rgba(0, 51, 102, 0.7);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
}
.carousel-control-prev {
    left: 20px;
}
.carousel-control-next {
    right: 20px;
}
.no-images {
    background: #f8f9fa;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 2px dashed #dee2e6;
}
.no-images i {
    font-size: 4rem;
    color: #dee2e6;
}

/* --- Sección de Mapas con Tabs --- */
#mapa {
    background-color: var(--primary-blue);
    color: var(--text-light);
}

#mapa .section-title {
    color: var(--text-light);
}

#mapa .nav-tabs {
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

#mapa .nav-tabs .nav-link {
    border: none;
    color: var(--text-light);
    font-weight: 600;
    padding: 12px 24px;
    margin-right: 5px;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
}

#mapa .nav-tabs .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

#mapa .nav-tabs .nav-link.active {
    background-color: white;
    color: var(--primary-blue);
    border: none;
}

#mapa .tab-content {
    background-color: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.mapa-placeholder {
    height: 40vh;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
}

/* Estilos para números de teléfono clickeables en sucursales */
.contacto a[href^="tel:"] {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contacto a[href^="tel:"]:hover {
    color: var(--top-bar-light-blue);
    text-decoration: underline;
}

/* Responsive para mapas */
@media (max-width: 768px) {
    #mapa .nav-tabs {
        flex-wrap: wrap;
    }
    
    #mapa .nav-tabs .nav-link {
        font-size: 0.9rem;
        padding: 8px 16px;
        margin-bottom: 5px;
    }
    
    #mapa .tab-content {
        padding: 15px;
    }
    
    .mapa-placeholder {
        height: 30vh;
    }
}

/* Animación para los tabs */
.tab-pane.fade {
    transition: opacity 0.3s ease-in-out;
}

.tab-pane.fade.show {
    opacity: 1;
}

.tab-pane.fade:not(.show) {
    opacity: 0;
}

/* --- Botones Brochure y WhatsApp en detalle producto/servicio --- */
.btn-brochure {
    background: #fff;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    font-weight: 600;
    transition: all 0.2s;
}
.btn-brochure:hover, .btn-brochure:focus {
    background: var(--primary-blue);
    color: #fff;
    border-color: #fff;
}

.btn-whatsapp {
    background: #fff;
    color: #25d366;
    border: 2px solid #25d366;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-whatsapp:hover, .btn-whatsapp:focus {
    background: #25d366;
    color: #fff;
    border-color: #fff;
}

.product-actions, .service-actions {
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .product-actions, .service-actions {
        flex-direction: row !important;
        align-items: center;
    }
    .product-actions .btn, .service-actions .btn {
        margin-bottom: 0 !important;
    }
}

/* --- Overlay para menú lateral en admin --- */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.45);
    z-index: 999;
    transition: opacity 0.3s;
}
.sidebar.active ~ .sidebar-overlay {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    .sidebar {
        left: -100%;
        z-index: 1000;
        transition: left 0.3s;
    }
    .sidebar.active {
        left: 0;
        box-shadow: 2px 0 16px rgba(0,0,0,0.2);
    }
    .main-content {
        margin-left: 0 !important;
    }
    .sidebar.active ~ .sidebar-overlay {
        display: block;
        opacity: 1;
    }
}

@media (min-width: 769px) {
    .sidebar-overlay {
        display: none !important;
    }
}

/* === Preloader === */
#preloader {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s;
}
#preloader.hide {
  opacity: 0;
  pointer-events: none;
}
.preloader-spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid var(--primary-blue);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}