   /* Botón circular de cerrar */
    .btn-circle {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: none;
        background: #f1f3f4;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        color: #111;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .btn-circle:hover {
        background: #e8eaed;
        transform: scale(1.05);
    }

    /* Wrapper del slider */
    .slider-wrapper {
        position: relative;
        min-height: 500px;
    }

    /* Contenedor de la imagen */
    .slider-container {
        min-height: 500px;
    }

    /* Item de imagen */
    .slider-item {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 500px;
        background: #fff;
        border-radius: 8px;
        padding: 20px;
    }

    .slider-item img {
        max-height: 500px;
        max-width: 100%;
        object-fit: contain;
        transition: transform 0.3s ease;
    }

    /* Botones de navegación (flechas) */
    .slick-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        border: none;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .slick-arrow i {
        font-size: 26px;
        color: #495057;
    }

    .slick-arrow:hover:not(:disabled) {
        background: white;
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }

    .slick-arrow:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

    .slick-prev {
        left: -25px;
    }

    .slick-next {
        right: -25px;
    }

    /* Dots (indicadores) */
    .slider-dots {
        position: absolute;
        bottom: -40px;
        width: 100%;
        gap: 8px;
    }

    .dot-button {
        width: 10px;
        height: 10px;
        padding: 0;
        border: 0;
        background: #cbd5e0;
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .dot-button:hover {
        background: #94a3b8;
        transform: scale(1.2);
    }

    .dot-button.active {
        width: 28px;
        border-radius: 5px;
        background: #3b82f6;
    }

    /* Botones flotantes */
    .floating-controls {
        position: absolute;
        top: 20px;
        right: 20px;
        display: flex;
        gap: 10px;
        z-index: 20;
    }

    .btn-float {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: none;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        color: #111;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .btn-float:hover {
        background: white;
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    }

    .btn-float:active {
        transform: scale(0.95);
    }

    /* Responsive */
    @media (max-width: 768px) {
        .slider-wrapper,
        .slider-container,
        .slider-item {
            min-height: 400px;
        }

        .slider-item img {
            max-height: 400px;
        }

        .slick-arrow {
            width: 40px;
            height: 40px;
        }

        .slick-arrow i {
            font-size: 22px;
        }

        .slick-prev {
            left: 10px;
        }

        .slick-next {
            right: 10px;
        }

        .floating-controls {
            top: 10px;
            right: 10px;
        }

        .btn-float {
            width: 38px;
            height: 38px;
            font-size: 16px;
        }
    }

    .slider-container {
    min-height: 300px;
    max-height: 65vh;
    overflow: hidden;  /* evita que desborde el modal */
}

.img-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 65vh;
    overflow: hidden;
}

.img-rotable {
    max-height: 65vh;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}