/* Definición de variables de color */
:root {
    --primary: #6B6B6B; /* Gris */
    --secondary: #B8B7B4;
    --light: #F8F2F0;
    --dark: #636569;
}

/* Peso de fuente */
.fw-medium {
    font-weight: 600 !important;
}

/* Botón de volver arriba */
.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
    background-color: var(--primary) !important; /* Fondo gris */
    color: white !important; /* Icono en blanco */
    border: none;
    border-radius: 5px;
    padding: 10px;
    transition: background-color 0.3s ease;
}

.back-to-top:hover {
    background-color: var(--dark) !important; /* Un poco más oscuro al pasar el cursor */
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Botones ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

/* Ajustes de tamaños de botones */
.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/*** Navbar ***/
/* Encabezado con el nombre del ayuntamiento en gris */
.navbar-brand {
    background-color: var(--primary) !important;
    padding: 10px 20px; /* Ajusta el tamaño del rectángulo */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

/* Texto dentro del encabezado */
.navbar-brand h2 {
    color: white !important;
}

/* Mantener el menú con su color original */
.navbar-light .navbar-nav .nav-link {
    position: relative;
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark) !important;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--secondary) !important;
}

/* Estilo para dispositivos móviles */
@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

/* Ajustes del logo en la barra */
.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}

/* Transición suave en la barra fija */
.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}

/*** Header ***/
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }

    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item h5,
    .header-carousel .owl-carousel-item p {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }
}

/* Contenedor del header con imagen de fondo */
.page-header {
    background: linear-gradient(rgba(6, 3, 21, .5), rgba(6, 3, 21, .5)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

/*** Sección About ***/
@media (min-width: 992px) {
    .container.about {
        max-width: 100% !important;
    }

    .about-text {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

/*** Sección Servicios, Precios y Equipo ***/
.service-item,
.price-item,
.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.service-item img,
.team-item img {
    transition: .5s;
}


.service-item:hover img,
.team-item:hover img {
    transform: scale(1.1);
}

/*** Testimonios ***/
.testimonial-carousel .owl-item .testimonial-item {
    position: relative;
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    animation: pulse 1s ease-out .5s;
}

.testimonial-carousel .owl-dots {
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: var(--primary);
    border: 5px solid var(--light);
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--light);
    border-color: var(--primary);
}

/*** Footer ***/
.footer {
    background: linear-gradient(rgba(6, 3, 21, .5), rgba(6, 3, 21, .5)), url(../img/map.png) center center no-repeat;
    background-size: cover;
}

/* Redes sociales en el footer */
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

/* Links del footer */
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

/* Derechos reservados */
.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}













/* Fondo del modal */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7); /* Oscurece el fondo */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contenedor del modal: Se ajusta solo al tamaño de la imagen */
.modal-content {
    position: relative; /* Relativo para que la `X` se posicione dentro */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* Sin espacio extra */
    background: none; /* Sin fondo adicional */
    border: none; /* Sin bordes extra */
}

/* Imagen dentro del modal: Tamaño exacto */
.modal-image {
    max-width: 100%; /* No excede el ancho original */
    max-height: 100vh; /* No excede la altura de la pantalla */
    width: auto; /* Mantiene su ancho original */
    height: auto; /* Mantiene su altura original */
    display: block;
}

/* ✅ Botón de cerrar (`X`) dentro de la imagen, en la esquina superior derecha */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 25px;
    cursor: pointer;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    padding: 5px 12px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

