body {
    font-family: 'Segoe UI', sans-serif;
}

/* ********************************************
NAVBAR
 ********************************************** */

.navbar {
    background-color: rgba(0, 0, 0, 0.95); /* casi negro, pero con transparencia */
    backdrop-filter: blur(8px);
    overflow: visible !important; /* permite que el logo sobresalga */
    z-index: 1000;
}

/* El logo */
.navbar-logo {
    height: 120px;
    pointer-events: auto; /* activa clics solo sobre el logo */
}

/* Ocultar o adaptar en móviles */
@media (max-width: 767.98px) {
    .navbar-logo-wrapper {
        position: static;
        transform: none;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .navbar-logo {
        height: 48px;
    }
}



/* ********************************************
HERO
 ********************************************** */

.hero {
    position: relative;
    height: 100vh;
    background: black;
    overflow: hidden;
}
.hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    top: 50%;
    transform: translateY(-50%);
}

/* ********************************************
CTA BUTTONS
 ********************************************** */

.cta-buttons {
    margin-top: 1rem;
}
.cta-buttons a {
    margin: 0 0.5rem;
}
.whatsapp-float, .call-float {
    position: fixed;
    bottom: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    text-align: center;
    line-height: 60px;
    font-size: 24px;
    z-index: 100;
}
.whatsapp-float {
    right: 90px;
    background: #25d366;
}
.call-float {
    right: 20px;
    background: #007bff;
}

/* ********************************************
GALLERY
 ********************************************** */

.gallery-img {
    transition: transform 0.3s ease;
    cursor: pointer;
}
.gallery-img:hover {
    transform: scale(1.05);
}

.nav-tabs {
    border: none;
    justify-content: center;
}

.nav-tabs .nav-link {
    border: none;
    border-radius: 50px;
    background: #f1f1f1;
    color: #333;
    padding: 0.5rem 1.5rem;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-tabs .nav-link:hover {
    background-color: #ddd;
}

.nav-tabs .nav-link.active {
    background-color: #007bff;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.tab-pane {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.tab-pane.active.show {
    opacity: 1;
    transform: translateY(0);
}

.mobile-close-btn {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 1055;
    backdrop-filter: blur(6px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery-item {
    overflow: hidden;
    position: relative;
    border-radius: 0.5rem;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1; /* cuadrado adaptable, puedes cambiarlo */
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.03);
}



/* Estilos para contenido vertical vs horizontal en la modal */

.modal-dialog.portrait-dialog {
    max-width: 420px;
    width: auto;
    margin: auto;
}

.modal-content.portrait-mode {
    height: auto;
    max-height: 95vh;
}

#mediaModalContent img.portrait,
#mediaModalContent video.portrait {
    width: auto;
    max-height: 90vh;
    max-width: 100%;
    object-fit: contain;
}

#mediaModalContent img.landscape,
#mediaModalContent video.landscape {
    width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

#main.blurred {
    filter: blur(12px) brightness(0.9);
    transition: filter 0.5s ease;
}

.modal-backdrop.show {
    backdrop-filter: blur(12px);
    background-color: rgba(0, 0, 0, 0.8); /* oscurece ligeramente */
}





/* Centrado del contenido multimedia en móviles */
@media (max-width: 768px) {
    #mediaModalContent {
        height: 100vh; /* fuerza a que el modal-body llene la pantalla */
        padding: 1rem;
    }

    #mediaModalContent img,
    #mediaModalContent video {
        max-height: 90vh;
        max-width: 100%;
        object-fit: contain;
    }
}



/* ********************************************
REVIEWS
 ********************************************** */

.carousel-item {
    transition: transform 0.8s ease, opacity 0.8s ease;
}

/* ********************************************
Modales para la Galeria de Imagenes
 ********************************************** */

.modal-backdrop.show {
    backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.6);
}

.btn-close {
    width: 1.25rem;
    height: 1.25rem;
    background-size: 1rem;
}


/* ********************************************
ESTILOS DEL BLOG
 ********************************************** */

/*Para no resultados encontrados*/

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

.fade-out {
    animation: fadeOut 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.95); }
}

 /*Barra de busqueda*/
#clearSearchBtn {
    line-height: 1;
    font-size: 1.25rem;
    padding: 0.25rem 0.5rem;
}

#clearSearchBtn:hover {
    color: #dc3545 !important;
    font-weight: bold;
}



