.gg-carrusel-instancia--telefono {
    display: none;
}

@media (orientation: portrait) {
    .gg-carrusel-instancia--normal {
        display: none;
    }

    .gg-carrusel-instancia--telefono {
        display: block;
    }
}

/* --gg-vw is the viewport width without the scrollbar (set by a script printed in
   <head>, see location.php); plain 100vw includes the scrollbar and overflows. */
.gg-carrusel-wrapper {
    position: relative;
    width: var(--gg-vw, 100vw);
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    background: #000;
    height: 50vh;
}

/* La instancia de teléfono recibe imágenes en retrato, no la misma
   apaisada encogida — necesita su propio alto, más vertical. */
.gg-carrusel-instancia--telefono .gg-carrusel-wrapper {
    height: 55vh;
}

.gg-carrusel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease-in-out;
    will-change: transform;
}

.gg-carrusel-slide {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* "fill": the whole image is always shown (nothing cropped), stretched to the box. */
.gg-carrusel-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill;
}

.gg-carrusel-slide a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.gg-carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    cursor: pointer;
    padding: 18px 14px;
    font-size: 28px;
    line-height: 1;
    z-index: 10;
    transition: background 0.3s;
    border-radius: 3px;
}

.gg-carrusel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.gg-carrusel-btn.prev {
    left: 15px;
}

.gg-carrusel-btn.next {
    right: 15px;
}

.gg-carrusel-indicadores {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.gg-carrusel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s;
}

.gg-carrusel-dot.activo {
    background: #FFC800;
    border-color: #FFC800;
}

.gg-carrusel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .gg-carrusel-wrapper {
        aspect-ratio: 1600 / 369;
        height: auto;
    }

    .gg-carrusel-btn {
        padding: 6px 4px;
        font-size: 14px;
        position: absolute;
    }

    /* El botón se ve pequeño pero el área táctil real llega a ~44px (mínimo recomendado) */
    .gg-carrusel-btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 44px;
        height: 44px;
    }

    .gg-carrusel-btn.prev {
        left: 8px;
    }

    .gg-carrusel-btn.next {
        right: 8px;
    }

    .gg-carrusel-indicadores {
        display: none;
    }
}
