/* Visual Comparison (Excel vs HotelUtil) */
.comparison-wrapper {
    margin: 4rem auto;
    max-width: 900px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.comparison-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background: #000;
    cursor: crosshair;
    user-select: none;
    -webkit-user-drag: none;
}

.comparison-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.comparison-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.comparison-card.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.comparison-card.before {
    z-index: 1;
}

.comparison-card.after {
    z-index: 2;
    transform: scale(1.05);
    /* Ligeramente más grande para el efecto de entrada */
}

.comparison-card.after.active {
    transform: scale(1);
}

.comparison-badge {
    position: absolute;
    top: 20px;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 30;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.comparison-badge.red {
    left: 20px;
    background: #ef4444;
    color: white;
}

.comparison-badge.green {
    right: 20px;
    background: #10b981;
    color: white;
}

.comparison-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    z-index: 40;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.comparison-container:hover .comparison-hint {
    opacity: 0;
    transform: translate(-50%, 10px);
}

/* Responsive */
@media (max-width: 992px) {
    .comparison-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .comparison-container {
        height: 350px;
    }

    .comparison-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .comparison-hint {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}