/* --- Estilos para la sección de Checklist --- */
#checklist-section {
    padding: 80px 20px;
    background-color: #f9fafb;
}

.checklist-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 50px;
    max-width: 1000px;
    /* [FIX] Aumentado de 600px a 1000px */
    margin: 50px auto 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    transform: scale(0);
    animation: jump-in 0.5s ease-out forwards;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 1.1rem;
    opacity: 0;
    text-align: left;
    perspective: 1000px;
}

.checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #374151;
    border-radius: 5px;
    margin-left: 15px;
    position: relative;
    flex-shrink: 0;
    transform: scale(0);
}

.checkbox.checked::after {
    content: '✓';
    color: var(--color-primario-vivo);
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.4rem;
    animation: checkmark 0.3s ease-in-out forwards;
}

.text {
    overflow: hidden;
    white-space: normal;
    /* [FIX] Permitir salto de línea siempre */
    transform: rotateY(-180deg);
    opacity: 0;
    flex: 1;
    /* [FIX] Ocupar todo el espacio disponible */
}

.signature {
    text-align: right;
    margin-top: 40px;
    font-style: italic;
    color: #6b7280;
}

.signature span {
    display: block;
    margin-top: 5px;
    font-size: 0.9rem;
}

/* Keyframes for animations */
@keyframes jump-in {
    0% {
        transform: scale(0);
    }

    80% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes flip-in-ver-right {
    0% {
        transform: rotateX(-30deg);
        opacity: 0;
    }

    100% {
        transform: rotateX(0);
        opacity: 1;
    }
}

@keyframes checkmark {
    0% {
        transform: translate(-50%, -50%) scale(0);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

@media (max-width: 768px) {
    .checklist-card {
        padding: 30px;
    }

    .text {
        white-space: normal;
        overflow: visible;
        width: 100%;
    }

    .checklist-item {
        align-items: flex-start;
    }

    .checkbox {
        margin-top: 5px;
    }
}