/* ====================================
   HOME - BEFORE/AFTER SLIDER (DOR vs SOLUÇÃO)
   ==================================== */

/* Slider Container */
.comparison-slider {
    position: relative;
    width: 100%;
    height: 610px;
    overflow-x: hidden;
    overflow-y: hidden;
    margin-top: 0;
}

/* Base Layer - SEM VEM (Vermelho Leve e Opaco) */
.comparison-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fffbfb;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 60px 60px 30px;
}

/* Middle Layer - ALERTA (Branco) */
.comparison-middle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 60px 60px 30px;
}

/* Overlay Layer - COM VEM (Verde Leve e Opaco) */
.comparison-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fbfffb;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 60px 60px 30px;
}

/* Content Box */
.comparison-content {
    max-width: 750px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}

/* Badge */
.comparison-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    height: 32px;
    margin-bottom: 12px;
    flex-shrink: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.comparison-badge:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.comparison-before .comparison-badge,
.comparison-middle .comparison-badge,
.comparison-after .comparison-badge {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0;
    z-index: 6;
}

.comparison-before .comparison-badge {
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid #ef4444;
    color: #ef4444;
}

.comparison-middle .comparison-badge {
    background: rgba(255, 159, 10, 0.15);
    border: 2px solid #ff9f0a;
    color: #ff9f0a;
}

.comparison-after .comparison-badge {
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid #22c55e;
    color: #22c55e;
}

/* Title */
.comparison-content h2 {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
}

.comparison-before h2 {
    color: #1e293b;
}

.comparison-middle h2 {
    color: #1e293b;
}

.comparison-after h2 {
    color: #1e293b;
}

.comparison-before h2 .highlight {
    color: #ef4444;
}

.comparison-middle h2 .highlight {
    color: #ff9f0a;
}

.comparison-after h2 .highlight {
    color: #22c55e;
}

/* Subtitle */
.comparison-subtitle {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
    height: 24px;
    flex-shrink: 0;
    width: 100%;
}

.comparison-before .comparison-subtitle {
    color: #334155;
}

.comparison-middle .comparison-subtitle {
    color: #334155;
}

.comparison-after .comparison-subtitle {
    color: #334155;
}

/* List */
.comparison-list {
    list-style: none;
    padding: 10px 0 0 0;
    margin: 0 auto 12px auto;
    max-width: 100%;
    text-align: center;
    width: 100%;
    height: 290px;
    flex-shrink: 0;
    overflow: hidden;
}

.comparison-list li {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 14px;
    padding-left: 0;
    text-align: center;
}

.comparison-before .comparison-list li {
    color: #475569;
}

.comparison-middle .comparison-list li {
    color: #475569;
}

.comparison-after .comparison-list li {
    color: #475569;
}

/* Título (strong) - DESTAQUE MAIOR para hierarquia visual */
.comparison-list li strong {
    font-weight: 800;
}

.comparison-before .comparison-list li strong {
    color: #1e293b;
    font-weight: 800;
}

.comparison-middle .comparison-list li strong {
    color: #1e293b;
    font-weight: 800;
}

.comparison-after .comparison-list li strong {
    color: #1e293b;
    font-weight: 800;
}

/* Result Box */
.comparison-result {
    padding: 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
    text-align: center;
    height: 75px;
    flex-shrink: 0;
    overflow: hidden;
}

.comparison-before .comparison-result {
    background: rgba(239, 68, 68, 0.15);
    border-left: 4px solid #ef4444;
    color: #334155;
}

.comparison-middle .comparison-result {
    background: rgba(255, 159, 10, 0.15);
    border-left: 4px solid #ff9f0a;
    color: #334155;
}

.comparison-after .comparison-result {
    background: rgba(34, 197, 94, 0.1);
    border-left: 4px solid #22c55e;
    color: #334155;
}

.comparison-before .comparison-result strong {
    color: #1e293b;
    font-weight: 700;
}

.comparison-middle .comparison-result strong {
    color: #1e293b;
    font-weight: 700;
}

.comparison-after .comparison-result strong {
    color: #1e293b;
    font-weight: 700;
}

/* Stats Grid */
.comparison-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 35px;
}

.comparison-stat {
    padding: 20px;
    border-radius: 12px;
    transition: transform 0.3s ease;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.comparison-stat:hover {
    transform: translateY(-4px);
}

.comparison-before .comparison-stat {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(239, 68, 68, 0.4);
}

.comparison-after .comparison-stat {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(34, 197, 94, 0.4);
}

.comparison-stat-number {
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
}

.comparison-before .comparison-stat-number {
    color: #ef4444;
}

.comparison-after .comparison-stat-number {
    color: #22c55e;
}

.comparison-stat-label {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.comparison-before .comparison-stat-label {
    color: rgba(255, 255, 255, 0.85);
}

.comparison-after .comparison-stat-label {
    color: rgba(255, 255, 255, 0.85);
}

/* Divider Line & Handle - Clean Design */
.comparison-divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: #000000;
    cursor: ew-resize;
    z-index: 10;
    transform: translateX(-50%);
    transition: background 0.3s ease;
    pointer-events: none;
}

.comparison-divider .comparison-handle {
    pointer-events: all;
}

/* Handle - V do Logo VEM */
.comparison-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    background: #000000;
    color: #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: ew-resize;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.comparison-handle:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* V do VEM usando a imagem original */
.comparison-handle::before {
    content: '';
    width: 32px;
    height: 32px;
    display: block;
    background-image: url('../images/vem v.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: invert(1) brightness(2);
}

/* V preto quando o botão for branco (fundo branco some) */
.comparison-handle.white-bg::before {
    filter: none;
}

/* V branco quando o botão for preto (inverte tudo) */
.comparison-handle.black-bg::before {
    filter: invert(1);
    mix-blend-mode: screen;
}

/* Labels - Botões na mesma altura do V */
.comparison-label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 24px;
    border-radius: 50px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


.comparison-label-left {
    left: 15%;
    transform: translate(-50%, -50%);
    background: rgba(239, 68, 68, 0.25);
    border: 3px solid #ef4444;
    color: #ef4444;
}

.comparison-label-left:hover {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.comparison-label-left:active {
    transform: translate(-50%, -50%) scale(0.98);
}

.comparison-label-right {
    right: 15%;
    transform: translate(50%, -50%);
    background: rgba(34, 197, 94, 0.2);
    border: 3px solid #22c55e;
    color: #22c55e;
}

.comparison-label-right:hover {
    transform: translate(50%, -50%) scale(1.08);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.comparison-label-right:active {
    transform: translate(50%, -50%) scale(0.98);
}

/* Instrução visual de arrasto */
.slider-instruction {
    position: absolute;
    top: calc(50% + 45px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 8;
    pointer-events: none;
    animation: pulse 2s ease-in-out infinite;
}

.slider-instruction svg {
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

/* ====================================
   DESTAQUE DOS ITENS - NUMERAÇÃO COLORIDA
   ==================================== */

/* Itens com numeração grande em círculo */
.comparison-list li {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Círculo numerado */
.comparison-list li::before {
    content: counter(list-counter);
    counter-increment: list-counter;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
}

/* Reset counter para cada lista */
.comparison-list {
    counter-reset: list-counter;
}

/* Cores dos círculos - PROBLEMA (Vermelho) */
.comparison-before .comparison-list li::before {
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid #ef4444;
    color: #ef4444;
}

/* Cores dos círculos - ALERTA (Laranja) */
.comparison-middle .comparison-list li::before {
    background: rgba(255, 159, 10, 0.15);
    border: 2px solid #ff9f0a;
    color: #ff9f0a;
}

/* Cores dos círculos - SOLUÇÃO (Verde) */
.comparison-after .comparison-list li::before {
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid #22c55e;
    color: #22c55e;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .comparison-slider {
        min-height: auto;
    }

    .comparison-before,
    .comparison-after {
        padding: 60px 30px;
        min-height: 100vh;
    }

    .comparison-content h2 {
        font-size: 26px;
    }

    .comparison-content p {
        font-size: 16px;
    }

    .comparison-stats {
        grid-template-columns: 1fr;
    }

    .comparison-stat-number {
        font-size: 36px;
    }

    .comparison-handle {
        width: 48px;
        height: 48px;
    }

    .comparison-handle::before {
        font-size: 24px;
    }

    .comparison-label {
        font-size: 12px;
        padding: 6px 12px;
        top: 20px;
    }

    .comparison-label-left {
        left: 20px;
    }

    .comparison-label-right {
        right: 20px;
    }

    /* Numeração em mobile - círculos menores */
    .comparison-list li::before {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}
