

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('../img/siteBackground1.jpeg') no-repeat center center fixed;
    background-size: cover;
    color: var(--dark);
}

#wrapper {
    max-width: 1200px;
    margin: auto;
    background: rgba(255, 255, 255, 0.90);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 1rem;
}

.bg-brand {
    background-color: var(--brand-color-2) !important;
}

.nav-item :hover{
    display: inline-block;
    font-weight: bold !important;
    font-size: 120% !important;
}

#menuButton span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 4px 0;
    background-color: #fff; /* ajusta si usas otro color */
    transition: all 0.3s ease;
}

/* Transformar en cruz o en línea vertical cuando esté abierto */
#menuButton.active .line1 {
    transform: rotate(45deg) translate(5px, 5px);
}
#menuButton.active .line2 {
    opacity: 0;
}
#menuButton.active .line3 {
    transform: rotate(-45deg) translate(6px, -6px);
}

@keyframes girar {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.girar {
    display: inline-block;
    animation: girar 4s linear infinite;
}
/* Tamaño del icono SVG */
.icono-engrane {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}

.carousel-inner img {
    height: 500px;
    object-fit: contain;
    width: 100%;
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%230078AD' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z'/%3e%3c/svg%3e");
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%230078AD' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4-4-4z'/%3e%3c/svg%3e");
}

.btn-primary {
    background-color: var(--brand-color-2)!important;
    border: 1px solid var(--brand-light-color-2)!important;
}

.btn-primary:hover {
    background-color: var(--brand-color) !important;
    border: 1px solid var(--brand-light-color) !important;
}

.blink {
    animation: blinker 1.2s linear infinite;
    color: var(--brand-color-2);
    font-weight: bold;
    cursor: pointer;
}

@keyframes blinker {
    50% { opacity: 0; }
}

.title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.galeria-item {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform .3s;
    cursor: zoom-in;
}
.galeria-item:hover {
    transform: scale(1.05);
}

/* ---- Lightbox estilo Google Photos ---- */
#lightboxGP {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn .3s ease;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#lightboxGP img, #lightboxGP video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ---- Controles estilo Google Photos ---- */
.lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
    color: #fff;
    opacity: 0.7;
    cursor: pointer;
    user-select: none;
    transition: opacity .2s;
}
.lb-arrow:hover {
    opacity: 1;
}
.lb-left  { left: 20px; }
.lb-right { right: 20px; }

.lb-close {
    position: absolute;
    top: 20px; right: 25px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    opacity: .7;
}
.lb-close:hover { opacity: 1; }

/* ---- Loader ---- */
.loader {
    border: 6px solid #555;
    border-top: 6px solid #fff;
    border-radius: 50%;
    width: 50px; height: 50px;
    animation: spin 1s linear infinite;
    position: absolute;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

#carouselGrid .carousel-control-prev,
#carouselGrid .carousel-control-next {
    width: 5%;               /* flechas más pequeñas */
    top: 50%;
    transform: translateY(-50%);
    opacity: 1 !important;   /* que no se atenúen */
}

/* Izquierda fuera del marco */
#carouselGrid .carousel-control-prev {
    left: -50px;             /* mover más a la izquierda */
}

/* Derecha fuera del marco */
#carouselGrid .carousel-control-next {
    right: -50px;            /* mover más a la derecha */
}

/* Opcional: agrandar el icono */
#carouselGrid .carousel-control-prev-icon,
#carouselGrid .carousel-control-next-icon {
    width: 40px;
    height: 40px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* no bloquea el click */
}

.video-overlay i {
    font-size: 50px;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 0 8px black;
}

img.lazy, video.lazy-video {
    filter: blur(4px);
    transition: filter 0.4s ease-out;
}

img:not(.lazy), video:not(.lazy-video) {
    filter: blur(0);
}